/* BAST Pakistan - Government Educational Board Premium CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --color-bg: #F1F5F9;
    --color-surface: #FFFFFF;
    --color-border: #CBD5E1;
    
    /* Pakistan Government Branding Green & Gold */
    --color-navy: #064E3B;         /* Dark Pakistan Green */
    --color-navy-light: #065F46;   /* Medium Green */
    --color-indigo: #059669;       /* Accent Green */
    --color-indigo-dark: #047857;  /* Hover Green */
    
    --color-gold: #B45309;         /* Darker Gold Accent */
    --color-gold-light: #F59E0B;   /* Bright Gold Accent */
    
    --color-text-main: #334155;
    --color-text-muted: #64748B;
    
    --radius-lg: 6px;              /* Technical Precision corners */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(6, 78, 59, 0.06), 0 2px 4px -2px rgba(6, 78, 59, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(6, 78, 59, 0.1), 0 4px 6px -4px rgba(6, 78, 59, 0.1);
    
    --transition-base: all 0.2s ease-in-out;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
}

a {
    color: var(--color-navy-light);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-gold);
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--color-navy);
    color: #ECFDF5;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--color-gold-light);
    font-weight: 500;
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar a {
    color: #ECFDF5;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--color-gold-light);
}

/* Header Brand Section */
.header-brand {
    background-color: var(--color-surface);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.brand-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-logo-img {
    height: 70px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--color-navy);
}

.brand-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-right {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-bg);
    color: var(--color-navy);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
}

.social-icon-link:hover {
    background-color: var(--color-navy);
    color: white;
    transform: translateY(-2px);
    border-color: var(--color-navy);
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.gov-flag {
    height: 50px;
    border: 1px solid #E2E8F0;
}

/* Main Navigation Navbar */
.navbar {
    background-color: var(--color-navy-light);
    height: 55px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--color-gold-light);
}

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

.navbar-mobile-brand {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    width: 100%;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #F0FDF4;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 1rem 1.15rem;
    display: block;
    border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--color-navy);
    color: var(--color-gold-light);
    border-bottom-color: var(--color-gold-light);
}

/* Navbar Dropdown styling */
.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-surface);
    min-width: 220px;
    list-style: none;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-gold-light);
    z-index: 102;
}

.dropdown-menu li a {
    color: var(--color-navy);
    padding: 0.75rem 1.25rem;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-bg);
}

.dropdown-menu li a:hover {
    background-color: var(--color-bg);
    color: var(--color-gold);
    padding-left: 1.5rem;
}

.nav-btn {
    background-color: var(--color-gold-light);
    color: var(--color-navy) !important;
    font-weight: 700 !important;
    border-radius: 4px;
    margin-left: auto;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    background-color: var(--color-surface);
    color: var(--color-navy) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #F0FDF4;
    cursor: pointer;
    margin-left: auto;
}

/* Marquee Ticker Banner */
.marquee-ticker {
    background-color: #FEF3C7;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: var(--color-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 3px;
    margin-right: 1rem;
    display: inline-block;
    flex-shrink: 0;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

/* Official Hero Carousel Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 520px; /* Fixed height to prevent layout shifts */
    overflow: hidden;
    background-color: var(--color-navy);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--color-surface);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.45) 0%, rgba(6, 78, 59, 0.85) 100%);
    z-index: 2;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 3;
}

.hero-carousel .hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-carousel .hero-subtitle {
    color: var(--color-gold-light);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.hero-carousel .hero-title {
    font-size: 2.8rem;
    line-height: 1.25;
    color: var(--color-surface);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s;
}

.hero-carousel .hero-desc {
    font-size: 1.1rem;
    color: #ECFDF5;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.7s, transform 0.6s ease-out 0.7s;
}

.hero-carousel .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.9s, transform 0.6s ease-out 0.9s;
}

