:root {
    --primary-color: #00A8A8;
    --primary-dark: #008585;
    --secondary-color: #1e293b;
    --background-color: #f8fafc;
    --white: #FFFFFF;
    --light-turquoise: #EFFBFA;
    --accent-gold: #fbbf24;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #00A8A8 0%, #008585 100%);
    --gradient-deep: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--secondary-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--light-turquoise);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--primary-color);
}

.header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, rgba(0, 168, 168, 0.15), transparent);
    pointer-events: none;
    z-index: 90;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1400px;
    /* Increased width to accommodate all buttons comfortably */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

/* Header Right Area */
.header-right {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-bg {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary-bg:hover {
    background-color: var(--primary-dark);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-drop-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.lang-drop-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.lang-drop-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid #eee;
}

.lang-drop-content a {
    color: var(--secondary-color);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.lang-drop-content a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.language-dropdown:hover .lang-drop-content {
    display: block;
}

/* View System - SPA Style */
.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    animation: fadeIn 0.5s ease-out;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.view-section.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.logo-img {
    height: 135px;
    /* Slightly reduced to keep it elegant in the sticky header */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    animation: logoIdle 3s ease-in-out infinite;
    transform-origin: center center;
}

.logo-img:hover {
    transform: scale(1.05) rotate(-2deg);
    animation-play-state: paused;
    /* Pause idle animation on hover */
}

@keyframes logoIdle {

    0%,
    100% {
        transform: scale(1) rotate(0deg) translateY(0);
    }

    15% {
        transform: scale(1.04) rotate(-3deg) translateY(-3px);
    }

    30% {
        transform: scale(1) rotate(0deg) translateY(0);
    }

    45% {
        transform: scale(1.04) rotate(3deg) translateY(-3px);
    }

    60% {
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

.fola-logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(36px, 4vw, 45px);
    width: clamp(36px, 4vw, 45px);
    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fola-logo-header img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fola-logo-header:hover img {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.fola-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fola-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    z-index: 1000;
}

.fola-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.fola-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-color);
}


.nav-links {
    display: flex;
    gap: 0.6rem;
    /* Slightly reduced gap for better fit */
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent items from wrapping vertically */
}

.nav-links a {
    font-weight: 600;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 0.9rem;
    /* Slightly smaller for better fit */
    white-space: nowrap;
    /* CRITICAL: Prevent text like 'Ana Sayfa' from breaking */
    display: block;
}


.nav-links a:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding: 3rem 0 0;
    background: linear-gradient(180deg, rgba(0, 168, 168, 0.12) 0%, rgba(255, 255, 255, 0.6) 100%);
    text-align: center;
}

.hero-banner-container {
    margin-top: 0;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 500px;
    height: 220px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 168, 168, 0.1);
    background-color: #f0f0f0;
}

.hero-banner-container::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    pointer-events: none;
    z-index: 2;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 55%;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.5s ease;
    filter: contrast(1.05) saturate(1.15) brightness(1.02);
    -webkit-filter: contrast(1.05) saturate(1.15) brightness(1.02);
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
}

@keyframes slowMove {
    0% {
        transform: scale(1.05) translateX(0);
    }

    50% {
        transform: scale(1.1) translateX(-15px);
    }

    100% {
        transform: scale(1.05) translateX(0);
    }
}

.hero-banner:hover {
    transform: scale(1.03);
    filter: contrast(1.1) saturate(1.2) brightness(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.hero p {
    font-size: 1.2rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 3rem;
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply {
    background-color: #4B5563;
    color: white;
    border: 2px solid #4B5563;
}

.btn-whatsapp,
.btn-instagram {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-apply:hover {
    background-color: transparent;
    color: #4B5563;
}

.btn-whatsapp:hover,
.btn-instagram:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Store Buttons (Hero Promo) */
.store-btn {
    background: #000;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    min-width: 180px;
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-3px);
    background: #222;
}

.store-btn small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-btn strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Features */
.features {
    padding: 2rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Education Section */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 0;
    margin-top: 2rem;
}



.edu-card {
    width: 100%;
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 168, 168, 0.1);
    position: relative;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: 0.3s;
}

.edu-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 168, 168, 0.1);
    border-color: var(--primary-color);
}

.edu-card:hover::before {
    opacity: 1;
}

.edu-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(0, 168, 168, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: 0.3s;
}

.edu-card:hover i {
    background: var(--primary-color);
    color: white;
    transform: rotate(5deg);
}

.edu-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.edu-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    /* Push the list to the bottom */
}

.edu-step-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(0, 168, 168, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edu-list {
    margin-top: 1.5rem;
    list-style: none;
    padding-left: 0;
}

.edu-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #444;
}

.edu-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


.edu-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    text-align: left;
}

