/* College Admission Exams Page Specific Styles */

/* Hero Section */
.college-hero {
    height: 70vh;
    width: 100%;
    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/students.webp') no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    position: relative;
    padding-top: 80px;
    position: relative;
}
.college-hero .hero-content {
    max-width: 800px;
    padding: 0 20px;
}
.college-hero h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.college-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* 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);
}

/* 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);
}
.exam-benefit {
    background: rgba(7, 200, 249, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--color-accent-1);
}

/* Placement Exams */
.placement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.placement-card {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-primary);
}
.placement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}
.placement-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}
.placement-benefit {
    background: rgba(7, 200, 249, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--color-accent-1);
}

/* Credit Exams */
.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.credit-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);
}
.credit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}
.credit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-secondary);
    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;
}
.credit-card:hover .credit-icon {
    background: var(--color-accent-2);
}
.credit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}
.credit-benefit {
    background: rgba(7, 200, 249, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--color-accent-1);
}

/* Advanced Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.program-card {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-secondary);
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}
.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}
.program-benefit {
    background: rgba(7, 200, 249, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--color-accent-1);
}

/* Why Matter Section */
.matter-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-dark);
}
.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
}
.benefits-list li {
    margin-bottom: 0.8rem;
    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 */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.help-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}
.help-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}
.help-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-primary);
    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;
}
.help-card:hover .help-icon {
    background: var(--color-accent-2);
}
.help-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}

/* Choosing Exam */
.exam-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 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;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-bg);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-tertiary);
    cursor: pointer;
    text-align: left;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
    padding: 0 1.5rem 1.2rem 1.5rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    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;
}

/* Responsive Design */
@media (max-width: 992px) {
    .college-hero h2 {
        font-size: 2.5rem;
    }
    .college-hero p {
        font-size: 1.1rem;
    }
    .exam-types-grid,
    .placement-grid,
    .credit-grid,
    .programs-grid,
    .help-grid,
    .exam-recommendations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .college-hero {
        height: 60vh;
        min-height: 400px;
    }
    .college-hero h2 {
        font-size: 2rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .exam-type-card,
    .placement-card,
    .credit-card,
    .program-card,
    .help-card {
        padding: 2rem 1.5rem;
    }
}
/* ==============================
    Mobile-Friendly Tweaks for .college-hero
   ============================== */

@media (max-width: 480px) {
    .college-hero {
        padding-top: calc(var(--header-height, 80px) + 12px) !important;
        min-height: 48vh;       
        height: auto;        
        background-position: center top; 
        background-attachment: scroll;  
        padding-left: 12px;
        padding-right: 12px;
    }

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

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

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

    .college-hero .btn {
        font-size: 0.95rem;
        padding: 0.6rem 0.85rem;
        white-space: normal;
        display: inline-block;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .college-hero {
        padding-top: calc(var(--header-height, 80px) + 10px) !important;
        min-height: 44vh;
    }

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

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

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

/* Small tablets */
@media (min-width: 481px) and (max-width: 767px) {
    .college-hero {
        padding-top: calc(var(--header-height, 80px) + 16px);
        min-height: 56vh;
        background-position: center center;
    }

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

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

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

/* Ensure scroll targets are offset from fixed header on mobile */
@media (max-width: 768px) {
    .college-hero,
    .college-hero .hero-content,
    section {
        scroll-margin-top: calc(var(--header-height, 80px) + 12px);
    }
}
/* ==============================
   Mobile-Friendly Tweaks for .college-hero
   ============================== */

@media (max-width: 480px) {
    
    .college-hero {
        align-items: flex-start; 
        padding-top: calc(var(--header-height, 80px) + 14px) !important;
        padding-bottom: 22px; 
        min-height: auto;     
        height: auto;
        background-position: center top;
    }

    /* Stack hero content and keep things centered horizontally */
    .college-hero .hero-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* Slightly smaller headline and tighter spacing so CTA remains visible */
    .college-hero h2 {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
        line-height: 1.12;
    }

    .college-hero p {
        font-size: 0.98rem;
        margin-bottom: 0; 
        line-height: 1.4;
        text-align: center;
    }

    /* Make CTA more prominent and ensure it wraps/stays inside */
    .college-hero .btn {
        display: inline-block;
        width: auto;
        padding: 0.62rem 0.9rem;
        font-size: 0.95rem;
        white-space: normal;
        align-self: center;
        margin-top: 4px;
    }
}

/* Extra polish for extra-small screens */
@media (max-width: 360px) {
    .college-hero {
        padding-top: calc(var(--header-height, 80px) + 10px) !important;
        padding-bottom: 18px;
    }

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

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

    .college-hero .btn {
        padding: 0.55rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Tablet range: keep CTA visible while preserving center alignment */
@media (min-width: 481px) and (max-width: 767px) {
    .college-hero {
        align-items: center; 
        padding-top: calc(var(--header-height, 80px) + 16px);
        padding-bottom: 20px;
        min-height: 56vh;
    }

    .college-hero .hero-content {
        gap: 14px;
        padding: 0 16px;
    }

    .college-hero .btn {
        padding: 0.65rem 1rem;
        font-size: 0.98rem;
    }
}