/* ============================================================
   BENİM OKULUM — PUBLIC CSS  v3.0
   Mobile-first, modern design system
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    --primary:        #4facfe;
    --primary-dark:   #00c6fb;
    --primary-deep:   #0d47a1;
    --secondary:      #43e97b;
    --accent:         #ff6b6b;
    --text-dark:      #1e293b;
    --text-mid:       #475569;
    --text-light:     #94a3b8;
    --bg:             #f8fafc;
    --white:          #ffffff;
    --border:         #e2e8f0;
    --shadow-sm:      0 2px 8px rgba(0,0,0,.06);
    --shadow-md:      0 8px 28px rgba(0,0,0,.09);
    --shadow-lg:      0 20px 60px rgba(0,0,0,.12);
    --radius-sm:      10px;
    --radius-md:      16px;
    --radius-lg:      24px;
    --radius-xl:      32px;
    --gradient:       linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero:  linear-gradient(135deg, #1a2a6c 0%, #1565c0 50%, #0d47a1 100%);
    --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; transition: var(--transition); }

/* Touch targets */
* { touch-action: manipulation; }

/* iOS input zoom fix */
@supports (-webkit-touch-callout: none) {
    input, select, textarea { font-size: 16px !important; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(0.95); opacity: .15; }
    50%       { transform: scale(1.05); opacity: .25; }
}

.fade-in     { animation: fadeIn .5s ease forwards; }
.fade-in-up  { animation: fadeInUp .6s ease forwards; }


/* ============================================================
   NAVBAR — styles moved to public_base.html <style> block
   ============================================================ */


/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 7rem 5% 10rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp .9s ease-out;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
    line-height: 1.2;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: .9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.wave { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }
.wave svg { position: relative; display: block; width: calc(158% + 1.3px); height: 100px; transform: rotateY(180deg); }
.wave .shape-fill { fill: var(--bg); }

@media (max-width: 768px) {
    .hero { padding: 5rem 5% 7rem; }
}
@media (max-width: 480px) {
    .hero { padding: 4rem 4% 6rem; }
    .hero p { font-size: .95rem; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.btn-modern-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(79,172,254,.4);
}
.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79,172,254,.5);
    color: white;
}
.btn-modern-outline {
    background: rgba(255,255,255,.12);
    color: white;
    border: 2px solid rgba(255,255,255,.4);
    backdrop-filter: blur(4px);
}
.btn-modern-outline:hover {
    background: rgba(255,255,255,.22);
    color: white;
    transform: translateY(-2px);
}
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    background: var(--gradient);
    color: white !important;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79,172,254,.35);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,172,254,.5);
}


/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 0;
}
.section { padding: 3rem 0; }

@media (max-width: 768px) {
    .container { width: 95%; padding: 2.5rem 0; }
    .section   { padding: 2rem 0; }
}
@media (max-width: 480px) {
    .container { width: 96%; padding: 2rem 0; }
}


/* ============================================================
   CARDS (general)
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity .3s;
}
.card:hover::before { opacity: 1; }


/* ============================================================
   PREMIUM GLASS CARDS SYSTEM (v4.0)
   ============================================================ */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 60px;
}

.premium-card {
    text-decoration: none !important;
    display: block;
    perspective: 1000px;
    height: 100%;
}

.premium-card-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 240px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.premium-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.premium-card-title {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    z-index: 2;
    line-height: 1.2;
}

.premium-card-badge {
    margin-top: 1rem;
    color: #4facfe;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.premium-card:hover .premium-card-content {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    background: white;
}

.premium-card:hover .premium-card-icon {
    background: #4facfe;
    color: white;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.2);
}

.premium-card:hover .premium-card-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure visibility regardless of animations */
.premium-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Background Decoration */
.premium-card-content::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(var(--card-rgb, 79, 172, 254), 0.1);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.6s ease;
}
.premium-card:hover .premium-card-content::after {
    transform: scale(1.8);
    background: rgba(var(--card-rgb, 79, 172, 254), 0.15);
}

