/* ============================================
   Nile Bridge - Modern Sans-Serif Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
  --color-primary: #0F172A;       /* Deep Navy Text */
  --color-brand: #2563EB;         /* Vibrant Blue */
  --color-brand-hover: #1D4ED8;
  --color-accent: #F59E0B;        /* Warm Gold/Orange */
  --color-text: #475569;          /* Slate Gray for Body */
  --color-bg: #FFFFFF;
  --color-surface: #F8FAFC;       /* Very Light Gray/Blue */
  --color-border: #E2E8F0;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(37, 99, 235, 0.1);
  --shadow-hover: 0 20px 40px -5px rgba(37, 99, 235, 0.15);
  
  --transition: all 0.3s ease;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--radius-md); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* Layout Elements */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--color-text); }
.bg-surface { background: var(--color-surface); }

/* Buttons & Badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; border-radius: var(--radius-pill); transition: var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--color-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-brand-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-primary); }
.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); background: var(--color-surface); }
.badge { display: inline-block; padding: 6px 16px; background: rgba(37, 99, 235, 0.1); color: var(--color-brand); border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }

/* 1. Header */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); background: var(--color-bg); border-bottom: 1px solid transparent; }
.header.scrolled { padding: 15px 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--color-brand); }

/* 2. Hero Section */
.hero { position: relative; padding: 160px 0 100px; background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%); overflow: hidden; text-align: center; }
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 40px; color: var(--color-text); }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* 3. Upcoming Intakes */
.intakes-table { width: 100%; border-collapse: collapse; background: var(--color-bg); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.intakes-table th { background: var(--color-surface); color: var(--color-primary); padding: 20px; text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; }
.intakes-table td { padding: 20px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.intakes-table tr:last-child td { border-bottom: none; }
.intakes-table tr:hover { background: #F8FAFC; }
.status-pill { padding: 6px 12px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600; }
.status-green { background: #DCFCE7; color: #166534; }
.status-orange { background: #FEF3C7; color: #9A3412; }

/* 4, 5 & 6. Cards Grid (Courses, Opportunities, Why Us) */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.modern-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 32px; transition: var(--transition); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.modern-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--color-brand); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(37, 99, 235, 0.08); color: var(--color-brand); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.modern-card h3 { margin-bottom: 12px; }
.modern-card p { flex-grow: 1; margin-bottom: 24px; font-size: 0.95rem; }
.price-tag { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-primary); margin-bottom: 16px; }

/* 7. Berlin Rectangular Banner */
.berlin-banner { max-width: 1200px; margin: 0 auto; border-radius: var(--radius-lg); padding: 100px 40px; text-align: center; position: relative; overflow: hidden; background: url('https://images.unsplash.com/photo-1599946347371-68eb71b16afc?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; box-shadow: var(--shadow-md); }
.berlin-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6)); }
.berlin-content { position: relative; z-index: 2; color: #fff; max-width: 700px; margin: 0 auto; }
.berlin-content h2 { color: #fff; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.berlin-content p { font-size: 1.2rem; color: rgba(255,255,255,0.9); }

/* 8. FAQ Accordion */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--color-brand); }
.faq-q { width: 100%; text-align: left; padding: 24px; background: transparent; border: none; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--color-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q svg { color: var(--color-brand); transition: var(--transition); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 24px; color: var(--color-text); font-size: 0.95rem; }
.faq-item.active { box-shadow: var(--shadow-sm); border-color: var(--color-brand); }
.faq-item.active .faq-q svg { transform: rotate(180deg); }
.faq-item.active .faq-a { max-height: 400px; }

/* 9. CTA Section */
.cta-section { background: var(--color-surface); text-align: center; }
.cta-box { background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); padding: 80px 40px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.cta-box h2 { color: #fff; margin-bottom: 16px; }
.cta-box p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto 32px; }

/* 10. Footer */
.footer { background: #FFFFFF; border-top: 1px solid var(--color-border); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { color: var(--color-text); margin-top: 16px; font-size: 0.95rem; }
.footer h4 { color: var(--color-primary); margin-bottom: 24px; font-size: 1.1rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--color-text); font-size: 0.95rem; transition: var(--transition); }
.footer-links a:hover { color: var(--color-brand); }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--color-text); }
.social-icons { display: flex; gap: 16px; }
.social-icons a { color: var(--color-text); }
.social-icons a:hover { color: var(--color-brand); }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 140px 0 80px; }
  .berlin-banner { border-radius: 0; padding: 80px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}



/* ============================================
   COURSES PAGE SPECIFIC STYLES
   ============================================ */

/* Page Header (Hero for internal pages) */
.page-hero { padding: 160px 0 80px; background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%); text-align: center; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { max-width: 700px; margin: 0 auto; font-size: 1.2rem; }

/* Level Tabs */
.level-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.tab-btn { padding: 12px 32px; background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 600; color: var(--color-text); cursor: pointer; transition: var(--transition); }
.tab-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
.tab-btn.active { background: var(--color-brand); color: #fff; border-color: var(--color-brand); box-shadow: var(--shadow-md); }

/* Course Detail Panel */
.course-panel { display: none; animation: fadeIn 0.5s ease; }
.course-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Course Detail Grid */
.course-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.course-main-box { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 40px; }
.course-side-box { background: var(--color-primary); color: #fff; border-radius: var(--radius-md); padding: 32px; position: sticky; top: 100px; box-shadow: var(--shadow-md); }
.course-side-box h3 { color: #fff; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* Side Box Price Rows */
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.price-row:last-of-type { border-bottom: none; }
.price-row span:first-child { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.price-row span:last-child { color: #fff; font-weight: 600; font-family: var(--font-heading); }

/* Learning Outcomes Checklist */
.outcomes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.outcome-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--color-text); }
.outcome-item svg { color: #10B981; flex-shrink: 0; margin-top: 4px; }

/* Content Sections inside Panel */
.course-section-block { margin-bottom: 32px; }
.course-section-block h4 { font-size: 1.1rem; color: var(--color-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.course-section-block h4 svg { color: var(--color-brand); }

/* Payment Methods Row */
.payment-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 24px; }
.payment-card { background: var(--color-surface); border: 1px solid var(--color-border); padding: 20px; border-radius: var(--radius-sm); text-align: center; }
.payment-card .pay-icon { width: 40px; height: 40px; background: var(--color-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--color-brand); }
.payment-card strong { color: var(--color-primary); font-family: var(--font-heading); display: block; margin-bottom: 4px; }
.payment-card small { font-size: 0.8rem; color: var(--color-text); }

/* Schedule Timeline */
.schedule-list { margin-top: 20px; }
.schedule-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--color-surface); border-radius: var(--radius-sm); margin-bottom: 10px; }
.schedule-item .time-badge { background: var(--color-brand); color: #fff; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; min-width: 180px; text-align: center; font-family: var(--font-heading); }
.schedule-item strong { color: var(--color-primary); }

/* Comparison Table */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); margin-top: 30px; }
.compare-table th { background: var(--color-primary); color: #fff; padding: 16px; text-align: left; font-family: var(--font-heading); }
.compare-table td { padding: 16px; border-bottom: 1px solid var(--color-border); }
.compare-table td:first-child { font-weight: 600; color: var(--color-primary); background: var(--color-surface); }
.compare-table tr:last-child td { border-bottom: none; }

/* Responsive */
@media (max-width: 900px) {
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-side-box { position: static; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .course-main-box { padding: 24px; }
}