/* Activate CSS animations for active slide text overlay */
.carousel-slide.active .hero-subtitle,
.carousel-slide.active .hero-title,
.carousel-slide.active .hero-desc,
.carousel-slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Control Arrow Navigation Buttons */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(6, 78, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-surface);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.carousel-control:hover {
    background-color: var(--color-navy);
    border-color: var(--color-gold-light);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Bottom Slide Indicator Bullets */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(6, 78, 59, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

.carousel-indicators .indicator.active {
    background-color: var(--color-gold-light);
    transform: scale(1.25);
    border-color: var(--color-navy);
}

/* Carousel responsiveness overrides inside main design sheet */
@media (max-width: 992px) {
    .hero-carousel {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 460px;
    }
    
    .hero-carousel .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }
    
    .hero-carousel .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.5;
    }
    
    .hero-carousel .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .hero-carousel .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
    }
    
    .hero-carousel .hero-buttons .btn {
        width: 85%;
        max-width: 320px;
        padding: 0.75rem 1.5rem;
    }
    
    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 440px;
    }
    
    .hero-carousel .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-carousel .hero-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-control {
        display: none; /* Hide arrows to maintain clean mobile screen space */
    }
}

/* Subpages Hero Banner (Light Blue/Slate Theme) */
.hero-subpage {
    position: relative;
    padding: 3.5rem 0;
    background-color: #F0F4F8; /* Soft ice-blue/slate background */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.07) 0%, transparent 45%), /* Soft blue glow */
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 45%), /* Soft gold glow matching BAST logo */
        radial-gradient(rgba(15, 23, 42, 0.05) 1.5px, transparent 1.5px), /* Subdued slate dots */
        radial-gradient(rgba(15, 23, 42, 0.025) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    background-position: 0 0, 0 0, 0 0, 15px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.hero-subpage .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.hero-subpage .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #0F172A; /* Deep slate */
    text-shadow: none;
}
.hero-subpage .hero-desc {
    font-size: 1.1rem;
    color: #475569; /* Slate-600 */
    max-width: 800px;
    margin: 0 auto;
    text-shadow: none;
    font-weight: 500;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-gold-light);
    color: var(--color-navy);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--color-surface);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-surface);
    color: var(--color-surface);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-surface);
}

.btn-dark {
    background-color: var(--color-navy);
    color: var(--color-surface);
    border-color: var(--color-navy-light);
}

.btn-dark:hover {
    background-color: var(--color-navy-light);
    transform: translateY(-1px);
}

/* Board Services Grid (Government style) */
.services-bar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.services-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--color-bg);
    border-left: 4px solid var(--color-navy);
    border-radius: 4px;
    transition: var(--transition-base);
}

.service-bar-item:hover {
    transform: translateY(-2px);
    background-color: #ECFDF5;
    border-left-color: var(--color-gold-light);
}

.service-bar-icon {
    font-size: 1.75rem;
    color: var(--color-navy);
}

.service-bar-text h4 {
    font-size: 0.9rem;
    color: var(--color-navy);
    margin-bottom: 0.15rem;
}

.service-bar-text p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Sections Configuration */
.section-padding {
    padding: 4.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    color: var(--color-navy);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-navy), var(--color-gold-light));
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-navy-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: var(--transition-base);
}

.card:hover::after {
    background-color: var(--color-gold-light);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 78, 59, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-navy);
    display: inline-block;
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Two Column Layout Block (Announcements & Chairman Message) */
.home-row-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Board Official Notifications / Circulars Panel */
.notification-board {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.notification-board-header {
    background-color: var(--color-navy);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-board-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.notification-list {
    list-style: none;
}

.notification-item {
    border-bottom: 1px solid var(--color-bg);
    padding: 1.15rem 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition-base);
}

.notification-item:hover {
    background-color: #F8FAFC;
}

.notification-date {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: var(--color-navy-light);
    border-radius: 4px;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.notification-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.notification-content h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Official Document details styling */
.prose {
    max-width: 850px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-border);
}

.prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.prose p {
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
    font-size: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.prose li {
    margin-bottom: 0.6rem;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-navy);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-navy);
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23064E3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

.input-error {
    border-color: #EF4444;
}

.error-text {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Certificate Result Panel */
.verification-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.cert-card {
    background-color: var(--color-surface);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    border-top: 8px solid var(--color-navy);
}

.cert-header {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-surface);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-gold-light);
}