/* Grade Specific Themes */
.grade-1 { --card-color: #ff758c; --card-rgb: 255, 117, 140; --card-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.grade-2 { --card-color: #f6d365; --card-rgb: 246, 211, 101; --card-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.grade-3 { --card-color: #43e97b; --card-rgb: 67, 233, 123; --card-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.grade-4 { --card-color: #4facfe; --card-rgb: 79, 172, 254; --card-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.grade-5 { --card-color: #667eea; --card-rgb: 102, 126, 234; --card-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.grade-coding { --card-color: #1e293b; --card-rgb: 30, 41, 59; --card-gradient: linear-gradient(135deg, #334155 0%, #0f172a 100%); }
.grade-guidance { --card-color: #26a69a; --card-rgb: 38, 166, 154; --card-gradient: linear-gradient(135deg, #26a69a 0%, #4db6ac 100%); }
.grade-exams { --card-color: #ff416c; --card-rgb: 255, 65, 108; --card-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); }

.premium-card.grade-1 .premium-card-icon, .premium-card.grade-1 .premium-card-badge { color: #ff758c; }
.premium-card.grade-1 .premium-card-icon { background: rgba(255, 117, 140, 0.1); }
.premium-card.grade-1:hover .premium-card-icon { background: #ff758c; color: white; box-shadow: 0 15px 30px rgba(255, 117, 140, 0.3); }

.premium-card.grade-2 .premium-card-icon, .premium-card.grade-2 .premium-card-badge { color: #f6d365; }
.premium-card.grade-2 .premium-card-icon { background: rgba(246, 211, 101, 0.1); }
.premium-card.grade-2:hover .premium-card-icon { background: #f6d365; color: white; box-shadow: 0 15px 30px rgba(246, 211, 101, 0.3); }

.premium-card.grade-3 .premium-card-icon, .premium-card.grade-3 .premium-card-badge { color: #43e97b; }
.premium-card.grade-3 .premium-card-icon { background: rgba(67, 233, 123, 0.1); }
.premium-card.grade-3:hover .premium-card-icon { background: #43e97b; color: white; box-shadow: 0 15px 30px rgba(67, 233, 123, 0.3); }

.premium-card.grade-4 .premium-card-icon, .premium-card.grade-4 .premium-card-badge { color: #4facfe; }
.premium-card.grade-4 .premium-card-icon { background: rgba(79, 172, 254, 0.1); }
.premium-card.grade-4:hover .premium-card-icon { background: #4facfe; color: white; box-shadow: 0 15px 30px rgba(79, 172, 254, 0.3); }

.premium-card.grade-5 .premium-card-icon, .premium-card.grade-5 .premium-card-badge { color: #667eea; }
.premium-card.grade-5 .premium-card-icon { background: rgba(102, 126, 234, 0.1); }
.premium-card.grade-5:hover .premium-card-icon { background: #667eea; color: white; box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3); }

.premium-card.grade-coding .premium-card-icon, .premium-card.grade-coding .premium-card-badge { color: #1e293b; }
.premium-card.grade-coding .premium-card-icon { background: rgba(30, 41, 59, 0.1); }
.premium-card.grade-coding:hover .premium-card-icon { background: #1e293b; color: white; box-shadow: 0 15px 30px rgba(30, 41, 59, 0.3); }

.premium-card.grade-guidance .premium-card-icon, .premium-card.grade-guidance .premium-card-badge { color: #26a69a; }
.premium-card.grade-guidance .premium-card-icon { background: rgba(38, 166, 154, 0.1); }
.premium-card.grade-guidance:hover .premium-card-icon { background: #26a69a; color: white; box-shadow: 0 15px 30px rgba(38, 166, 154, 0.3); }

.premium-card.grade-exams .premium-card-icon, .premium-card.grade-exams .premium-card-badge { color: #ff416c; }
.premium-card.grade-exams .premium-card-icon { background: rgba(255, 65, 108, 0.1); }
.premium-card.grade-exams:hover .premium-card-icon { background: #ff416c; color: white; box-shadow: 0 15px 30px rgba(255, 65, 108, 0.3); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .premium-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
    .premium-grid { grid-template-columns: 1fr; gap: 20px; }
    .premium-card-content { min-height: auto; padding: 2.5rem 1.5rem; }
    .premium-card-badge { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 10px auto 0;
}

.page-header {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
}
.page-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: .5rem;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle {
    color: var(--text-mid);
    font-size: .95rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   BACK LINKS (Premium Button style)
   ============================================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--card-rgb, 79, 172, 254), 0.15);
    border-radius: 50px;
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 750;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.back-link .icon-box {
    width: 32px;
    height: 32px;
    background: rgba(var(--card-rgb, 79, 172, 254), 0.1);
    color: var(--card-color, var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.back-link:hover {
    background: white;
    color: var(--card-color, var(--primary));
    transform: translateX(-6px) scale(1.02);
    box-shadow: 0 10px 25px rgba(var(--card-rgb, 79, 172, 254), 0.12);
    border-color: var(--card-color, var(--primary));
}

.back-link:hover .icon-box {
    background: var(--card-color, var(--primary));
    color: white;
}


/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-info {
    background: var(--gradient-hero);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.contact-item i {
    width: 42px; height: 42px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.booking-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 600;
    font-size: .88rem;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .95rem;
    transition: var(--transition);
    background: #fcfcfc;
    color: var(--text-dark);
}
.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79,172,254,.15);
    outline: none;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 860px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .booking-form-card { padding: 1.5rem; } }


/* ============================================================
   WELCOME SECTION (index)
   ============================================================ */
.welcome-section {
    text-align: center;
    padding: 5rem 1.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.welcome-badge {
    display: inline-block;
    background: rgba(79,172,254,.1);
    color: var(--primary-deep);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: .5px;
    border: 1px solid rgba(79,172,254,.2);
}
.welcome-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}
.welcome-title .highlight-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.welcome-subtitle {
    font-size: clamp(.95rem, 1.5vw, 1.15rem);
    color: var(--text-mid);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}
@media (max-width: 640px) {
    .welcome-section { padding: 3.5rem 1rem 2rem; }
}


/* ============================================================
   CONTENT SECTIONS (index cards grid)
   ============================================================ */
.courses-section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
}
.content-flow-container { display: flex; flex-direction: column; gap: 2.5rem; }
.content-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}


/* ============================================================
   TOPIC / SUBTOPIC CARDS
   ============================================================ */
.topic-grid, .subtopic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.topic-card, .subtopic-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.topic-card:hover, .subtopic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79,172,254,.4);
}
@media (max-width: 640px) {
    .topic-grid, .subtopic-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PUBLIC EXAM LIST
   ============================================================ */
.exam-list { display: flex; flex-direction: column; gap: 1rem; }
.exam-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}
.exam-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}


/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.blog-card img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.blog-card-title { font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.blog-card-meta  { font-size: .78rem; color: var(--text-light); }
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: white;
    padding: 60px 5% 32px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    font-family: 'Poppins', sans-serif;
}
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-title {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px;
    width: 28px; height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: .88rem;
    transition: color .2s;
}
.footer-list a:hover { color: var(--primary); }
.footer-bottom-new {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: .82rem;
}
.social-links-new { display: flex; gap: 12px; margin-top: 16px; }
.social-links-new a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mid);
    font-size: .95rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-links-new a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 48px 5% 24px; margin-top: 40px; }
}


/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav {
    background: #fcfdfe;
    padding: 2px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: var(--text-light);
    margin: 0;
    padding: 6px 5%;
}
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li:not(:last-child)::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--border);
    font-size: .7rem;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text-dark); font-weight: 600; }
@media (max-width: 480px) {
    .breadcrumb { font-size: .72rem; gap: 6px; }
}


/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    width: 58px; height: 58px;
    bottom: 28px; right: 28px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2.5s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    background: #20ba5a;
    box-shadow: 0 12px 32px rgba(37,211,102,.55);
}
.whatsapp-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #ff3b30;
    color: white;
    font-size: 11px; font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 480px) {
    .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; font-size: 1.6rem; }
}


/* ============================================================
   MISC UTILITIES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
}
.badge-primary   { background: rgba(79,172,254,.12); color: var(--primary-deep); }
.badge-success   { background: rgba(67,233,123,.15); color: #065f46; }
.badge-warning   { background: rgba(245,158,11,.12); color: #92400e; }
.badge-danger    { background: rgba(239,68,68,.12);  color: #991b1b; }

.premium-shadow { box-shadow: 0 20px 60px rgba(0,0,0,.08); }

/* fade-in-up with delays (used in templates) */
@keyframes fadeInUpAnim {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Animations are now specific-only to avoid global overrides */
.fade-in-up-staggered { 
    animation: fadeInUpAnim .6s ease forwards; 
    opacity: 0; 
}


/* ============================================================
   iOS SAFARI FIXES
   ============================================================ */
@supports (-webkit-touch-callout: none) {
    .navbar, .nav-links a, .btn-cta, .btn-modern, .card {
        -webkit-tap-highlight-color: rgba(0,0,0,.08);
    }
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section {
    padding: 5rem 0;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================================
   SCROLLBAR (public site)
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   SELECTION COLOR
   ============================================================ */
::selection { background: rgba(79,172,254,.25); color: #1e293b; }

/* ============================================================
   GLASS HOVER (cards)
   ============================================================ */
.glass-hover {
    transition: transform .35s cubic-bezier(.175,.885,.32,1.275), box-shadow .35s ease;
}
.glass-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.1);
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4facfe;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   COURSE HERO (Premium detail header)
   ============================================================ */
.course-hero {
    background: white;
    border-radius: 40px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Dynamic glow effect based on grade */
.course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--card-rgb, 79, 172, 254), 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-grade-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--card-rgb, 79, 172, 254), 0.1);
    color: var(--card-color, var(--primary));
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 850;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(var(--card-rgb, 79, 172, 254), 0.2);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.course-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -1.5px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.course-visual {
    position: relative;
    z-index: 1;
}

.decoration-circle {
    display: none; /* Old style removed */
}

/* ============================================================
   SECTION HEADERS (Small)
   ============================================================ */
.section-header-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-header-small h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.section-header-small h2 i {
    color: var(--card-color, var(--primary));
    font-size: 1.2rem;
}

.topic-count {
    background: #f8fafc;
    color: var(--card-color, var(--primary));
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 850;
    border: 1.5px solid #edf2f7;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .course-hero { padding: 3rem 1.5rem; border-radius: 30px; }
    .course-title { font-size: 2rem; }
    .section-header-small { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================================
   TELEGRAM BANNER (Homepage)
   ============================================================ */
.telegram-banner-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.telegram-banner-card {
    background: linear-gradient(135deg, #0088cc 0%, #24A1DE 100%);
    border-radius: 30px;
    padding: 2.5rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 20px 50px rgba(0, 136, 204, 0.25);
    color: white;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.telegram-banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}

.telegram-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.telegram-text h3 {
    font-size: 1.6rem;
    font-weight: 850;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.telegram-text p {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 600px;
}

.telegram-btn {
    background: white;
    color: #0088cc;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 850;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    white-space: nowrap;
    z-index: 1;
}

.telegram-banner-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 136, 204, 0.35);
}

.telegram-banner-card:hover .telegram-icon-wrapper {
    transform: rotate(15deg) scale(1.1);
    background: white;
    color: #0088cc;
}

.telegram-banner-card:hover .telegram-btn {
    transform: scale(1.05);
    background: #f8fafc;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    .telegram-banner-card { flex-direction: column; text-align: center; padding: 3rem 2rem; }
    .telegram-banner-content { flex-direction: column; gap: 1.5rem; }
    .telegram-text p { max-width: 100%; }
}