.edu-highlight i,
.edu-highlight h3,
.edu-highlight p {
    color: white;
}

.why-list {
    margin-top: 1.5rem;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.why-list li i {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.teacher-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.location-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}


.teacher-card:hover,
.location-card:hover {
    border-color: var(--primary-color);
}

.teacher-img {
    width: 100%;
    height: 150px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    /* Ensure image stays within radius */
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-container {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-btn {
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    display: inline-block;
    margin-top: 1rem;
}

/* Contact Banner */
.contact-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Modal Form */
.modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    z-index: 1000;
}

.action-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-stores {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    z-index: 1000;
}

.store-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.translation-tooltip {
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 250px;
    text-align: left;
    line-height: 1.4;
    animation: fadeInTooltip 0.2s ease-out;
}

.store-tooltip,
.insta-tooltip,
.wa-tooltip {
    position: absolute;
    bottom: 100%;
    margin-bottom: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.store-tooltip.show,
.insta-tooltip.show,
.wa-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: bounceTooltip 2s infinite;
}

.store-tooltip {
    left: 0;
}

.insta-tooltip,
.wa-tooltip {
    right: 0;
}

.store-tooltip::after,
.insta-tooltip::after,
.wa-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-color);
}

.store-tooltip::after {
    left: 20px;
}

.insta-tooltip::after,
.wa-tooltip::after {
    right: 20px;
}


