/* ==========================================================================
   1. PREMIUM CONFIGURATION & VARIABLES (Sharp Hybrid Theme)
   ========================================================================== */
:root {
    --primary-deep: #0f172a;    /* Slate 900 */
    --brand-blue: #0284c7;      /* Sky 600 */
    --brand-blue-hover: #0369a1;/* Sky 700 */
    --text-muted: #475569;      /* Slate 600 */
    --bg-light: #f8fafc;        /* Slate 50 */
    --card-border: #cbd5e1;     /* Slate 300 */
    --h2-gradient-bg: linear-gradient(135deg, #1e293b, #334155); 
    --nav-strip-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --card-light-bg: #ffffff; 
    --card-hover-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); 
    --success-green: #15803d;   
    --accent-yellow: #a16207;   
    --radius-lg: 12px;          
    --radius-md: 8px;
    --radius-sm: 4px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);   
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. CORE BASE STYLING
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light); 
    font-size: 15px; 
}

body {
    color: var(--primary-deep);
    font-family: var(--font-stack);
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

h2, h2[id] {
    scroll-margin-top: 140px; 
    font-size: 15px;
    font-weight: 500;
    color: #ffffff; 
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: var(--h2-gradient-bg);
    border-left: 4px solid var(--brand-blue);
    border-radius: var(--radius-md); 
    letter-spacing: -0.1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   3. HERO BANNER & CONTAINER
   ========================================================================== */
.college-banner {  
    width: 100%;  
    height: 250px;  
    background: #cbd5e1;  
    background-size: cover;  
    background-position: center;  
    position: relative;
    border-bottom: 2px solid var(--brand-blue); 
}  
  
.college-logo {  
    width: 110px;  
    height: 110px;  
    position: absolute;  
    /* bottom को -40px से बदलकर -60px किया ताकि लोगो और नीचे चला जाए */
    bottom: -60px;  
    left: 40px;  
    border-radius: var(--radius-lg);  
    background: #ffffff;  
    padding: 6px;  
    box-shadow: var(--shadow-md);  
    border: 1px solid var(--card-border);
    z-index: 10; /* यह सुनिश्चित करने के लिए कि लोगो नीचे वाले कंटेंट के ऊपर दिखे */
}  
  
.container {  
    width: 92%;  
    max-width: 1200px;  
    /* margin-top को 55px से बढ़ाकर 75px किया ताकि लोगो नीचे वाले टेक्स्ट को न दबाए */
    margin: 10px auto 4px auto; 
    padding: 0 10px;
}
.container h1 {  
    font-size: 22px;  
    font-weight: 700;  
    color: var(--primary-deep);  
    letter-spacing: -0.5px;
    margin-bottom: 2px;  
}  
  
.college-meta {  
    display: flex;  
    gap: 8px;  
    flex-wrap: wrap;  
    margin-top: 12px;
}  
  
.college-meta span {  
    background: #1e293b;  
    color: #f8fafc;  
    padding: 5px 12px;  
    border-radius: 6px;  
    font-size: 11px;
    font-weight: 600;  
    letter-spacing: 0.3px;
}  

/* ==========================================================================
   4. STICKY NAVIGATION SLIDER
   ========================================================================== */
.nav-slider-box {  
    margin: 25px 0 15px 0;  
    padding: 6px;  
    border: 1px solid var(--card-border);  
    border-radius: var(--radius-lg);  
    overflow-x: auto;  
    white-space: nowrap;  
    background: var(--nav-strip-gradient); 
    position: sticky;
    top: 15px;
    z-index: 100;
    box-shadow: var(--shadow-md);
    scrollbar-width: none;
}  

.nav-slider-box::-webkit-scrollbar {
    display: none;
}
  
.nav-item {  
    display: inline-block;  
    margin-right: 4px;  
    font-size: 13px;  
    padding: 10px 18px;  
    cursor: pointer;  
    font-weight: 700;  
    color: #334155; 
    border-radius: var(--radius-md);
}  

.nav-item:hover {
    color: var(--brand-blue);
    background: #ffffff; 
}  

/* ==========================================================================
   5. INFO & GENERAL SECTIONS STYLING
   ========================================================================== */
.info-card, .section {  
    background: #ffffff;  
    padding: 20px;  
    border-radius: var(--radius-lg);  
    box-shadow: var(--shadow-sm);  
    border: 1px solid var(--card-border);
    margin-bottom: 25px; 
}  

.info-card p, .section p { 
    margin: 8px 0; 
    font-size: 14px; 
    color: #1e293b; 
}  

.info-card a {
    color: var(--brand-blue);
    font-weight: 600;
}

.info-card a:hover {
    color: var(--brand-blue-hover);
    text-decoration: underline;
}

.section p {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.section p:last-child {
    border-bottom: none;
}

.section p strong {
    color: var(--primary-deep);
    font-weight: 600;
}

/* ==========================================================================
   6. HIGH-DENSITY COURSE CARDS & NEW CATEGORY LABELS
   ========================================================================== */
.branch-grid {  
    display: grid;  
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 16px; 
    margin-bottom: 35px;
}  
  
.card {
    position: relative;
    background: var(--card-light-bg); 
    width: 100%;
    padding: 16px; 
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    background: var(--card-hover-bg); 
    box-shadow: var(--shadow-md);
    border-color: #94a3b8;
}

/* --- NEW: Small Dynamic Course Category Styling --- */
.course-category-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    width: fit-content;
}

/* Different Distinct Colors for Category Tags */
.cat-btech { background-color: #e0f2fe; color: #0369a1; }
.cat-pharmacy { background-color: #fce7f3; color: #be185d; }
.cat-diploma { background-color: #fef3c7; color: #b45309; }
.cat-mba { background-color: #ede9fe; color: #5b21b6; }

.roe-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    background: #f0fdf4; 
    color: var(--success-green);
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid #bbf7d0;
}

.name {
    font-size: 16px; 
    font-weight: 700;
    color: var(--primary-deep);
    line-height: 1.3;
    padding-right: 85px; 
}

.meta {
    font-size: 10px;
    color: #64748b; 
    margin-top: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; 
    margin-top: 14px;
}

.details div {
    background: #f8fafc; 
    border: 1px solid var(--card-border);
    padding: 8px 10px; 
    border-radius: var(--radius-md);
    font-size: 12px;
    color: #334155; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details b {
    color: var(--primary-deep);
    font-weight: 600;
}

.tag {
    margin-top: 12px;
    display: inline-block;
    background: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 20px;
    font-weight: 600;
    width: fit-content;
    border: 1px solid var(--card-border);
}

/* ==========================================================================
   7. ACTION BUTTONS
   ========================================================================== */
.btns {
    display: flex;
    gap: 6px; 
    margin-top: 14px;
}

.btn {
    padding: 5px 8px; 
    border: none;
    border-radius: var(--radius-sm); 
    font-size: 11px; 
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.apply { 
    background: var(--brand-blue); 
    color: #ffffff; 
    flex: 2; 
}
.apply:hover { 
    background: var(--brand-blue-hover); 
}
.course { 
    background: var(--brand-blue); 
    color: #ffffff; 
    flex: 2; 
}
.course:hover { 
    background: var(--brand-blue-hover); 
}


.brochure { 
    background: #ffffff; 
    border: 1px solid var(--card-border); 
    color: #334155; 
    flex: 1.2;
}
.brochure:hover { 
    background: #f8fafc; 
    border-color: #64748b; 
}

/* ==========================================================================
   8. GLOBAL FAQ SECTION STYLING
   ========================================================================== */
.faq-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #94a3b8;
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-deep);
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    background: #ffffff;
}

.faq-item.active .faq-answer {
    padding: 18px 24px;
    max-height: 2000px; 
    border-top: 1px solid var(--card-border);
}

.faq-question::after {
    content: '▼';
    font-size: 12px;
    color: #475569;
    transition: transform 0.3s ease;
    display: inline-block;
}

.faq-item.active .faq-question::after {
    transform: rotate(-180deg);
}

/* ==========================================================================
   9. STUDENT REVIEWS GRID
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.review-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-deep);
}

.review-rating {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-yellow);
    background: #fef9c3;
    padding: 2px 6px;
    border-radius: 4px;
}

.review-text {
    font-size: 13px;
    color: #334155;
    font-style: italic;
    line-height: 1.5;
}

/* ==========================================================================
   10. RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin-top: 55px;
    }
    .container h1 {
        font-size: 24px;
    }
    .college-banner {
        height: 200px;
    }
    .college-logo {
        width: 95px;
        height: 95px;
        bottom: -30px;
        left: 20px;
    }
    .branch-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    h2, h2[id] {
        font-size: 16px;
        padding: 8px 12px;
    }
    .name { 
        font-size: 15px; 
        padding-right: 0; 
        margin-top: 5px; 
    }
    .details { 
        grid-template-columns: 1fr; 
    }
    .roe-badge { 
        top: 14px; 
        right: 14px; 
    }
    .btns { 
        flex-direction: row; 
    }
    .btn {
        padding: 8px 4px;
        font-size: 11px;
    }
    .faq-question {
        padding: 14px 18px;
        font-size: 14px;
    }
    .faq-answer {
        font-size: 13px;
    }
    .faq-item.active .faq-answer {
        padding: 14px 18px;
    }
}