:root {
    /* Classic Red & Gold Academic Palette */
    --clr-bg-main: #fdfbf7;         /* Very soft, warm off-white for backgrounds */
    --clr-brand: #000000;           /* Solid black for high-contrast headings and logo */
    --clr-text-muted: #4a4a4a;      /* Dark gray for highly readable secondary text */
    --clr-primary: #a01c33;         /* Deep crimson red for main buttons and active states */
    --clr-primary-hover: #801629;   /* Darker crimson for smooth hover effects */
    
    /* Golden Accent */
    --clr-accent-gold: #f0c87a;     /* Golden shade for secondary highlights or badges */
    
    /* Neutral/White */
    --clr-white: #ffffff;
    --clr-white-muted: rgba(255, 255, 255, 0.8);
}

/* Base Styles & Typography */
body {
    font-family: 'Hellvatic', sans-serif;
    background-color: var(--clr-bg-main); 
    margin: 0;
    padding: 0;
}

.logo {
    height: 65px;
    width: auto;
}

/* Navbar Styling */
.navbar-brand {
    color: var(--clr-brand) !important;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--clr-text-muted) !important;
    font-size: 16px;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: var(--clr-primary) !important;
}

/* Custom CSS shape for the "h." logo */
.brand-logo-icon {
    display: flex;
    flex-wrap: wrap;
    width: 14px;
    height: 14px;
    gap: 2px;
}

.brand-logo-icon .box {
    width: 6px;
    height: 6px;
    background-color: var(--clr-primary);
    border-radius: 1px;
}

.brand-logo-icon .box.hidden {
    background-color: transparent;
}

/* Primary Button Styling */
.btn-primary-custom {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    font-weight: 500;
    font-size: 17px;
    transition: background-color 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--clr-primary-hover);
    color: var(--clr-white);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 84vh;
    padding-top: 130px;
    padding-left: 40px;
    background-image: url('./images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--clr-white);
    font-size: 84px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    font-family: 'Antonio', sans-serif;
    text-transform: uppercase;
}

.hero-subtitle {
    color: var(--clr-white-muted);
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
}

/* Responsive Adjustments for Mobile and Tablet */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--clr-white);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        margin-top: 333px;
        position: absolute;
        width: calc(100% - 48px);
        z-index: 1000;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-section {
        background-size: cover; 
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-section {
        padding-top: 40px;
        padding-left: 20px;
    }
}


/* --- INSTITUTIONS SECTION - NEW CLEAN UI (px based) --- */

.institutions-section-new {
    padding: 40px 0px;
    background-color: var(--clr-bg-main); /* Match hero background, cards provide contrast */
}

.section-title {
    color: var(--clr-primary);
    font-size: 50px;
    font-weight: 500;
    letter-spacing: -1px;
    font-family: 'Antonio', sans-serif;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* 1. Main Card Container */
.institution-card-new {
    background-color: var(--clr-white);
    border: none;
    border-radius: 32px; /* Very soft corners */
    padding: 25px; /* High internal whitespace */
    box-shadow: 0 16px 48px rgba(69, 10, 10, 0.04); /* Soft, premium drop shadow */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden; /* For rounded image top */
}

.institution-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(69, 10, 10, 0.08); /* Shadow deepens smoothly */
}

