:root {
    --accent-gold: #d4af37;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f7ef8a 100%);
    --deep-blue: #1a237e;
    --light-blue: #e8eaf6;
    --navy-blue: #0a1172;
    --crimson: #d32f2f;
    --light-crimson: #ffebee;
    --charcoal: #2c3e50;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

footer,
.modern-footer {
    margin-top: auto;
}

.container {
    width: 100%;
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #000000;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.announcement-bar {
    background: var(--navy-blue);
    color: var(--white);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.announcement-content p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.modern-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: var(--gold-gradient);
    border-image-slice: 1;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    min-height: 140px;
}

.logo-container {
    margin-left: 40px;
    position: relative;
}

.logo-wrapper {
    width: 140px;
    height: 140px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.title-container {
    text-align: center;
    padding: 20px 0;
}

.institute-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.title-main {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-size: 45px;
    font-weight: 800;
    color: #ffa500;
}

.title-sub {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #ffa500 !important;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: var(--gold-gradient);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--navy-blue);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.modern-nav {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--deep-blue) 100%);
    position: relative;
}

.modern-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    padding: 18px 25px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Main Content Styles */
.modern-layout {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.page-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Combined Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Small Card Design */
.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.card-header {
    position: relative;
    padding: 20px 20px 15px;
    border-bottom: 2px solid var(--light-gray);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.news-badge {
    background: var(--gold-gradient);
    color: var(--navy-blue);
}

.notice-badge {
    background: var(--light-blue);
    color: var(--navy-blue);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--crimson);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.1rem;
    color: var(--navy-blue);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content {
    padding: 15px 20px;
    flex-grow: 1;
}

.card-description {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy-blue);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 15px;
    background: var(--light-blue);
    border-radius: 20px;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--gold-gradient);
    color: var(--navy-blue);
    gap: 8px;
}

.file-info {
    font-size: 0.8rem;
    color: var(--dark-gray);
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    margin: 40px 0 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-gold);
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
}

.no-results i {
    font-size: 2.5rem;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

/* Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--charcoal) 100%);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gold-gradient);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-title h4 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.footer-title p {
    color: var(--accent-gold);
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-icons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--navy-blue);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--accent-gold);
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-grid {
        grid-template-columns: 120px 1fr;
        min-height: 120px;
    }

    .logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .mobile-menu-btn {
        display: block;
        grid-column: 3;
        justify-self: end;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-blue);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 18px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .announcement-content {
        justify-content: center;
        text-align: center;
        gap: 15px;
    }

    .header-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 15px 0;
        min-height: auto;
    }

    .logo-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .mobile-menu-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .modern-layout {
        padding: 25px 0;
    }

    .card-header,
    .card-content,
    .card-footer {
        padding: 15px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}