@keyframes bounceTooltip {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


.float-btn,
.store-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.float-btn:hover,
.store-float-btn:hover {
    transform: scale(1.1);
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.store-float-btn {
    background-color: #000;
}

/* Mobile */
.edu-highlight {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(0, 168, 168, 0.05) 100%);
    border: 2px solid var(--primary-color);
}

.edu-highlight>div {
    flex: 1;
}

.edu-highlight>div:last-child {
    flex: 2;
}

.edu-highlight i {
    width: 80px;
    height: 80px;
    font-size: 3.5rem;
}

.edu-highlight h3 {
    font-size: 2.2rem;
    margin-top: 1rem;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.why-list .why-full-width {
    grid-column: span 2;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .about-header h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Header & Mobile Menu */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--light-turquoise);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
        padding: 15px;
    }

    .header-right {
        margin-left: 0.5rem;
    }

    .fola-logo-header {
        margin: 0 0.5rem;
    }

    .fola-logo-header img {
        height: 60px;
        width: 60px;
    }

    /* Hero */
    .hero {
        padding-top: 2rem;
        padding-bottom: 8rem;
        /* Significant padding at bottom to clear fixed icons */
        min-height: auto;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        /* Clear gap between title, image, text */
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 0 15px;
        /* Base padding */
        max-width: 85%;
        /* Keep away from edges */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-banner-container {
        height: 220px;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Education Section */
    .edu-process {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .edu-process h3 {
        font-size: 1.8rem;
    }

    .edu-process p {
        font-size: 1.1rem;
    }

    .edu-grid {
        gap: 3rem;
    }

    .edu-card {
        padding: 2rem 1.5rem;
    }

    /* Teachers */
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* All sections - remove blank space and add bottom buffer */
    .view-section {
        padding-top: 1rem !important;
        padding-bottom: 8rem !important;
        /* Ensure content doesn't get covered by fixed icons */
        min-height: auto !important;
    }

    .features {
        padding: 1rem 0 !important;
    }

    /* About Section */
    .about-header h2 {
        font-size: 2rem;
    }

    .about-header p {
        font-size: 1.1rem;
    }

    .about-block-premium p {
        font-size: 1.1rem;
    }

    /* Locations */
    .location-grid {
        grid-template-columns: 1fr;
    }

    /* Floating Buttons */
    /* Floating Buttons */
    .floating-actions,
    .floating-stores {
        bottom: 20px;
        /* Moved to very bottom */
    }

    .float-btn,
    .store-float-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .store-tooltip,
    .insta-tooltip,
    .wa-tooltip {
        font-size: 0.65rem;
        /* Smaller text */
        padding: 4px 10px;
        /* Smaller padding */
        /* Smaller padding */
        margin-bottom: 10px;
        /* Closer to button */
    }

    /* Reduce vertical gap between floating buttons on mobile */
    .floating-actions,
    .floating-stores {
        gap: 3.5rem;
        /* Reduced from default 5.5rem */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .edu-process h3 {
        font-size: 1.5rem;
    }

    .about-header h2 {
        font-size: 1.8rem;
    }
}

/* About Section Premium (Apple Style) */
#hakkimizda {
    padding: 100px 0;
    background-color: #fff;
    color: #1d1d1f;
    overflow: hidden;
}

.about-apple-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
}

.about-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.about-header p {
    font-size: 1.5rem;
    color: #86868b;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.about-grid-premium {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-content-premium {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.about-block-premium h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.about-block-premium p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #424245;
    font-weight: 400;
}

.about-block-premium strong {
    color: var(--primary-color);
}

.about-footer-btns {
    margin-top: 60px;
    text-align: center;
}



.header-insta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(36px, 4vw, 45px);
    width: clamp(36px, 4vw, 45px);
    border-radius: 10px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    font-size: clamp(18px, 2vw, 24px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-insta-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* FolaApp Button Styles */
.fola-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(36px, 4vw, 45px);
    width: clamp(36px, 4vw, 45px);
    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fola-app-btn img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fola-app-btn:hover img {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.fola-app-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    /* Center relative to parent if needed, but wrapper is relative */
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    z-index: 1000;
}

.fola-app-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.fola-app-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-color);
}

/* Reviews Slider Styles */
.reviews-slider-outer {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
}

.reviews-slider-inner {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.reviews-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.reviews-track .testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    box-sizing: border-box;
}

.reviews-track .testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.reviews-track .testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reviews-track .testimonial-card .author {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #25D366;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .reviews-slider-outer {
        padding: 0 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .reviews-track .testimonial-card {
        padding: 1.5rem;
    }

    .reviews-track .testimonial-card p {
        font-size: 1rem;
    }
}

/* Instagram Reels Slider */
.insta-slider-outer {
    position: relative;
    max-width: 800px;
    /* Smaller container for square cards */
    margin: 0 auto 3rem auto;
    padding: 0 45px;
    display: flex;
    align-items: center;
}

.insta-slider-inner {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.insta-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.insta-reel-card {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    aspect-ratio: 1/1;
    /* Modern square ratio */
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.insta-reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-reel-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.reel-content {
    font-size: 4rem;
    color: #bc1888;
    opacity: 0.3;
}

.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.9), rgba(188, 24, 136, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.insta-reel-card:hover .reel-overlay {
    opacity: 1;
}

.reel-overlay i {
    font-size: 2.5rem;
}

.reel-overlay span {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .insta-slider-outer {
        padding: 0 10px;
        max-width: 400px;
    }

    .insta-reel-card {
        height: 550px;
    }
}

/* Side-by-Side Layout */
.media-side-by-side {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.media-column {
    flex: 1 1 450px;
    max-width: 550px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.side-slider {
    padding: 0 35px !important;
    max-width: 100% !important;
}

.faq-container h3:hover {
    color: var(--primary-color);
}

.faq-container i {
    transition: transform 0.3s ease;
}


/* YouTube Video Slider */
.youtube-slider-outer {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 0 55px;
    display: flex;
    align-items: center;
}

.youtube-slider-inner {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.youtube-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.yt-video-card {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.yt-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.yt-video-card:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 3rem;
}

.video-overlay span {
    font-size: 1.2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .youtube-slider-outer {
        padding: 0 10px;
        max-width: 100%;
    }
}

/* FAQ Section Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: #fcfcfc;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    transition: max-height 0.5s ease-in-out;
}

.faq-item.active {
    box-shadow: 0 8px 15px rgba(0, 168, 168, 0.1);
    border-color: rgba(0, 168, 168, 0.3);
}

/* ==========================================================================
   PORTAL REDESIGN - PREMIUM UI
   ========================================================================== */

.portal-body {
    background: var(--gradient-deep);
    min-height: 100vh;
    overflow-x: hidden;
}

.glass-card {
    background: white;
    /* Simplified for high contrast */
    border: 1px solid #e0e0e0;
    /* Simplified border */
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    /* Simplified shadow */
}

.portal-container-new {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: var(--gradient-deep);
}

/* Login Box Redesign */
.login-box-premium {
    width: 100%;
    max-width: 450px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    animation: slideInDown 0.8s var(--transition);
}

.portal-logo-container {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 25px rgba(0, 168, 168, 0.2);
    padding: 15px;
}

.portal-logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.login-box-premium h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

.login-box-premium p {
    color: #64748b;
    margin-bottom: 2.5rem;
}

.premium-input-group {
    margin-bottom: 2rem;
    text-align: left;
}

.premium-input-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: #334155;
    font-size: 0.9rem;
    padding-left: 5px;
}

.premium-input {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.premium-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 168, 168, 0.1);
}

.btn-premium {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 168, 168, 0.3);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 168, 168, 0.4);
}

/* Game Cards Redesign */
.game-card-premium {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.game-card-premium:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 168, 168, 0.2);
}

.game-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--light-turquoise);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.game-card-premium:hover .game-icon-circle {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

/* Quiz UI Enhancements */
.portal-nav-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.premium-stat {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-container-premium {
    background: white;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    min-height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-subject {
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.game-question {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    z-index: 10;
}

.answers-area {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 350px;
    z-index: 50;
    /* Ensure this is above other container elements */
    pointer-events: auto;
}

.answer-bubble {
    position: absolute;
    bottom: -100px;
    padding: 1.2rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 168, 168, 0.3);
    animation: floatUp var(--float-time) ease-out forwards;
    white-space: nowrap;
    z-index: 100;
    /* High z-index to be on top of everything */
    border: none;
    pointer-events: auto !important;
}

.answer-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 168, 168, 0.5);
}

.answer-bubble.correct {
    background: #22c55e !important;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
    transform: scale(1.15) !important;
    z-index: 50;
}

.answer-bubble.wrong {
    background: #ef4444 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    transform: scale(0.9);
    opacity: 0.7;
}

@keyframes floatUp {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: scale(0.8);
    }

    20% {
        opacity: 1;
    }

    100% {
        bottom: var(--final-position);
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Tabs Extra Styles */
.admin-tabs {
    display: flex;
    gap: 1rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.admin-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s ease;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-tab:hover {
    background: white;
    color: #00A8A8;
}

.admin-tab.active {
    background: white;
    color: #00A8A8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-form-section {
    display: none;
}

.admin-form-section.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

.admin-questions-list {
    display: none;
}

.admin-questions-list.active {
    display: block;
}

/* Page Flip Effect */
.page-flip-enter {
    animation: pageFlipIn 0.6s cubic-bezier(0.645, 0.045, 0.355, 1.000) forwards;
}

.page-flip-exit {
    animation: pageFlipOut 0.6s cubic-bezier(0.645, 0.045, 0.355, 1.000) forwards;
}

@keyframes pageFlipIn {
    0% {
        transform: rotateY(-90deg);
        opacity: 0;
    }

    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@keyframes pageFlipOut {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: rotateY(90deg);
        opacity: 0;
    }
}

.story-page-image {
    max-width: 100%;
    max-height: 350px;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.story-page-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
}

/* Horizontal Story Layout */
.story-horizontal-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    align-items: stretch;
    gap: 3rem;
}

.story-side-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-side-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.story-side-text {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.story-side-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #334155;
}

/* Open Book Spread CSS */
.book-spread {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: #e2e8f0;
    padding: 20px;
    border-radius: 15px;
    perspective: 2000px;
}

.book-page {
    flex: 1;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.book-page-left {
    border-radius: 10px 0 0 10px;
    border-right: 1px solid #eee;
}

.book-page-right {
    border-radius: 0 10px 10px 0;
    border-left: 1px solid #eee;
}

.book-spine {
    width: 40px;
    background: linear-gradient(to right, #ddd, #fff 50%, #ddd);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.book-page img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.book-page p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #334155;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Premium Design - Match Image Layout */
.book-spread-premium {
    display: flex;
    width: 100%;
    min-height: 400px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex: 1; /* Allow to fill container */
}

.book-page-img {
    flex: 1.2;
    background: #000;
    position: relative;
    overflow: hidden;
}

.book-page-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-page-text {
    flex: 0.8;
    background: #fdfdfd;
    background-image: radial-gradient(#e5e7eb 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.book-page-text p {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.5rem;
    line-height: 1.7;
    color: #1e293b;
    max-width: 90%;
    margin: auto 0;
    font-weight: 300;
}

.book-author-tag {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
    .book-spread-premium {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .book-page-img {
        max-height: 35vh; /* Restricted and flexible */
        flex: none;
    }
    
    .book-page-img img {
        object-fit: contain; /* Don't crop on mobile */
    }

    .book-page-text {
        padding: 1.5rem;
        flex: 1;
        overflow-y: auto;
    }

    .book-author-tag {
        top: 0.8rem;
        right: 1rem;
        font-size: 0.7rem;
    }
}

/* Story Gallery (Store View) - Optimized for Density (110px) */
.story-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.book-card-premium {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.book-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
    border-color: #e0e7ff;
}

.book-card-cover-wrap {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f8fafc;
}

.book-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card-premium:hover .book-card-cover {
    transform: scale(1.05);
}

.book-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.book-card-info {
    padding: 0.8rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.book-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-card-author {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 500;
}

.book-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.book-card-premium:hover .book-card-overlay {
    opacity: 1;
}

.book-read-btn {
    background: white;
    color: #4338ca;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Game Selection Layout - Side by Side */
.game-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
}

.game-card-premium {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1 1 280px;
    max-width: 320px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card-premium:hover {
    transform: translateY(-10px);
    border-color: #00A8A8;
    box-shadow: 0 20px 40px rgba(0, 168, 168, 0.2);
}

@media (max-width: 900px) {
    .game-card-premium {
        flex: 1 1 100%;
        max-width: 100%;
    }
}