/*
Theme Name: Arete
Description: A professional WordPress theme for technology and semiconductor companies
Version: 1.0
Author: Custom Theme
*/

:root {
    --primary-blue: #007fae;
    --dark-blue: #007fae;
    --light-blue: #007fae;
    --dark-gray: #343a40;
    --light-gray: #f8f9fa;
    --text-dark: #212529;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header Shortcode Area (Slider Container) */
.header-shortcode-area {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Carousel Styles - ALL carousel styles now in carousel.css */

/* REMOVED: .carousel-overlay - handled in carousel.css */
.carousel-overlay-DISABLED {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content-text {
    position: relative;
    z-index: 3;
    color: white;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-button-wrapper {
    margin-top: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.btn-primary-custom {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-primary-custom:hover {
    background: #ffffff;
    color: #003366;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-primary-custom i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-primary-custom:hover i {
    transform: translateX(5px);
}

/* REMOVED: All carousel styles moved to carousel.css */

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.hero-image-container {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 25px rgba(103, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(103, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.1) 30%,
        rgba(30, 64, 175, 0.15) 70%,
        rgba(67, 90, 198, 0.2) 100%
    );
    mix-blend-mode: soft-light;
    z-index: 2;
    border-radius: 25px;
}

.hero-image-container:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 15px 35px rgba(103, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(103, 126, 234, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.6s ease;
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

.hero-image-container:hover .hero-image {
    filter: brightness(1.15) contrast(1.1) saturate(1.15);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        145deg,
        rgba(103, 126, 234, 0.08) 0%,
        rgba(118, 75, 162, 0.05) 35%,
        rgba(30, 64, 175, 0.08) 70%,
        rgba(67, 90, 198, 0.1) 100%
    );
    border-radius: 25px;
    z-index: 3;
    mix-blend-mode: overlay;
    transition: opacity 0.6s ease;
}

.hero-image-container:hover .hero-image-overlay {
    opacity: 0.7;
}

/* REMOVED: All carousel styles moved to carousel.css */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* AOS Animation Classes */
[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease-out;
}

[data-aos="fade-left"] {
    animation: fadeInLeft 0.8s ease-out;
}

[data-aos="fade-right"] {
    animation: fadeInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* REMOVED: All carousel styles now in carousel.css */

    .hero-content-text {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary-custom {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .btn-primary-custom {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Simple Page Template Styles */
.page-wrapper {
    padding: 80px 0 60px;
    background: #fff;
}

.simple-page {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.page-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 500px;
    object-fit: cover;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.page-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.page-content p {
    margin-bottom: 20px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-content ul, 
.page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 8px;
}

/* Simple Builder Template Styles */
.simple-builder-wrapper {
    padding: 80px 0 60px;
}

.builder-title-section {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.builder-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.builder-hero-section {
    margin-bottom: 60px;
}

.hero-image-container {
    text-align: center;
}

.hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.builder-content-section {
    margin-bottom: 60px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.builder-custom-section {
    margin-bottom: 40px;
    padding: 30px 0;
}

.builder-custom-section:first-of-type {
    padding-top: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.section-text p {
    margin-bottom: 1rem;
}

.section-image {
    text-align: center;
    margin-bottom: 30px;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-content {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    
    .page-content h3 {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    
    .featured-img {
        max-height: 300px;
    }
    
    .simple-builder-wrapper {
        padding: 60px 0 40px;
    }
    
    .builder-page-title {
        font-size: 2.2rem;
    }
    
    .hero-image {
        max-height: 250px;
    }
    
    .builder-custom-section {
        margin-bottom: 50px;
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .section-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Article Template Styles */
.article-hero-section {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 250px;
    max-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-content {
    text-align: left;
    color: white;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTitleFadeIn 0.6s ease-out 0.1s forwards;
}

@keyframes heroTitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.hero-meta {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(15px);
    animation: heroMetaFadeIn 0.4s ease-out 0.4s forwards;
}

@keyframes heroMetaFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hero-category:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-category a {
    color: white;
    text-decoration: none;
}

.hero-category a:hover {
    text-decoration: underline;
}

.article-header-section {
    padding: 80px 0 40px;
    background: var(--light-gray);
}

.article-wrapper {
    padding: 80px 0 60px;
    background: #fff;
}

.article-style {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-date:before {
    content: "📅";
    font-size: 0.9rem;
}

.article-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-category:before {
    content: "🏷️";
    font-size: 0.9rem;
}

.article-category a {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
}

.article-category a:hover {
    background: rgba(0, 123, 255, 0.2);
}

.article-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 30px 0 15px;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-blue);
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.article-content th {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.article-content tr:hover {
    background: #f8f9fa;
}

/* Full-width article content styles */
.article-content-fullwidth {
    width: 100%;
    padding: 60px 0;
    background: #fff;
}

.article-content-fullwidth > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.article-content-fullwidth h1,
.article-content-fullwidth h2,
.article-content-fullwidth h3,
.article-content-fullwidth h4,
.article-content-fullwidth h5,
.article-content-fullwidth h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-content-fullwidth h2 {
    font-size: 2rem;
    margin: 40px 0 20px 0;
}

.article-content-fullwidth h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
}

.article-content-fullwidth p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.article-content-fullwidth ul,
.article-content-fullwidth ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.article-content-fullwidth li {
    margin-bottom: 8px;
}

.article-content-fullwidth img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.article-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 5px;
}

.article-tags a {
    display: inline-block;
    background: #f1f3f4;
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary-blue);
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f1f3f4;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.print-btn:hover {
    background: #28a745;
    color: white;
}

.email-btn:hover {
    background: #17a2b8;
    color: white;
}

.link-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* Responsive Design for Article */
@media (max-width: 768px) {
    .article-hero-section {
        height: 35vh;
        min-height: 200px;
        max-height: 250px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-title:hover {
        transform: scale(1.01);
    }
    
    .hero-category {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-category:hover {
        transform: translateY(-1px);
    }
    
    .article-wrapper {
        padding: 60px 0 40px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-content {
        font-size: 1.05rem;
        padding: 0 15px;
    }
    
    .article-content h2 {
        font-size: 1.7rem;
        margin: 30px 0 15px;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .featured-image {
        max-height: 300px;
    }
}

/* Header Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    z-index: 1000;
    margin-bottom: 0;
}

/* Sticky header when enabled */
.navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue) !important;
}

/* Navigation Center Layout */
.navbar-nav-center {
    flex-direction: row;
    align-items: stretch;
}

.navbar-nav-center .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 1rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Underline animation */
.underScore {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item:hover .underScore,
.nav-item.active .underScore {
    transform: scaleX(1);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% - 5px); /* Reduced gap for better hover transition */
    left: 0;
    min-width: 200px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin-top: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Create invisible bridge between nav item and dropdown with proper coverage */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px; /* Extend bridge wider than nav item */
    right: -10px;
    height: 10px; /* Larger bridge area */
    background: transparent;
    z-index: 999;
    pointer-events: auto;
}

/* Extended bridge area when dropdown is shown */
.dropdown:hover::before,
.dropdown.show::before {
    height: 15px; /* Even larger when actively hovering */
}

/* Show dropdown */
.dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover support for desktop with improved targeting */
@media (min-width: 992px) {
    /* Show dropdown on nav item hover */
    .dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Keep dropdown visible when hovering over dropdown menu */
    .dropdown-menu:hover {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Extend hover area for the entire dropdown container */
    .dropdown {
        position: relative;
    }
    
    /* Add padding-bottom to dropdown container for larger hover area */
    .dropdown:hover,
    .dropdown.dropdown-active {
        padding-bottom: 10px;
        margin-bottom: -10px;
    }
    
    /* Ensure active dropdown maintains proper z-index */
    .dropdown.dropdown-active {
        z-index: 1001;
    }
    
    /* Ensure only one dropdown can be active at a time */
    .navbar-nav .dropdown:not(.dropdown-active) .dropdown-menu {
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateY(-10px) !important;
    }
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--primary-blue);
    color: white;
}

.dropdown-item:focus {
    background: var(--primary-blue);
    color: white;
    outline: none;
}

/* Right side navigation */
.navbar-nav-right {
    margin-left: auto;
    display: flex !important;
    align-items: center !important;
}

.navbar-nav-right .nav-item.isIcon {
    display: flex !important;
    align-items: center !important;
}

.navbar-nav-right .nav-item.isIcon .nav-link {
    padding: 0.5rem;
    margin: 0 0.25rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav-right .nav-item.isIcon .nav-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue) !important;
    transform: scale(1.05);
}

/* Removed - handled by .language-selector:hover .fas.fa-globe now */

.navbar-nav-right .nav-item.isIcon .nav-link i {
    font-size: 1.1rem;
    line-height: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Language Selector */
.language-selector {
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: var(--light-gray) !important;
    transform: scale(1.05) !important;
}

.language-selector .fas.fa-globe {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
}

.language-selector:hover .fas.fa-globe {
    color: var(--primary-blue) !important;
    transform: scale(1.1) !important;
}

.language-dropdown {
    right: 0;
    left: auto;
    min-width: 120px;
    transform-origin: top right;
}

.language-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-menu-list li {
    margin: 0;
}

.language-menu-list .dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.language-menu-list .dropdown-item:hover {
    background: var(--primary-blue);
    color: white;
}

/* Hero Section */
.hero-section {
    height: 400px;
    position: relative;
    overflow: hidden;
}

/* Header Shortcode Area */
.header-shortcode-area {
    width: 100%;
    overflow: hidden;
}

.header-shortcode-area .metaslider {
    max-width: 100%;
    margin: 0;
}

.header-shortcode-area img {
    width: 100%;
    height: auto;
    display: block;
}

/* Front Page Content - Full Width */
.front-page-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.front-page-content .entry-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Remove default WordPress content margins/padding for full width */
.front-page-content .entry-content > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Default Front Page Content Grid Layout */
.default-front-page-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 100vh;
    width: 100%;
}

.about-grid-item {
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* About Main Section - Top Left */
.about-main {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    grid-column: 1;
    grid-row: 1;
}

.about-content {
    max-width: 400px;
    text-align: left;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Vision Item - Top Right */
.vision-item {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.vision-image {
    flex: 1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><defs><radialGradient id="brain" cx="50%" cy="50%"><stop offset="0%" stop-color="%2300d4ff"/><stop offset="100%" stop-color="%230099cc"/></radialGradient></defs><rect width="800" height="400" fill="%23001122"/><circle cx="400" cy="200" r="120" fill="url(%23brain)" opacity="0.8"/><g stroke="%2300aaff" stroke-width="2" fill="none" opacity="0.6"><circle cx="400" cy="200" r="80"/><circle cx="400" cy="200" r="100"/><circle cx="400" cy="200" r="140"/></g></svg>');
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.vision-content {
    background: white;
    padding: 2rem;
    text-align: left;
}

.vision-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.vision-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Executives Item - Bottom Span Full Width */
.executives-item {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    background: #000;
    min-height: 400px;
}

.executives-content {
    flex: 1;
    background: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.executives-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.executives-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.executives-image {
    flex: 1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><defs><radialGradient id="earth" cx="50%" cy="50%"><stop offset="0%" stop-color="%2300aaff"/><stop offset="70%" stop-color="%23004477"/><stop offset="100%" stop-color="%23000022"/></radialGradient></defs><rect width="800" height="400" fill="%23000011"/><circle cx="400" cy="200" r="150" fill="url(%23earth)"/><g stroke="%23ffaa00" stroke-width="1" fill="none" opacity="0.7"><circle cx="320" cy="180" r="3"/><circle cx="450" cy="220" r="2"/><circle cx="380" cy="160" r="2"/><circle cx="420" cy="250" r="3"/><circle cx="350" cy="240" r="2"/></g></svg>');
    background-size: cover;
    background-position: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-default-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Carousel styles - Handled in carousel.css */

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.about-card.vision {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.about-card.executives {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Design Services Section */
.services-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-gray);
    font-weight: bold;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card-body {
    padding: 1.5rem;
    text-align: center;
}

.service-title {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: white;
}

.products-header {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.product-card-body {
    padding: 1.5rem;
}

.product-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* Careers Section */
.careers-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.career-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.career-text {
    text-align: center;
    margin-bottom: 2rem;
}

.hiring-process-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.hiring-process-link:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: var(--dark-blue);
}

/* Footer */
.footer {
    background: #f8f9fa;
    color: #666666;
}

/* Footer Top Section - Multi-column Menu Area */
.footer-top-section {
    padding: 3rem 0 2rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0; /* 更明顯的分隔線 */
}

/* Footer container centering for flexible columns */
.footer-top-section .row {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

/* Mobile: Left align and enable dropdown functionality */
@media (max-width: 768px) {
    .footer-top-section {
        padding: 2rem 1.5rem 1.5rem !important;
    }
    
    .footer-top-section .row {
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    
    .footer-top-section .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Make all footer columns behave as dropdowns on mobile */
    .footer-top-section .col-lg {
        width: 100% !important;
        margin-bottom: 1rem !important;
        border-bottom: 1px solid #e9ecef !important;
        padding: 0.5rem 0 !important;
    }
    
    .footer-top-section .col-lg:last-child {
        border-bottom: none !important;
    }
    
    /* Footer titles become clickable dropdowns on mobile */
    .footer-top-section .col-lg .footer-column-title {
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 0 !important;
        margin-bottom: 0.5rem !important;
        user-select: none !important;
        transition: color 0.3s ease !important;
        position: relative !important;
    }
    
    /* Add arrow to all footer titles on mobile */
    .footer-top-section .col-lg .footer-column-title::after {
        content: '▼' !important; /* Simple down arrow */
        font-family: inherit !important;
        font-weight: normal !important;
        font-size: 0.8rem !important;
        line-height: 1 !important;
        transition: transform 0.3s ease !important;
        color: #666666 !important;
        margin-left: 0.5rem !important;
    }
    
    .footer-top-section .col-lg .footer-column-title:hover {
        color: var(--primary-blue) !important;
    }
    
    .footer-top-section .col-lg .footer-column-title:hover::after {
        color: var(--primary-blue) !important;
    }
    
    /* Hide footer links by default on mobile - CRITICAL: Must be hidden initially */
    .footer-top-section .col-lg .footer-column-links {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0.5rem !important;
        list-style: none !important;
        overflow: hidden !important;
        max-height: 0 !important;
        transition: max-height 0.3s ease-out !important;
    }
    
    /* Show footer links when parent has 'show' class */
    .footer-top-section .col-lg.show .footer-column-links {
        display: block !important;
        max-height: 500px !important;
        animation: slideDown 0.3s ease-out !important;
    }
    
    /* Rotate arrow when section is open */
    .footer-top-section .col-lg.show .footer-column-title::after {
        transform: rotate(180deg) !important;
        color: var(--primary-blue) !important;
    }
    
    /* Ensure footer title hover state is active when opened */
    .footer-top-section .col-lg.show .footer-column-title {
        color: var(--primary-blue) !important;
    }
    
    /* Style footer links on mobile */
    .footer-top-section .col-lg .footer-column-links li {
        margin: 0 0 0.75rem 0 !important;
    }
    
    .footer-top-section .col-lg .footer-column-links a {
        display: block !important;
        padding: 0.5rem 0 !important;
        padding-left: 1rem !important;
        color: #666666 !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        transition: all 0.3s ease !important;
    }
    
    .footer-top-section .col-lg .footer-column-links a:hover {
        color: var(--primary-blue) !important;
        padding-left: 1.25rem !important;
        text-decoration: underline !important;
    }
}

/* Footer Main Menu Structure */
.footer-main-menu {
    display: contents; /* Allow children to participate in parent flex/grid */
}

/* Footer Column Titles (母項目) */
.footer-column-title {
    color: #333333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: none;
    line-height: 1.2;
}

/* Footer Column Title Links (可點擊的母項目) */
.footer-column-title-link {
    color: #333333 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column-title-link:hover {
    color: var(--primary-blue) !important;
    text-decoration: none;
}

/* Footer Column Links Container (子項目容器) */
.footer-column-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column-links li {
    margin-bottom: 0.75rem;
}

/* Footer Column Links (子項目連結) */
.footer-column-links a,
.footer-column-link {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
}

.footer-column-links a:hover,
.footer-column-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Footer Parent Link (如果母項目也是連結) */
.footer-parent-link {
    font-weight: 500;
    color: #555555 !important;
}

.footer-parent-link:hover {
    color: var(--primary-blue) !important;
}

/* Footer Bottom Section - Logo, Links & Copyright */
.footer-bottom-section {
    padding: 1.5rem 0;
    background: #ffffff;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo {
    max-height: 40px;
    width: auto;
}

.footer-logo-text {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer Bottom Menu - Horizontal Links */
.footer-bottom-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.footer-bottom-links li {
    margin: 0;
    position: relative;
}

.footer-bottom-links li:not(:last-child):after {
    content: '|';
    margin-left: 0.5rem;
    color: #ccc;
    font-weight: 300;
}

.footer-bottom-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Footer Copyright Area */
.footer-copyright-area {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 40px;
}

.footer-copyright-text {
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    white-space: nowrap; /* 防止換行 */
    overflow: visible; /* 允許溢出顯示完整文字 */
}

.footer-tagline {
    color: #888888;
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.1;
    white-space: nowrap; /* 防止換行 */
}

/* Ensure bottom section elements are aligned */
.footer-bottom-section .row {
    min-height: 60px;
    align-items: center;
}

.footer-logo-area,
.footer-bottom-menu,
.footer-copyright-area {
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* Better column spacing */
.footer-top-section .row {
    margin: 0 -10px;
}

.footer-top-section .row > div {
    padding: 0 10px;
    margin-bottom: 2rem;
}

/* Flexible column system for 4-6 columns */
@media (min-width: 992px) {
    /* Default: equal width columns with minimum width */
    .footer-top-section .col-lg {
        flex: 1 1 0;
        min-width: 150px;
        max-width: 25%; /* 最大寬度確保至少4欄 */
    }
    
    /* Specific classes for different column counts */
    .footer-columns-4 .col-lg {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .footer-columns-5 .col-lg {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .footer-columns-6 .col-lg {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Navbar scrolled state */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Additional hover effects */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after {
    width: 100%;
}

/* Improved dropdown toggle indicator */
.dropdown-toggle::after {
    display: none;
}

/* Focus states for accessibility */
.dropdown-toggle:focus,
.dropdown-menu a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Better dropdown positioning */
.navbar-nav-right .dropdown-menu {
    margin-top: 0.25rem;
}

/* Logo styles */
.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Language icon styles */
.language-icon {
    font-size: 1.2rem;
    filter: none;
    transition: filter 0.3s ease;
}

.language-icon.black {
    filter: grayscale(100%);
}

.language-toggle:hover .language-icon.black {
    filter: grayscale(0%);
}

/* Centered navigation */
.justify-content-center .navbar-nav {
    flex-direction: row;
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        margin-top: 1rem;
        border-radius: 15px;
        padding: 0;
        border: 1px solid #e9ecef;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: pan-y;
    }
    
    .navbar-nav-center {
        flex-direction: column;
        padding: 0;
    }
    
    /* Main menu items */
    .navbar-nav .nav-item {
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 1.2rem 1.5rem;
        margin: 0;
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--text-dark) !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
        position: relative;
        background: transparent;
    }
    
    /* Remove ::after pseudo element for mobile */
    .navbar-nav .nav-link:after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--light-blue);
        color: var(--primary-blue) !important;
    }
    
    /* Dropdown toggle arrow */
    .navbar-nav .dropdown-toggle::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        border: none;
        vertical-align: middle;
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .underScore {
        display: none;
    }
    
    /* Dropdown menu styles */
    .dropdown-menu {
        display: none !important;
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #f8f9fa;
        transform: none !important;
        visibility: visible;
        opacity: 1;
    }
    
    /* Force show when .show class is present */
    .dropdown-menu.show {
        display: block !important;
    }
    
    /* Also ensure parent dropdown with .show class displays the menu */
    .dropdown.show .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-item {
        padding: 1rem 2rem;
        color: var(--text-light) !important;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid #e9ecef;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background: white !important;
        color: var(--primary-blue) !important;
    }
    
    /* Language selector in mobile */
    .navbar-nav-right {
        margin-left: 0;
        margin-top: 0;
        padding: 1rem 1.5rem;
        border-top: 1px solid #f8f9fa;
        flex-direction: row;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 0 0 15px 15px;
    }
    
    .language-selector {
        padding: 0.75rem 1.25rem !important;
        background: white;
        color: #333 !important;
        border: 2px solid #007FAE;
        border-radius: 25px;
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(0,127,174,0.2);
        width: auto;
        height: auto;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem;
    }
    
    .language-selector .fas.fa-globe {
        color: #007FAE;
        font-size: 1.1rem;
        position: static;
        transform: none;
    }
    
    .language-dropdown {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .language-menu-list .dropdown-item {
        text-align: center;
        justify-content: center;
    }
    
    .language-menu-list .dropdown-item::before {
        display: none;
    }
    
    /* Smooth animations */
    .dropdown-menu {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Hide hover effects on mobile, but allow .show class to override */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    /* Override hover hide when .show class is present */
    .dropdown:hover .dropdown-menu.show,
    .dropdown.show:hover .dropdown-menu {
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }
    
    .about-section,
    .services-section,
    .products-section,
    .careers-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .service-card,
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Footer responsive */
    .footer-top-section {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-column-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .footer-column-links a {
        font-size: 0.85rem;
    }
    
    .footer-bottom-section {
        padding: 1.5rem 0;
    }
    
    .footer-bottom-section .row > div {
        margin-bottom: 1rem;
        text-align: center !important;
    }
    
    .footer-logo-area {
        justify-content: center;
    }
    
    .footer-bottom-menu {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-bottom-links li:not(:last-child):after {
        display: none;
    }
    
    .footer-copyright-area {
        text-align: center !important;
        margin-top: 1rem;
        align-items: center !important;
    }
    
    .footer-copyright-text {
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: normal; /* 手機版允許換行 */
    }
    
    .footer-tagline {
        font-size: 0.7rem;
        line-height: 1.1;
        white-space: normal; /* 手機版允許換行 */
    }
    
    /* Mobile: Allow more flexible layout */
    .footer-bottom-section .row {
        min-height: auto;
    }
    
    /* Better mobile column spacing */
    .footer-top-section .row > div {
        margin-bottom: 1.5rem;
        padding: 0 15px;
    }
    
    /* Footer dropdown styles for mobile - ONLY apply to elements with data-footer-toggle */
    .footer .footer-section[data-footer-toggle] {
        margin-bottom: 1rem !important;
        border-bottom: 1px solid #e9ecef !important;
        padding-bottom: 0.5rem !important;
    }
    
    .footer .footer-section[data-footer-toggle]:last-child {
        border-bottom: none !important;
    }
    
    .footer .footer-section[data-footer-toggle] h5 {
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 0 !important;
        margin-bottom: 0.5rem !important;
        user-select: none !important;
        transition: color 0.3s ease !important;
    }
    
    .footer .footer-section[data-footer-toggle] h5:hover {
        color: var(--primary-blue) !important;
    }
    
    .footer .footer-arrow {
        font-size: 0.8rem !important;
        transition: transform 0.3s ease !important;
        color: #666666 !important;
    }
    
    .footer .footer-section[data-footer-toggle].show .footer-arrow {
        transform: rotate(180deg) !important;
        color: var(--primary-blue) !important;
    }
    
    .footer .footer-section[data-footer-toggle] .footer-links {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        background: transparent !important;
        border: none !important;
        overflow: visible !important;
    }
    
    .footer .footer-section[data-footer-toggle].show .footer-links {
        display: block !important;
        animation: slideDown 0.3s ease-out !important;
    }
    
    .footer .footer-section[data-footer-toggle] .footer-links li {
        margin: 0 0 0.75rem 0 !important;
    }
    
    .footer .footer-section[data-footer-toggle] .footer-links a {
        display: block !important;
        padding: 0.5rem 0 !important;
        color: #666666 !important;
        text-decoration: none !important;
        border-bottom: none !important;
        transition: all 0.3s ease !important;
        font-size: 0.9rem !important;
        padding-left: 1rem !important;
    }
    
    .footer .footer-section[data-footer-toggle] .footer-links a:hover {
        background: transparent !important;
        color: var(--primary-blue) !important;
        padding-left: 1.25rem !important;
        text-decoration: underline !important;
    }
    
    /* Reset regular footer columns to normal styling */
    .footer-top-section .col-lg:not([data-footer-toggle]) .footer-column-title {
        color: #333333 !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-bottom: 1rem !important;
        cursor: default !important;
    }
    
    .footer-top-section .col-lg:not([data-footer-toggle]) .footer-column-links {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    
    .footer-top-section .col-lg:not([data-footer-toggle]) .footer-column-links li {
        margin-bottom: 0.75rem !important;
    }
    
    .footer-top-section .col-lg:not([data-footer-toggle]) .footer-column-links a {
        color: #666666 !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        display: block !important;
        padding: 0 !important;
        transition: color 0.3s ease !important;
    }
    
    .footer-top-section .col-lg:not([data-footer-toggle]) .footer-column-links a:hover {
        color: var(--primary-blue) !important;
        text-decoration: underline !important;
    }
    
    /* Desktop footer hides arrows and shows all content */
    @media (min-width: 769px) {
        .footer-arrow {
            display: none !important;
        }
        
        .footer .footer-section[data-footer-toggle] .footer-links {
            display: block !important;
        }
        
        .footer .footer-section[data-footer-toggle] h5 {
            cursor: default !important;
        }
        
        .footer .footer-section[data-footer-toggle] {
            border-bottom: none !important;
        }
    }
    
    /* Front Page Content responsive */
    .about-grid-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        min-height: auto;
    }
    
    .about-main {
        grid-column: 1;
        grid-row: 1;
        padding: 2rem 1.5rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .vision-item {
        grid-column: 1;
        grid-row: 2;
    }
    
    .vision-image {
        min-height: 200px;
    }
    
    .executives-item {
        grid-column: 1;
        grid-row: 3;
        flex-direction: column;
        min-height: auto;
    }
    
    .executives-content,
    .executives-image {
        flex: none;
    }
    
    .executives-image {
        min-height: 250px;
    }
    
    .executives-content {
        padding: 2rem 1.5rem;
    }
}



/* ===== Hide Page Titles ===== */

/* Hide page titles across all pages */
.page-title,
.entry-title,
h1.page-title,
h1.entry-title,
.page-header .page-title,
.entry-header .entry-title,
.wp-block-post-title,
.single .entry-header .entry-title,
.page .entry-header .entry-title {
    display: none !important;
}

/* Hide page header sections that typically contain titles */
.page-header,
.entry-header {
    display: none !important;
}

/* Ensure content still has proper spacing without headers */
.page-content,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any gap between header and content */
.front-page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Add margin-top and margin-bottom for regular pages main content */
body:not(.front-page) .page-wrapper {
    margin-top: 3rem !important; /* Bootstrap mt-5 equivalent */
    margin-bottom: 3rem !important; /* Bootstrap mb-5 equivalent */
}

body:not(.front-page) main {
    margin-top: 3rem !important; /* Bootstrap mt-5 equivalent */
    margin-bottom: 3rem !important; /* Bootstrap mb-5 equivalent */
}

/* Ensure no spacing issues with sticky header */
body {
    margin: 0;
    padding: 0;
}


/* Hero Carousel Styles - All handled in carousel.css */











