:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --accent: #F59E0B;
    --text: #374151;
    --text-light: #6B7280;
    --bg: #FFFFFF;
    --bg-light: #F9FAFB;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Navbar */
.sg-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1030 !important;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .sg-navbar {
        background: rgba(255,255,255,0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}
.sg-navbar.scrolled { box-shadow: var(--shadow); }
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text) !important;
}
.navbar-brand strong { color: var(--primary); }
.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary) !important; }

/* Hero */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 50%, #FFFBEB 100%);
    overflow: hidden;
    padding-top: 80px;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
@supports (-webkit-touch-callout: none) {
    .hero-section { height: -webkit-fill-available; }
}
.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    max-width: 100vw;
    max-height: 100vh;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--accent); bottom: -50px; left: -150px; }
.shape-3 { width: 200px; height: 200px; background: var(--primary); top: 50%; left: 30%; }

.hero-badge {
    display: inline-block;
    background: rgba(16,185,129,0.1);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.course-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.course-bubble {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
    cursor: default;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.course-bubble:nth-child(1) { background: #10B981; }
.course-bubble:nth-child(2) { background: #6366F1; }
.course-bubble:nth-child(3) { background: #F59E0B; }
.course-bubble:nth-child(4) { background: #EF4444; }
.course-bubble:nth-child(5) { background: #8B5CF6; }
.course-bubble:nth-child(6) { background: #EC4899; }
.course-bubble:nth-child(7) { background: #14B8A6; }
.course-bubble:nth-child(8) { background: #0EA5E9; }
.course-bubble:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.hero-title {
    font-size: 2.5rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
}
.hero-illustration {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}
.hero-main-graphic {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}
.hero-card i { color: var(--primary); font-size: 1.2rem; }
.hero-card-1 { top: 20%; left: 0; animation-delay: 0s; }
.hero-card-2 { top: 10%; right: 0; animation-delay: 1s; }
.hero-card-3 { bottom: 20%; right: 10%; animation-delay: 2s; }

/* Sections */
.section-padding { padding: 5rem 0; }

/* Degree Cards (inside hero) */
.degree-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: var(--radius);
    text-decoration: none !important;
    color: #fff !important;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.degree-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
    pointer-events: none;
}
.degree-card:hover {
    transform: translateY(-6px);
    color: #fff !important;
}
.degree-card:hover::before {
    box-shadow: 0 16px 32px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.16);
}
.degree-card h6 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem;
    color: #fff;
}
.degree-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.degree-card__tag {
    font-size: 0.78rem;
    opacity: 0.85;
    font-weight: 500;
}
.degree-card--bachelor { background: linear-gradient(135deg, #10B981, #059669) !important; }
.degree-card--masters  { background: linear-gradient(135deg, #6366F1, #4F46E5) !important; }
.degree-card--vocational { background: linear-gradient(135deg, #F59E0B, #D97706) !important; }
.degree-card--phd { background: linear-gradient(135deg, #EF4444, #DC2626) !important; }
.degree-card--bachelor:hover { background: linear-gradient(135deg, #059669, #047857) !important; }
.degree-card--masters:hover  { background: linear-gradient(135deg, #4F46E5, #4338CA) !important; }
.degree-card--vocational:hover { background: linear-gradient(135deg, #D97706, #B45309) !important; }
.degree-card--phd:hover { background: linear-gradient(135deg, #DC2626, #B91C1C) !important; }
.bg-olive-green { background: var(--primary); }
.bg-olive-green .section-title,
.bg-olive-green .section-subtitle {
    color: white;
}
.bg-olive-green .section-badge {
    background: rgba(255,255,255,0.16);
    color: white;
}
.section-badge {
    display: inline-block;
    background: rgba(16,185,129,0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 2rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.section-subtitle { color: var(--text-light); font-size: 1.05rem; }

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(16,185,129,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}
.service-card h4 { font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin: 0; }
.service-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}
.service-card:hover .service-hover-line { width: 100%; }

/* Course Cards */
.course-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}
.course-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.course-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}
.course-card h5 { font-weight: 700; }
.course-card p { color: var(--text-light); font-size: 0.9rem; }

/* University Cards */
.uni-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}
.uni-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.uni-logo {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}
.uni-logo img { width: 100%; height: 100%; object-fit: cover; }
.uni-logo i { font-size: 1.5rem; color: var(--primary); }
.uni-card h6 { font-weight: 700; margin-bottom: 0.5rem; }
.uni-meta { font-size: 0.85rem; color: var(--text-light); }
.uni-badge {
    display: inline-block;
    background: rgba(245,158,11,0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(16,185,129,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--primary);
    font-size: 1.2rem;
}
.stat-card h3 { font-weight: 800; color: var(--primary); font-size: 2rem; margin: 0; }
.stat-card p { color: var(--text-light); margin: 0; font-size: 0.9rem; }

.about-block { margin-bottom: 1.5rem; }
.about-block h5 { font-weight: 700; }
.why-list { list-style: none; padding: 0; }
.why-list li { padding: 0.3rem 0; }
.why-list li::before { content: '✓ '; color: var(--primary); font-weight: bold; }

/* Testimonials */
.testimonial-card {
    max-width: 700px;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    margin: 1rem 0 1.5rem;
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Partner */
.partner-benefits { list-style: none; padding: 0; }
.partner-benefits li { padding: 0.5rem 0; }
.partner-form-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Footer */
.footer {
    background: #1F2937;
    color: #D1D5DB;
    padding: 3rem 0 1.5rem;
}
.footer h5, .footer h6 { color: white; font-weight: 700; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: #D1D5DB; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { padding: 0.3rem 0; }
.social-links a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.5rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); }

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
    transition: var(--transition);
}
.whatsapp-float-btn:hover,
.whatsapp-float-btn:focus {
    background: #128C7E;
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}
.whatsapp-float-btn i { line-height: 1; }

/* Counselling Modal */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.step-indicator .step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}
.step-indicator .step.active { background: var(--primary); color: white; }
.step-indicator .step.completed { background: var(--primary-dark); color: white; }
.step-line { width: 40px; height: 2px; background: var(--border); }
.letter-spacing { letter-spacing: 8px; }

/* Pagination */
.pagination .page-link { color: var(--primary); border-radius: 8px; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

@media (max-width: 768px) {
    .sg-navbar .navbar-collapse {
        background: #fff;
        border-radius: 0 0 12px 12px;
        padding: 0.5rem 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    .sg-navbar .navbar-nav { text-align: center; }
    .sg-navbar .d-flex {
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
        flex-wrap: wrap;
    }
    .hero-section { min-height: 100vh; height: auto; padding-top: 70px; }
    @supports (-webkit-touch-callout: none) {
        .hero-section { min-height: -webkit-fill-available; }
    }
    .hero-illustration { height: 200px; margin-top: 1rem; }
    .hero-main-graphic { width: 110px; height: 110px; font-size: 2.5rem; }
    .hero-card { font-size: 0.7rem; padding: 0.4rem 0.75rem; }
    .hero-card-1 { top: 15%; }
    .hero-card-2 { top: 5%; right: 0; }
    .hero-card-3 { bottom: 15%; right: 5%; }
    .course-bubbles { gap: 0.3rem; }
    .course-bubble { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
    .hero-title { font-size: 1.6rem; word-break: break-word; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-padding { padding: 2.5rem 0; }
    .degree-card { padding: 1rem 0.5rem; }
    .degree-card h6 { font-size: 0.8rem; word-break: break-word; }
    .degree-card__icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .degree-card__tag { font-size: 0.65rem; }
    .degree-card::before { box-shadow: 0 4px 12px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.08); }
    .stats-grid { grid-template-columns: 1fr; }
    .service-card { padding: 1.5rem; }
    .course-card { padding: 1.25rem; }
    .section-title { font-size: 1.5rem; }
    .footer { padding: 2rem 0 1rem; }
    .whatsapp-float-btn {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    /* Mobile width fixes */
    section { overflow-x: hidden; }
    .container { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
    img { max-width: 100%; height: auto; }
}