.cert-header h3 {
    color: var(--color-surface);
    font-size: 1.3rem;
}

.status-badge {
    background: linear-gradient(135deg, var(--color-gold-light), #FBBF24);
    color: var(--color-navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cert-body {
    padding: 2rem;
}

.student-info-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.student-photo-wrapper {
    width: 130px;
    height: 160px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.15rem;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1.05rem;
}

.cert-academic-summary {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.academic-scores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background-color: var(--color-bg);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

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

.score-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-navy);
    font-family: var(--font-heading);
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}

.cert-footer {
    background-color: var(--color-bg);
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #ECFDF5;
    border: 1px solid #10B981;
    color: #065F46;
}

.alert-warning {
    background-color: #FFFBEB;
    border: 1px solid #F59E0B;
    color: #92400E;
}

.alert-error {
    background-color: #FEF2F2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

/* Contact Grid & Map */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.contact-method-list {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-top: 0.2rem;
}

.contact-text h5 {
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 0.15rem;
}

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

.map-container {
    height: 280px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-form-panel {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-navy);
}

/* Trades & Courses Dynamic View */
.trade-section {
    margin-bottom: 4rem;
}

.trade-header {
    border-bottom: 2px solid var(--color-navy-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.75rem;
}

.trade-header h3 {
    font-size: 1.6rem;
    color: var(--color-navy);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.75rem;
}

.course-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-navy);
}

.course-photo {
    height: 180px;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-code {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.course-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--color-navy);
}

.course-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-grow: 1;
    line-height: 1.5;
}

/* Double-Border Government Footer */
.footer {
    background-color: var(--color-navy);
    color: #D1FAE5;
    padding: 4rem 0 0 0;
    margin-top: auto;
    border-top: 4px solid var(--color-gold-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    color: var(--color-surface);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold-light);
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-socials .social-icon-link {
    background-color: rgba(255, 255, 255, 0.08);
    color: #D1FAE5;
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-socials .social-icon-link:hover {
    background-color: var(--color-gold-light);
    color: var(--color-navy);
    border-color: var(--color-gold-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #D1FAE5;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--color-gold-light);
    padding-left: 3px;
}

.footer-contact-info {
    font-size: 0.85rem;
}

.footer-contact-info p {
    margin-bottom: 0.75rem;
}

.footer-contact-info a {
    color: #D1FAE5;
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact-info a:hover {
    color: var(--color-gold-light);
}

.footer-bottom {
    background-color: #042F1A; /* Even darker green */
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #A7F3D0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .services-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (min-width: 1081px) and (max-width: 1250px) {
    .nav-link {
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
    }
    .nav-btn {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.75rem;
    }
}

@media (max-width: 1080px) {
    /* Hide top utility bar on mobile to clear screen space */
    .top-bar {
        display: none;
    }

    /* Scaling header brand section */
    .header-brand {
        padding: 1rem 0;
    }
    
    .brand-logo-img {
        display: none;
    }
    
    .brand-text h1 {
        font-size: 1.35rem;
        line-height: 1.3;
    }
    
    .brand-text p {
        font-size: 0.75rem;
    }
    
    /* Navbar and Toggle styling */
    .navbar {
        height: 50px;
        padding: 0;
    }
    
    .navbar-container {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .navbar-mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #F0FDF4;
        font-weight: 700;
        font-size: 0.85rem;
        font-family: var(--font-heading);
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-decoration: none;
    }
    
    .nav-mobile-logo {
        height: 32px;
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
        background-color: var(--color-gold-light);
        padding: 2px;
        border-radius: 50%;
    }
    
    .menu-toggle {
        display: block;
        padding: 0.5rem 1rem;
        margin-left: auto;
        color: #F0FDF4;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .toggle-text {
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        font-family: var(--font-heading);
        margin-right: 0.4rem;
        vertical-align: middle;
        letter-spacing: 0.5px;
    }
    
    /* Navigation drawer overlay */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 50px; /* Aligns with navbar height */
        left: 0;
        background-color: var(--color-navy-light);
        border-top: 3px solid var(--color-gold-light);
        padding: 0.75rem 0;
        gap: 0;
        z-index: 101;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        border-bottom: 3px solid var(--color-gold-light);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    /* Reset layout wrapper margins for verification button */
    .nav-menu .nav-item[style*="margin-left: auto"],
    .nav-menu .nav-item {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.85rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-link:hover, .nav-link.active {
        background-color: var(--color-navy);
    }
    
    /* Collapsible dropdown accordion */
    .dropdown-menu {
        position: static;
        display: none; /* Collapsed by default on mobile */
        background-color: rgba(0, 0, 0, 0.15);
        border: none;
        box-shadow: none;
        margin-left: 0;
        border-top: none;
        padding: 0.25rem 0;
    }

    .nav-item.active-dropdown .dropdown-menu {
        display: block; /* Expands when active-dropdown class toggled by JS */
    }
    
    .dropdown-menu li a {
        color: #ECFDF5;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
        padding: 0.75rem 2rem;
        font-size: 0.8rem;
    }

    .dropdown-menu li a:hover {
        padding-left: 2.25rem;
    }
    
    .nav-btn {
        width: calc(100% - 3rem);
        margin: 0.75rem 1.5rem;
        text-align: center;
        display: block;
    }
    
    /* Page Layout structures */
    .services-bar-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .home-row-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .student-info-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.5rem;
    }
    
    .student-details {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .academic-scores {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Footer responsiveness */
    .footer {
        padding: 2.5rem 0 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 840px) {
    .header-brand-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .brand-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .header-brand-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .brand-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand-right {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .brand-logo-img {
        height: 55px;
    }
    
    .brand-text h1 {
        font-size: 1.15rem;
    }
    
    .brand-text p {
        font-size: 0.7rem;
        letter-spacing: 0px;
    }
}

/* Floating WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999; /* Ensure it stays above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E; /* WhatsApp Teal-green */
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    animation-play-state: paused; /* Pause pulsing on hover */
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Pulsing Shadow Animation for Attention */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

/* Mobile Responsiveness for WhatsApp Float */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Recognized Trades Categories Grid */
.trades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trade-card {
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--color-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trade-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold-light);
}

.trade-card-title {
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.trade-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .trades-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    .trade-card {
        padding: 1.25rem;
    }
}

/* Institutional Card Links styling */
.card-link {
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-navy-light);
    transition: var(--transition-base);
}

.card-link:hover {
    color: var(--color-gold);
    transform: translateX(4px);
}

/* Custom Study Modes Section and Row-based List Styles */
.study-modes-section {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.study-mode-list {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
}

.study-mode-row {
    display: flex;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.study-mode-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.study-mode-row:first-child {
    padding-top: 1rem;
}

.study-mode-badge-column {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.study-mode-number-badge {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(6, 78, 59, 0.1);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.study-mode-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(6, 78, 59, 0.05);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.study-mode-row:hover .study-mode-number-badge {
    color: var(--color-gold-light);
}

.study-mode-row:hover .study-mode-icon-circle {
    background-color: var(--color-navy);
    color: #ffffff;
    transform: scale(1.05);
}

.study-mode-content-column {
    flex-grow: 1;
}

.study-mode-title-text {
    font-size: 1.4rem;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.study-mode-desc-text {
    color: var(--color-text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.study-mode-bullets-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.study-mode-bullets-list li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 1.25rem;
}

.study-mode-bullets-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 700;
}

.study-mode-button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background-color: var(--color-navy);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.study-mode-button-link:hover {
    background-color: var(--color-gold-light);
    color: var(--color-navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive styling for study modes row layout */
@media (max-width: 768px) {
    .study-mode-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    .study-mode-badge-column {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        justify-content: flex-start;
    }
    .study-mode-number-badge {
        margin-bottom: 0;
        font-size: 2rem;
    }
    .study-mode-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .study-mode-bullets-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