/* 2. Header with Image and Badge */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    margin: -30px; /* Move the image edge to the card boundary */
    margin-bottom: 24px; /* Pull down content below image */
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(0deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.card-img-top {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover; /* Images will fill the space neatly */
}

.highlight-badge {
    background-color: var(--clr-accent-gold);
    color: var(--clr-brand); /* Black text on gold background looks great */
}

.highlight-badge-img {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    color: var(--clr-brand); /* Dark primary red text */
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px; /* Completely rounded pill badge */
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.highlight-badge-img i {
    color: var(--clr-accent-gold); /* Star/Trophy in primary red */
    font-size: 16px;
}

/* 3. Main Card Content (Title/Info) */
.card-title-new {
    color: var(--clr-brand);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.card-sub-info-new {
    color: var(--clr-text-muted);
    font-size: 14px;
    opacity: 0.8;
}

/* 4. Metadata (Stats Row) */
.card-metadata-new {
    display: flex;
    gap: 32px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    width: 110px; /* Fixed width for alignment */
}

.stat-icon-new {
    font-size: 16px;
    color: var(--clr-accent-gold);
    margin-bottom: 4px;
}

.stat-value-new {
    color: var(--clr-brand);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.stat-label-new {
    color: var(--clr-text-muted);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* 5. Pill Tags Row */
.card-tags-new {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill-new {
    background-color: rgba(220, 38, 38, 0.04); /* Extremely light red tinted background */
    color: var(--clr-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px; /* Clean rectangular badges with soft corners */
    border: none;
}

/* 6. Faculties Text block */
.faculties-text-new {
    color: var(--clr-text-muted);
    font-size: 12px;
    text-align: center;
    max-width: 90%;
    opacity: 0.8;
    margin-top: auto; /* Push above button */
    padding-top: 10px;
}

/* 7. Main Action Button */
.btn-primary-card {
    background-color: var(--clr-brand); /* Dark primary red for button */
    color: var(--clr-white);
    border: none;
    border-radius: 50px; /* Maximum roundness */
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block; /* Full width inside parent */
    text-decoration: none;
}

.btn-primary-card:hover {
    background-color: var(--clr-primary-hover);
    color: var(--clr-white);
    transform: scale(1.02); /* Subtle scale up */
}

/* RESPONSIVE ADJUSTMENTS (px-based) */
@media (max-width: 1200px) {
    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 991px) {
    .g-5 {
        gap: 3rem !important;
    }
}

@media (max-width: 576px) {
    .institutions-section-new {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .institution-card-new {
        padding: 24px;
        border-radius: 24px;
    }
    
    .card-image-wrapper {
        margin: -24px;
        margin-bottom: 20px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .card-title-new {
        font-size: 24px;
    }
    
    .stat-item-new {
        width: 100%;
        gap: 6px;
    }
    
    .stat-icon-new {
        font-size: 22px;
    }
    
    .card-tags-new {
        justify-content: center;
    }
    
    .tag-pill-new {
        font-size: 12px;
    }
    
    .btn-primary-card {
        padding: 14px 20px;
        font-size: 15px;
    }
}


/* --- GUIDANCE SECTION --- */
.guidance-section {
    padding: 40px 0px;
    /* Optional: A soft radial background behind all cards to match the vibe */
    background: radial-gradient(circle at center, #ffffff 0%, var(--clr-bg-main) 100%);
}

/* Base Card Styling */
.guidance-card {
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guidance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Individual Pastel Gradients (Matching the image) */
.g-card-1 { background: linear-gradient(135deg, #e7fbf0 0%, #f0fdf4 100%); } /* Soft Green */
.g-card-2 { background: linear-gradient(135deg, #e6f3ff 0%, #f0f7ff 100%); } /* Soft Blue */
.g-card-3 { background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%); } /* Soft Purple */
.g-card-4 { background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%); } /* Soft Lilac */
.g-card-5 { background: linear-gradient(135deg, #fff1e6 0%, #fff7ed 100%); } /* Soft Peach */
.g-card-6 { background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%); } /* Soft Mint */

/* Top Section (Icons) */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.icon-group {
    display: flex;
    gap: 12px;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.action-icon {
    color: rgba(0, 0, 0, 0.2);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-icon:hover {
    color: var(--clr-primary);
}

/* Typography */
.guidance-title {
    color: #111827;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.guidance-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* Bottom Tag */
.card-bottom {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.pill-tag {
    background-color: rgba(0, 0, 0, 0.35); /* Dark translucent pill */
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* --- PROCESS & ABOUT SECTION - MODERN GRID --- */
.process-modern-section {
    padding: 40px 0px;
    background-color: var(--clr-bg-main); /* Using the soft background */
}

/* Step Cards */
.step-card-modern {
    background-color: var(--clr-white);
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.step-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-top-color: var(--clr-primary);
}

/* Huge faint number in the background */
.step-watermark {
    position: absolute;
    bottom: -15px;
    right: 5px;
    font-size: 100px;
    font-weight: 800;
    color: var(--clr-brand);
    opacity: 0.03;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.step-card-modern:hover .step-watermark {
    opacity: 0.06;
}

/* Card Content */
.step-content-modern {
    position: relative;
    z-index: 1;
}

.step-dot {
    width: 12px;
    height: 12px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    margin-bottom: 20px;
}

.step-title-modern {
    color: var(--clr-brand);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step-desc-modern {
    color: var(--clr-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* --- WIDE APEX BANNER --- */
.apex-banner-modern {
    background-color: var(--clr-brand);
    border-radius: 28px;
    padding: 50px 60px;
    color: var(--clr-white);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15); /* Shadow color based on navy theme */
}

.apex-banner-text {
    max-width: 600px;
}

.apex-brand-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.apex-quote-modern {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--clr-white);
    letter-spacing: -0.5px;
}

.apex-desc-modern {
    color: var(--clr-white-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Stats in Banner */
.stat-block-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-num-modern {
    color: var(--clr-primary); /* Primary color pops against the dark background */
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
}

.stat-lbl-modern {
    color: var(--clr-white-muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .apex-banner-modern {
        padding: 40px;
        align-items: flex-start !important;
    }
}

@media (max-width: 576px) {
    .step-card-modern {
        padding: 24px;
    }
    
    .apex-banner-modern {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .apex-quote-modern {
        font-size: 26px;
    }
    
    .apex-banner-stats {
        flex-direction: column;
        gap: 24px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 24px;
        width: 100%;
    }
    
    .stat-block-modern {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}


/* --- DARK CONTACT & FOOTER SECTION --- */

.dark-contact-section {
    /* Isolated variables so it doesn't affect your light theme above */
    --dark-bg: #0e0e10;       /* Deepest black background */
    --dark-surface: #1a1a1c;  /* Slightly lighter card background */
    --dark-input: #232326;    /* Input field color */
    --dark-text: #ffffff;
    --dark-muted: #8e8e93;    /* Grey text */
    --dark-accent: #3b82f6;   /* The blue highlight from the image */
    
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding-top: 100px;
    padding-bottom: 40px;
}

/* --- LEFT SIDE: INFO --- */
.contact-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Antonio', sans-serif;
    text-transform: uppercase;
}

.contact-subtitle {
    color: var(--dark-muted);
    font-size: 16px;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 90%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.icon-box-dark {
    width: 52px;
    height: 52px;
    background-color: var(--dark-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-text);
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.contact-item:hover .icon-box-dark {
    background-color: var(--clr-primary-hover); /* Lights up blue on hover */
    cursor: pointer;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.contact-text .label {
    color: var(--dark-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-text .value {
    color: var(--dark-text);
    font-size: 15px;
    line-height: 1.5;
}

/* Socials */
.social-label {
    display: block;
    color: var(--dark-text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 44px;
    height: 44px;
    background-color: var(--dark-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-circle:hover {
    background-color: var(--clr-primary-hover);
    color: #fff;
    cursor: pointer;
}

/* --- RIGHT SIDE: FORM BOX --- */
.contact-form-dark {
    background-color: var(--dark-surface);
    border-radius: 24px;
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.spark-icon-decor {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 24px;
    color: var(--dark-muted);
    opacity: 0.3;
}

.form-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    font-family: 'Antonio', sans-serif;
    text-transform: uppercase;
}

.text-blue {
    color: var(--dark-accent); /* The blue from the design */
}

.form-group {
    margin-bottom: 16px;
}

.dark-input {
    width: 100%;
    background-color: var(--dark-input);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 18px 20px;
    color: var(--dark-text);
    font-size: 15px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.dark-input::placeholder {
    color: var(--dark-muted);
}

.dark-input:focus {
    outline: none;
    border-color: var(--dark-accent);
    background-color: #2a2a2e; /* Slightly lighter on focus */
}

/* Resizing disabled for text area to keep it clean */
textarea.dark-input {
    resize: none; 
}

.btn-dark-submit {
    width: 100%;
    background-color: #313135; /* Soft grey button like the image */
    color: var(--dark-text);
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-dark-submit:hover {
    background-color: var(--clr-primary-hover);
}

/* --- FOOTER BOTTOM --- */
.footer-dark-bottom {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Faint divider line */
}

.footer-top-url {
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 32px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--dark-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--dark-text);
}

.copyright-text {
    color: var(--dark-muted);
    font-size: 15px;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 991px) {
    .contact-form-dark {
        margin-top: 20px;
        padding: 40px;
    }
}

@media (max-width: 576px) {
    .contact-title {
        font-size: 32px;
    }
    
    .contact-form-dark {
        padding: 24px;
    }
    
    .form-title {
        font-size: 26px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}