/* Graduate & Professional Exams Page Specific Styles */

/* Hero Section */
.graduate-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/hero/graduate.webp') no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 100px 20px 60px;
    z-index: 1;
    position: relative;
}

.graduate-hero .hero-content {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.graduate-hero h2 {
    font-size: 2rem; 
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.graduate-hero p {
    font-size: 1rem; 
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Media Queries */
@media (min-width: 576px) {
    .graduate-hero {
        min-height: 80vh;
        padding: 120px 30px 80px;
    }
    
    .graduate-hero h2 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .graduate-hero p {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .graduate-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .graduate-hero h2 {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }
    
    .graduate-hero p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .graduate-hero h2 {
        font-size: 3rem;
    }
    
    .graduate-hero p {
        font-size: 1.2rem;
    }
    
    .graduate-hero .hero-content {
        padding: 0 20px;
    }
}

/* Background Utilities */
.bg-light {
    background-color: var(--color-bg-light);
}
.bg-primary {
    background: var(--gradient-primary);
}

/* Content Blocks */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}
.content-block p {
    margin-bottom: 1.5rem;
}
.highlight-text {
    font-weight: 600;
    color: var(--color-accent-2);
    font-style: italic;
}

/* Intro Section */
.intro-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-dark);
}

/* What Exams Measure Section */
.measurements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.measurement-item {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}
.measurement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}
.measurement-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.measurement-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}

/* Exam Categories */
.exam-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.exam-type-card {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}
.exam-type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}
.exam-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}
.exam-type-card:hover .exam-icon {
    background: var(--color-accent-2);
}
.exam-type-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}

/* Why Matter Section */
.why-matter .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.matter-content {
    padding-right: 20px;
}

.matter-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-dark);
}

.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.benefits-list i {
    color: var(--color-primary);
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

/* How We Help Section */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.support-card {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}
.support-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}
.support-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}
.support-card:hover .support-icon {
    background: var(--color-accent-2);
}
.support-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}

/* Choosing Exam Section */
.exam-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}
.recommendation {
    background: rgba(7, 200, 249, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}
.recommendation h4 {
    color: var(--color-accent-2);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    color: var(--color-text-light);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: var(--color-text-light);
}
.cta-section h2 {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.cta-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}
.cta-section strong {
    color: var(--color-text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .graduate-hero h2 {
        font-size: 2.5rem;
    }
    .graduate-hero p {
        font-size: 1.1rem;
    }
    .exam-types-grid,
    .measurements-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    .why-matter .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .matter-content {
        padding-right: 0;
    }
    
    .matter-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .graduate-hero {
        height: 60vh;
        min-height: 400px;
    }
    .graduate-hero h2 {
        font-size: 2rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .exam-type-card,
    .measurement-item,
    .support-card {
        padding: 2rem 1.5rem;
    }
    .exam-recommendations {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Mobile-Friendly Tweaks for .graduate-hero
   ============================== */
@media (max-width: 480px) {
    .graduate-hero {
        padding: calc(40px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
        min-height: 48vh; 
        height: auto;   
        background-position: center top; 
        background-attachment: scroll; 
    }

    .graduate-hero .hero-content {
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .graduate-hero h2 {
        font-size: 1.6rem;   
        line-height: 1.15;
        margin-bottom: 1rem;
        word-break: break-word;
    }

    .graduate-hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    /* Make CTA wrap if it's too long and keep it tappable */
    .graduate-hero .btn {
        font-size: 0.95rem;
        padding: 0.6rem 0.85rem;
        white-space: normal;
        display: inline-block;
    }
}

@media (max-width: 360px) {
    .graduate-hero {
        padding: calc(32px + env(safe-area-inset-top, 0px)) 10px calc(20px + env(safe-area-inset-bottom, 0px));
        min-height: 44vh;
    }

    .graduate-hero h2 {
        font-size: 1.45rem;
    }

    .graduate-hero p {
        font-size: 0.9rem;
    }

    .graduate-hero .hero-content {
        padding: 0 8px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .graduate-hero {
        padding: calc(56px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
        min-height: 56vh;
        background-position: center center;
    }

    .graduate-hero h2 {
        font-size: 1.95rem;
    }

    .graduate-hero p {
        font-size: 1rem;
    }

    .graduate-hero .hero-content {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .graduate-hero {
        padding-top: calc(var(--header-height, 56px) + 12px) !important;
    }

    .graduate-hero,
    .graduate-hero .hero-content {
        scroll-margin-top: calc(var(--header-height, 56px) + 12px);
    }
}

/* ==============================
   End of mobile-friendly tweaks for .graduate-hero
   ============================== */