/* =========================================
   1. BASE & VARIABLES
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --accent-color: #d84b6b;
    --text-main: #1e293b;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* =========================================
   2. TOP BAR
========================================= */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 15px;
}

.top-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-left a i {
    color: var(--primary-color);
    margin-right: 5px;
}

.top-left a:hover {
    color: var(--primary-dark);
}

/* Modern Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 2px 4px 2px 16px;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.search-form input {
    background: transparent;
    border: none;
    outline: none;
    padding: 6px 0;
    width: 180px;
    font-size: 13px;
}

.search-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}




.top-bar {
    display: flex;
    justify-content: space-between; /* Spreads out left, center, and right sections */
    align-items: center;
    padding: 10px 20px;
}

/* Specific styling to make the login button stand out */
.login-btn {
    background-color: #0056b3; /* Or any color matching your theme */
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #003d82;
}

.login-btn i {
    margin-right: 5px;
}



/* =========================================
   3. MAIN HEADER
========================================= */
.main-header {
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section img {
    max-height: 120px;
}

.title-section {
    flex-grow: 1;
    padding: 0 20px;
    min-width: 300px;
}

.title-section h1 {
    color: var(--primary-dark);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.title-section h2 {
    color: var(--text-main);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.title-section p {
    font-size: 13px;
    color: var(--text-muted);
}

.title-section .aishe-code {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(216, 75, 107, 0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.portrait-section img {
    height: 85px;
    width: 85px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

.digital-services img {
    max-height: 40px;
}

/* =========================================
   4. NAVIGATION MENU & DROPDOWN
========================================= */
.main-nav {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.main-nav > ul > li {
    flex-grow: 1;
    text-align: center;
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.main-nav > ul > li > a:hover {
    color: white;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Dropdown specific styles */
.dropdown-icon {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.main-nav ul.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 6px 6px;
    border-top: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    
    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.main-nav li.has-dropdown:hover ul.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav li.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.main-nav ul.dropdown li {
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.main-nav ul.dropdown li:last-child {
    border-bottom: none;
}

.main-nav ul.dropdown a {
    display: block;
    color: var(--text-main);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
}

.main-nav ul.dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    padding-left: 26px; /* Smooth slide effect on hover */
}





@media (max-width: 768px) {
    /* ... (other mobile styles) ... */

    /* Mobile Menu Wrapper - Smooth Slide Animation */
    .main-nav > ul {
        display: flex; /* THIS IS CRITICAL: Overrides any old display: none */
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-dark);
        max-height: 0; /* Start collapsed */
        overflow: hidden; /* Hide content when collapsed */
        transition: max-height 0.4s ease-in-out; 
    }

    /* Active class toggled by JavaScript */
    .main-nav > ul.active {
        max-height: 1500px; /* Expands to fit content (number must be larger than menu height) */
    }

    /* ... (rest of the mobile styles) ... */
}









/* =========================================
   5. MOBILE RESPONSIVE QUERIES
========================================= */
@media (max-width: 1024px) {
    .main-header {
        justify-content: center;
        text-align: center;
    }
    .title-section {
        order: 3;
        width: 100%;
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        padding: 10px 20px;
    }
    .search-form {
        width: 100%;
        justify-content: space-between;
    }
    .search-form input {
        width: 100%;
    }

    /* Mobile Menu Trigger */
    .menu-toggle {
        display: block;
    }

    /* Hide menu by default on mobile */
    .main-nav > ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-dark);
    }

    /* Class applied by JavaScript */
    .main-nav > ul.active {
        display: flex;
    }

    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav > ul > li > a {
        text-align: left;
        padding: 15px 20px;
    }

    /* Mobile Dropdown Restyling */
    .main-nav ul.dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.15); /* Darker background to nest */
        display: none; 
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav li.has-dropdown:hover ul.dropdown {
        display: flex;
    }

    .main-nav ul.dropdown a {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 20px 12px 40px; /* Indent sub-menus */
    }

    .main-nav ul.dropdown a:hover {
        background-color: rgba(0, 0, 0, 0.2);
        color: white;
    }
}










/* =========================================
   UNIVERSITY INTRO & PROFILES SECTION
========================================= */
.university-profiles-section {
    padding: 60px 20px;
    background-color: var(--bg-white);
}

.university-profiles-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Heading Styling */
.section-title {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 25px;
    font-weight: 700;
}

.highlight-orange {
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

/* Creates the curved orange underline effect */
.highlight-orange::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 50%;
}

/* Introduction Paragraph */
.university-intro {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

/* Profile Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual Profile Card */
.profile-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
}

/* Circular Profile Image */
.profile-img-box {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px; /* Space for the orange border */
    border: 2px solid var(--primary-dark);
    margin-bottom: 20px;
}

.profile-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Profile Typography */
.profile-name {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-designation {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Read More Link */
.profile-link {
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    margin-top: auto; /* Pushes the link to the bottom of the card */
}

.profile-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.profile-link:hover {
    color: var(--primary-color);
}

.profile-link:hover i {
    transform: translateX(3px); /* Arrow slides right on hover */
}

/* =========================================
   RESPONSIVE QUERIES FOR PROFILES
========================================= */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .profile-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .university-intro {
        font-size: 14px;
        text-align: justify;
    }
}































/* --- Footer Section Styling --- */
.site-footer {
    background-color: #fcece0;
    color: #333;
    font-family: 'Arial', sans-serif;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.widget-title {
    color: #000;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e67e22;
    text-align: center;
}

.footer-col:nth-child(3) .widget-title, 
.footer-col:nth-child(4) .widget-title {
    text-align: left;
}

/* Contact Info Styling */
.contact-info {
    font-size: 14px;
    line-height: 1.6;
}
.contact-info h4 {
    color: #d35400;
    text-align: center;
    margin-bottom: 10px;
}
.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.contact-item i {
    color: #d35400;
    margin-top: 4px;
}
.email-btn-box {
    background-color: #f1f1f1;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    border: 1px solid #ddd;
}
.email-btn-box .btn {
    background-color: #e67e22;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

/* Map Styling */
.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 4px;
}

/* Footer Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
    font-size: 14px;
}
.footer-links a {
    color: #333;
    transition: color 0.3s;
    display: flex;
    align-items: flex-start;
}
.footer-links a::before {
    content: "»";
    color: #e67e22;
    font-weight: bold;
    margin-right: 8px;
}
.footer-links a:hover {
    color: #e67e22;
}

/* Meta Info (Updates & Visitors) */
.meta-info {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    background-color: #fbeadc;
    border-top: 1px solid #f0d5c1;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logos img {
    height: 20px;
    margin: 0 5px;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}



















/* =========================================
   6. INFORMATION SECTION (Cards & Accordions)
========================================= */

/* Main Container Grid */
.info-section-container {
    display: grid;
    /* Automatically creates responsive columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

/* --- Card Base Styling --- */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* --- Card Header --- */
.card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

/* Optional icon before header text */
.card-header::before {
    content: '\f0a1'; /* FontAwesome Bullhorn icon as default */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 16px;
    opacity: 0.9;
}

/* Change icon for 2nd and 3rd cards based on order */
.card:nth-child(2) .card-header::before { content: '\f1ea'; } /* Newspaper icon */
.card:nth-child(3) .card-header::before { content: '\f15c'; } /* Document icon */

/* --- Card Content Area --- */
.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
}

/* --- Lists (Announcements & News) --- */
.content-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    flex-grow: 1;
}

.content-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}

.content-list li:last-child {
    border-bottom: none;
}

/* Custom list bullet */
.content-list li::before {
    content: '\f105'; /* FontAwesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 14px;
    font-size: 12px;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.content-list a {
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
}

/* Hover effects for lists */
.content-list li:hover::before {
    transform: translateX(3px);
}

.text-green a:hover { color: #16a34a; } /* Modern Green */
.text-grey a:hover { color: var(--primary-dark); }

/* --- Read More Button --- */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto; /* Pushes to the bottom of the card */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* --- Accordion (Circulars) Styling --- */
.accordion-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

details > summary {
    list-style: none; /* Hide default marker */
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    user-select: none;
    background-color: var(--bg-white);
}

details > summary::-webkit-details-marker {
    display: none; /* Specifically hide marker for Safari */
}

/* Icons within summary */
.summary-icon {
    color: var(--primary-dark);
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.summary-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Arrow rotation when open */
details[open] > summary .summary-arrow {
    transform: rotate(90deg);
}

/* Accordion Content Area */
.accordion-content {
    padding: 15px 15px 15px 45px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-white);
    font-size: 13.5px;
}

.accordion-content a {
    display: block;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
    padding-left: 12px;
}

.accordion-content a::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.accordion-content a:hover {
    color: var(--primary-dark);
}

.accordion-content p {
    color: var(--text-muted);
    font-style: italic;
}

/* =========================================
   RESPONSIVE Adjustments
========================================= */
@media (max-width: 768px) {
    .info-section-container {
        padding: 20px;
        gap: 20px;
    }
}