/* Global Styles */
:root {
    --primary-color: #003366;
    /* Deep Blue */
    --primary-dark: #002244;
    --secondary-color: #FFCC00;
    /* Gold/Yellow Accent */
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f4f6f9;
    --white: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-section h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

.iqac-badge h1 {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation */
nav {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-item {
    flex-grow: 1;
    /* Distribute space */
    text-align: center;
}

.nav-item a {
    display: block;
    padding: 15px 10px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--secondary-color);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.page-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 35px;
    font-family: var(--font-heading);
    font-size: 2rem;
    display: inline-block;
}

/* Cards & Sections */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

h4 {
    color: var(--primary-dark);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

/* Lists and Content */
ul,
ol {
    margin-bottom: 20px;
    color: var(--text-color);
}

li {
    margin-bottom: 8px;
}

/* Tables (Responsive) */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    min-width: 600px;
    /* Force scroll on very small screens */
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f0f4f8;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background-color: #fafbfc;
}

.pdf-link {
    color: #d32f2f;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(211, 47, 47, 0.05);
}

.pdf-link:hover {
    background-color: rgba(211, 47, 47, 0.1);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 50px;
    padding-top: 25px;
    font-size: 0.9rem;
    color: #888;
}

/* Utility */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

iframe.pdf-embed {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    background-color: #eee;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .header-container {
        justify-content: center;
        text-align: center;
    }

    .nav-list {
        justify-content: center;
    }

    .iqac-badge {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .logo-section h1 {
        font-size: 1.5rem;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-item a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px;
    }

    .card {
        padding: 20px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    iframe.pdf-embed {
        height: 500px;
        /* Smaller height on mobile */
    }
}