/* CSS Design System - Dr Khelil Anis Website */

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Color Palette Variable Tokens */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-on-accent: #ffffff;
    --accent-primary: #0f2c59; /* Deep Royal Navy */
    --accent-secondary: #0ea5e9; /* Sky blue/Teal */
    --accent-glow: rgba(14, 165, 233, 0.15);
    --border-color: #e2e8f0;
    --topbar-bg: #0f2c59;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --emergency-bg: #fee2e2;
    --emergency-text: #dc2626;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --card-hover-y: -8px;
}

body.dark-mode {
    --bg-primary: #0a0f1d;
    --bg-secondary: #101628;
    --bg-card: #141c33;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-on-accent: #0f172a;
    --accent-primary: #38bdf8; /* Vibrant Sky */
    --accent-secondary: #06b6d4; /* Vibrant Cyan */
    --accent-glow: rgba(6, 182, 212, 0.2);
    --border-color: #1e293b;
    --topbar-bg: #070a14;
    --navbar-bg: rgba(10, 15, 29, 0.85);
    --emergency-bg: #450a0a;
    --emergency-text: #f87171;
    --shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --card-hover-y: -8px;
}

/* Typography & General */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* UTILITIES */
.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-secondary);
    margin: 15px 0 25px 0;
    border-radius: 2px;
}

.divider.center {
    margin: 15px auto 25px auto;
}

.dark-bg-alt {
    background-color: var(--bg-secondary);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent-secondary);
    color: #ffffff;
}

body.dark-mode .btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px var(--accent-secondary);
    opacity: 0.95;
}

.btn-secondary {
    background-color: var(--accent-primary);
    color: #ffffff;
}

body.dark-mode .btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-text:hover {
    color: var(--accent-primary);
}

.btn-text:hover i {
    transform: translateX(4px);
}

.btn-block {
    width: 100%;
}

