/* ==========================================
   CSS Variables & Design System
   ========================================== */

:root {
    /* Colors - Will be overridden by config.js */
    --color-primary: #1a1a2e;
    --color-secondary: #c5a572;
    --color-accent: #d4af37;
    
    /* Derived Colors */
    --color-primary-light: rgba(26, 26, 46, 0.1);
    --color-primary-dark: #0f0f1a;
    --color-secondary-light: rgba(197, 165, 114, 0.1);
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-surface: #f8f8f8;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================
   Utility Classes
   ========================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   Navigation Bar
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.lang-toggle {
    padding: 0.5rem 1rem;
    background: var(--color-primary-light);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.lang-toggle:hover {
    background: var(--color-primary);
    color: white;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(197, 165, 114, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: heroAnimation 20s ease-in-out infinite;
}

@keyframes heroAnimation {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    /* text-align: center; */
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 700;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.4s backwards;
    background: white;
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

.hero-cta:hover {
    background: var(--color-secondary);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        opacity: 0;
        height: 40px;
    }
    50% {
        opacity: 1;
        height: 60px;
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-text {
    text-align: left;
    animation: fadeInUp 1s ease;
}

.hero-text .hero-title {
    margin-bottom: var(--spacing-md);
}

.hero-text .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
}

.hero-visual {
    position: relative;
    height: 420px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* 右側視覺卡片 */
.hero-image-card {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.15),
            rgba(255,255,255,0.05)
        );
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

/* 裝飾光影 */
.hero-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left,
            rgba(197,165,114,0.35),
            transparent 60%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 或 contain，看你是插畫還是照片 */
    display: block;
}

/* ==========================================
   Hero Background Mode (Replaces old Image Mode)
   ========================================== */

.hero.hero-background-mode {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.hero-background-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    animation: none;
}

.hero.hero-background-mode[data-overlay="light"] .hero-overlay {
    background: rgba(255, 255, 255, 0.35);
}

.hero.hero-background-mode[data-overlay="none"] .hero-overlay {
    display: none;
}

.hero.hero-background-mode .hero-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero.hero-background-mode .hero-visual {
    display: none;
}

.hero.hero-background-mode .hero-text {
    width: 100%;
    max-width: 720px;
}

.hero.hero-background-mode.hero-align-left .hero-layout {
    align-items: flex-start;
}

.hero.hero-background-mode.hero-align-left .hero-text {
    text-align: left;
}

.hero.hero-background-mode.hero-align-left .hero-text .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.hero.hero-background-mode.hero-align-center .hero-layout {
    align-items: center;
}

.hero.hero-background-mode.hero-align-center .hero-text {
    text-align: center;
}

.hero.hero-background-mode.hero-align-center .hero-text .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero.hero-background-mode.hero-align-right .hero-layout {
    align-items: flex-end;
}

.hero.hero-background-mode.hero-align-right .hero-text {
    text-align: right;
}

.hero.hero-background-mode.hero-align-right .hero-text .hero-subtitle {
    margin-left: auto;
    margin-right: 0;
}




/* ==========================================
   Products/Services Section
   ========================================== */

.products-section {
    background: var(--color-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    transition: transform var(--transition-base);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.product-description {
    color: var(--color-text-light);
    line-height: 1.8;
    white-space: pre-line;
}

/* ==========================================
   About Section
   ========================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text {
    padding-right: var(--spacing-md);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
}

.about-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    box-shadow: var(--shadow-lg);
}

.visual-card.card-1 {
    width: 60%;
    height: 70%;
    top: 0;
    left: 0;
    z-index: 3;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.visual-card.card-2 {
    width: 65%;
    height: 65%;
    top: 15%;
    right: 0;
    z-index: 2;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

.visual-card.card-3 {
    width: 50%;
    height: 50%;
    bottom: 0;
    left: 20%;
    z-index: 1;
    background: var(--color-surface);
}

/* ==========================================
   Content Blocks
   ========================================== */

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.content-text {
    padding-right: var(--spacing-md);
}

.content-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
    white-space: pre-line;
}

.content-visual {
    position: relative;
    height: 500px;
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.content-block.text-right .content-text {
    order: 2;
    padding-right: 0;
    padding-left: var(--spacing-md);
}

.content-block.text-right .content-visual {
    order: 1;
}



/* ==========================================
   FAQ Section
   ========================================== */

.faq-section {
    background: var(--color-surface);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.faq-question:hover {
    background: var(--color-primary-light);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer-content {
    padding: var(--spacing-md) var(--spacing-md);
    color: var(--color-text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: block;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-secondary);
    transition: all var(--transition-base);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    color: var(--color-accent);
}

.contact-label {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.contact-value {
    color: var(--color-text-light);
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

.social-link:hover svg {
    color: white;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-text {
    opacity: 0.8;
}

/* ==========================================
   Back to Top Button
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ==========================================
   Responsive Design
   ========================================== */





/* ==========================================
   Product Slider Mode
   ========================================== */

.product-slider-container {
    position: relative;
    padding: 2rem 0;
}

.product-slider {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slide {
    min-width: 400px;
    max-width: 400px;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.product-slide:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Product Image Carousel */
.product-image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--color-surface);
    overflow: hidden;
}

.product-images-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 20px;
}

.product-image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-image-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.product-image-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.product-image-arrow {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-image-carousel:hover .product-image-arrow {
    opacity: 1;
}

.product-image-arrow:hover {
    background: white;
    transform: scale(1.1);
}

.product-image-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.product-content {
    padding: var(--spacing-md);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-sm);
}

.product-icon-large {
    font-size: 2.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.product-description {
    color: var(--color-text-light);
    line-height: 1.8;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-base);
}

.slider-btn:hover {
    background: var(--color-primary);
}

.slider-btn:hover svg {
    color: white;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary-light);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}



@media (max-width: 640px) {
    .product-slide {
        min-width: 300px;
        max-width: 300px;
    }
    
    .product-image-carousel {
        height: 250px;
    }
}

/* ==========================================
   News Timeline Mode
   ========================================== */

.news-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-accent));
}

.news-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.news-item:nth-child(odd) {
    flex-direction: row;
}

.news-item:nth-child(even) {
    flex-direction: row-reverse;
}

.news-content {
    flex: 1;
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 var(--spacing-md);
    transition: all var(--transition-base);
}

.news-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image-container {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.news-icon {
    font-size: 1.5rem;
}

.news-description {
    color: var(--color-text-light);
    line-height: 1.8;
}

.news-dot {
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--color-secondary);
}

/* ==========================================
   Responsive Design (Unified)
   ========================================== */

@media (max-width: 968px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transition: left var(--transition-base);
    }
    .nav-menu.active { left: 0; }
    .mobile-toggle { display: block; }

    /* Hero */
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { text-align: center; }
    .hero-text .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-visual {
        height: 300px;
        margin-top: var(--spacing-lg);
    }

    .hero.hero-background-mode.hero-align-left .hero-text { text-align: left; }
    .hero.hero-background-mode.hero-align-left .hero-text .hero-subtitle { margin-left: 0; margin-right: 0; }
    .hero.hero-background-mode.hero-align-center .hero-text { text-align: center; }
    .hero.hero-background-mode.hero-align-center .hero-text .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero.hero-background-mode.hero-align-right .hero-text { text-align: right; }
    .hero.hero-background-mode.hero-align-right .hero-text .hero-subtitle { margin-left: auto; margin-right: 0; }
    .hero.hero-background-mode.hero-align-left .hero-layout { justify-content: flex-start; }
    .hero.hero-background-mode.hero-align-center .hero-layout { justify-content: center; }
    .hero.hero-background-mode.hero-align-right .hero-layout { justify-content: flex-end; }
    .hero.hero-background-mode .hero-text { max-width: 100%; width: 100%; }

    /* About Section */
    .about-content { grid-template-columns: 1fr; }
    .about-visual { height: 400px; }

    /* Content Blocks (Unified with About) */
    .content-block {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .content-text { padding-right: 0; }
    .content-visual { height: 400px; } /* Matches About */
    
    /* Content Block Reordering */
    .content-block.text-right .content-text {
        order: 1;
        padding-left: 0;
    }
    .content-block.text-right .content-visual {
        order: 2;
    }

    /* Products & Contact */
    .products-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    /* Product Slider */
    .product-slide {
        min-width: 350px;
        max-width: 350px;
    }
    .slider-btn { display: none; }

    /* News Timeline */
    .news-timeline::before { left: 20px; }
    .news-item:nth-child(odd),
    .news-item:nth-child(even) { flex-direction: row; }
    .news-content { margin-left: 50px; margin-right: 0; }
    .news-dot { left: 20px; }
}

@media (max-width: 640px) {
    /* Global & Typography */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }

    /* Visuals */
    .about-visual { height: 300px; }
    .content-visual { height: 300px; } /* Matches About */

    /* Product Slider */
    .product-slide {
        min-width: 300px;
        max-width: 300px;
    }
    .product-image-carousel { height: 250px; }
}