/* TOPBAR */
.topbar {
    background-color: var(--topbar-bg);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-item a {
    color: #ffffff;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: padding 0.3s ease, background-color 0.4s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    color: var(--text-primary);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-secondary);
    transition: width 0.3s ease;
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle, .mobile-menu-toggle {
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.05);
}

.theme-toggle i {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle.spin i {
    transform: rotate(360deg) scale(1.3);
}

/* Specific colors for sun and moon icons */
body.dark-mode .theme-toggle i.fa-sun {
    color: #eab308; /* Golden yellow */
}

body.light-mode .theme-toggle i.fa-moon {
    color: #4f46e5; /* Indigo/blue */
}

.mobile-menu-toggle {
    display: none;
}

/* HERO SECTION */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 15px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--accent-secondary);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-number::after {
    content: '+';
    color: var(--accent-secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* FEATURES BLOCKS */
.features-blocks {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.25);
}

.feature-card:hover .feature-icon i,
.feature-card:hover .feature-icon svg {
    transform: scale(1.15) rotate(-5deg);
}

.feature-icon i,
.feature-icon svg {
    transition: transform 0.3s ease;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.urology-bg { background-color: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.sexology-bg { background-color: rgba(236, 72, 153, 0.1); color: #ec4899; }
.andrology-bg { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.hyperbaric-bg { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* PRESENTATION (QUI SUIS-JE) */
.section-presentation {
    padding: 80px 0;
}

.presentation-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.presentation-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.doctor-photo, .doctor-video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .doctor-photo,
.image-wrapper:hover .doctor-video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 89, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(15, 44, 89, 0.6);
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-overlay:hover .play-btn {
    transform: scale(1.15);
}

.video-overlay span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.badges-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.badge-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.badge-item i {
    color: var(--accent-secondary);
}

.presentation-text {
    display: flex;
    flex-direction: column;
}

.section-subtitle {
    color: var(--accent-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-presentation h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.presentation-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.credentials-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credential-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.credential-item i {
    color: var(--accent-secondary);
    font-size: 1.25rem;
    margin-top: 3px;
}

.credential-item div strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.credential-item div span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SPECIALTIES GRID */
.section-specialties {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.specialties-tabs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.specialty-item-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.specialty-item-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.25);
}

.specialty-item-card:hover .card-icon i {
    transform: scale(1.15) rotate(-5deg);
}

.card-icon i {
    transition: transform 0.3s ease;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.specialty-item-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.specialty-item-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 54px;
}

.specialty-cta {
    margin-top: 50px;
}

.cta-box {
    background: linear-gradient(135deg, var(--accent-primary), rgba(15, 44, 89, 0.95));
    color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cta-box h3 {
    color: #ffffff;
    font-size: 1.75rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* MY CABINET */
.section-cabinet {
    padding: 80px 0;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.cabinet-details h2 {
    font-size: 2.5rem;
}

.cabinet-details p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.missions-box {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-secondary);
    padding: 25px;
    border-radius: 0 15px 15px 0;
    margin-bottom: 30px;
}

.missions-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--accent-secondary);
}

.missions-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.clinics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clinics-list h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.clinic-item {
    display: flex;
    gap: 15px;
}

.clinic-dot {
    color: var(--accent-secondary);
    margin-top: 4px;
}

.clinic-item strong {
    display: block;
    font-size: 0.95rem;
}

.clinic-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cabinet-schedule {
    position: sticky;
    top: 110px;
}

.schedule-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.schedule-card h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.schedule-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.schedule-list li.closed {
    color: var(--emergency-text);
}

.schedule-emergency {
    background-color: var(--emergency-bg);
    color: var(--emergency-text);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.emergency-icon {
    font-size: 2rem;
}

.schedule-emergency strong {
    display: block;
    font-size: 0.95rem;
}

.schedule-emergency span {
    font-size: 0.8rem;
}

.schedule-emergency a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* TESTIMONIALS */
.section-testimonials {
    padding: 80px 0;
}

.testimonials-slider-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    position: relative;
    text-align: center;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 30px;
}

.patient-name {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.patient-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--accent-secondary);
    transform: scale(1.25);
}

/* CONTACT & BOOKING FORM */
.section-contact {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.contact-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.contact-form-container p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Form success toast */
.form-success-toast {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 5;
    animation: fadeIn 0.4s ease forwards;
}

.form-success-toast i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.form-success-toast h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success-toast p {
    margin-bottom: 0;
}

.contact-info-column {
    display: flex;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.info-card h3 {
    font-size: 1.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-detail-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-detail-item a:hover {
    color: var(--accent-secondary);
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.social-networks h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.social-icons a:hover {
    background-color: var(--accent-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    border-radius: 50%;
}

.footer-col-about p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-grid h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent-secondary);
}

.footer-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-grid ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-grid ul li a:hover {
    color: var(--accent-secondary);
    padding-left: 4px;
}

.footer-col-contact p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col-contact p i {
    color: var(--accent-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* MODALS */
.modal-video, .modal-specialty {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 15, 29, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease forwards;
}

.video-modal-content {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.specialty-modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow);
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--text-muted);
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Specialty Modal Content Styling */
.modal-header-icon {
    font-size: 3rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
}

.modal-content-body h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-sub {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal-content-body p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.modal-list-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.modal-bullets li {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-bullets li i {
    color: var(--accent-secondary);
    margin-top: 4px;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 105px; /* Shifted up to avoid overlapping with the chat widget */
    right: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    z-index: 90;
    transition: background-color 0.3s ease, transform 0.3s ease, bottom 0.3s ease;
}

body.dark-mode .back-to-top {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.back-to-top:hover {
    background-color: var(--accent-primary);
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* ANIMATIONS & SCROLL TRIGGER MOCK */
.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .presentation-container, .cabinet-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .presentation-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .cabinet-schedule {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    .cabinet-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .topbar-wrapper {
        justify-content: center;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 77px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 77px);
        background-color: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        z-index: 99;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .appointment-nav-btn {
        margin-top: 10px;
        width: 80%;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .specialties-tabs-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .booking-form .form-group {
        margin-bottom: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* CABINET GALLERY */
.cabinet-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 35px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(transparent, rgba(15, 44, 89, 0.9));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

@media (max-width: 768px) {
    .cabinet-gallery {
        grid-template-columns: 1fr;
    }
}

/* APPENDED CUSTOM GRAPHICS, ANIMATIONS, AND AI CHAT WIDGET STYLES */

/* Urology inline SVG Styling */
.urology-svg {
    width: 28px;
    height: 28px;
    color: inherit; /* will inherit #0ea5e9 color from .urology-bg parent class styling */
}

/* Hero Background Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero Page Load Animations */
.hero-content .hero-badge,
.hero-content .hero-title,
.hero-content .hero-desc,
.hero-content .hero-ctas,
.hero-stats .stat-card {
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .hero-badge { animation-delay: 0.1s; }
.hero-content .hero-title { animation-delay: 0.25s; }
.hero-content .hero-desc { animation-delay: 0.4s; }
.hero-content .hero-ctas { animation-delay: 0.55s; }

.hero-stats .stat-card:nth-child(1) { animation-delay: 0.7s; }
.hero-stats .stat-card:nth-child(2) { animation-delay: 0.8s; }
.hero-stats .stat-card:nth-child(3) { animation-delay: 0.9s; }

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

/* AI FAQ CHAT WIDGET */
.faq-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
}

.faq-chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    position: relative;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.faq-chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--accent-primary);
}

.pulse-ring {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent-secondary);
    animation: chatPulse 2s infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes chatPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.faq-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body.dark-mode .faq-chat-window {
    background: rgba(20, 28, 51, 0.85);
}

body.light-mode .faq-chat-window {
    background: rgba(255, 255, 255, 0.9);
}

.faq-chat-window.open {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.faq-chat-header {
    background-color: var(--accent-primary);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .faq-chat-header {
    background-color: #070a14;
    color: var(--accent-primary);
}

.faq-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-card);
}

.bot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    background-color: #ffffff;
}

body.dark-mode .bot-avatar {
    border-color: var(--accent-primary);
}

.faq-chat-header-info h4 {
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.online-indicator {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-indicator::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
}

.close-chat {
    font-size: 1.8rem;
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

body.dark-mode .close-chat {
    color: var(--text-primary);
}

.close-chat:hover {
    opacity: 1;
}

.faq-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.88rem;
    line-height: 1.4;
    position: relative;
    animation: chatMsgReveal 0.3s ease forwards;
}

@keyframes chatMsgReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg {
    align-self: flex-start;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.user-msg {
    align-self: flex-end;
    background-color: var(--accent-secondary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

body.dark-mode .user-msg {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.quick-reply-btn:hover {
    border-color: var(--accent-secondary);
    background-color: var(--accent-glow);
    color: var(--accent-secondary);
    transform: translateY(-1px);
}

.faq-chat-input-area {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background-color: var(--bg-secondary);
}

.faq-chat-input-area input {
    flex: 1;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.faq-chat-input-area input:focus {
    border-color: var(--accent-secondary);
}

.send-chat-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

body.dark-mode .send-chat-btn {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.send-chat-btn:hover {
    background-color: var(--accent-primary);
    transform: scale(1.05);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    align-items: center;
    justify-content: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    .faq-chat-window {
        width: calc(100vw - 40px);
        height: 460px;
        bottom: 70px;
    }
}

/* GOOGLE REVIEWS SECTION */
.google-rating-badge {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px 40px;
    border-radius: 15px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.google-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b; /* Amber/Gold stars */
    font-size: 1.4rem;
}

.google-rating-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 50px;
    background-color: #0f2c59; /* Navy */
    color: #ffffff;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

body.dark-mode .google-btn {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Infinite Marquee Track */
.google-reviews-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: marqueeScroll 45s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 12.5px)); /* exactly half the width including gap */
    }
}

/* Review Cards */
.google-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 380px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .google-review-card {
    background: rgba(20, 28, 51, 0.8);
}

body.light-mode .google-review-card {
    background: rgba(255, 255, 255, 0.85);
}

.google-review-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 15px 30px -10px rgba(14, 165, 233, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-glow);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
}

.patient-badge {
    font-size: 0.72rem;
    color: #10b981; /* Green verified badge */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-google-logo {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.google-review-card:hover .review-google-logo {
    opacity: 0.85;
    color: #4285f4; /* Google Blue on card hover! */
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .google-review-card {
        width: 320px;
        padding: 24px;
    }
}

/* TREATMENT FLYERS IN MODALS */
.modal-flyers-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
}

.modal-flyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.modal-flyer-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-flyer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-secondary);
}

.modal-flyer-img-container {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--bg-card);
}

.modal-flyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-flyer-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.modal-flyer-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
}

.modal-flyer-info p {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0 !important;
}

@media (max-width: 480px) {
    .modal-flyers-grid {
        grid-template-columns: 1fr;
    }
}

/* SECTION BROCHURES & SLIDER */
.section-brochures {
    padding: 100px 0;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.slider-container {
    flex: 1;
    overflow: hidden;
    padding: 10px 5px;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-item {
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    aspect-ratio: 1/1;
}

.slider-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--accent-secondary);
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover:not(:disabled) {
    background-color: var(--accent-secondary);
    color: #ffffff;
    border-color: var(--accent-secondary);
    transform: scale(1.1);
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev-arrow {
    margin-right: 15px;
}

.next-arrow {
    margin-left: 15px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background-color: var(--accent-secondary);
    transform: scale(1.2);
    width: 20px;
    border-radius: 10px;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-modal.open .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
    .prev-arrow { margin-right: 0; }
    .next-arrow { margin-left: 0; }
    .section-brochures {
        padding: 60px 0;
    }
}

