/* student-results.css - Page-specific overrides aligned with index.html */

:root {
    --primary-color: #05386b;
    --secondary-color: #ffd95a;
    --text-color: #232323;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* ================= HEADER OVERRIDES (MATCHING INDEX.HTML) ================= */
.menu3 {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #05386b !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu3 .navbar {
    padding: 12px 0 !important;
    background: #05386b !important;
}

.menu3 .container {
    background: transparent !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-logo img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

.navbar-caption-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-caption {
    text-decoration: none !important;
    line-height: 1.4;
}

.trust-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
    font-weight: 400;
    line-height: 1.3;
}

.college-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffd95a !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: #ffd95a !important;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    min-width: 220px;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item {
    color: #05386b !important;
    padding: 10px 20px !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #ffd95a !important;
}

/* Mobile toggler fix */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    display: block;
    margin: 4px 0;
}

/* Footer styling now lives in assets/theme/css/footer.css, shared by every page */

/* ================= PAGE CONTENT STYLES ================= */
body {
    background-color: var(--white);
    color: var(--text-color);
}

/* Hero Section */
.cid-results-hero {
    padding-top: 60px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cid-results-hero h1 {
    color: var(--primary-color);
    font-weight: 800;
}

/* Statistics Section */
.cid-results-stats {
    padding-top: 40px;
    padding-bottom: 40px;
}

.card-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

#stat-years, #stat-semesters, #stat-avg-pass {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

/* Filter Section */
.cid-results-filter {
    padding-top: 20px;
    padding-bottom: 40px;
}

#yearFilter {
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    padding: 10px;
    font-weight: 500;
}

/* Table Section */
.cid-results-data {
    padding-top: 20px;
    padding-bottom: 80px;
}

.year-section {
    margin-bottom: 60px;
}

.year-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: 700;
}

.batch-info {
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    vertical-align: middle;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #eee;
}

.btn-view {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.btn-view:hover {
    background-color: #042d56;
    transform: scale(1.05);
}

/* Note Box */
.note-box {
    background-color: #fff9e6;
    border-left: 5px solid var(--secondary-color);
    border-radius: 4px;
}

.note-box h5 {
    color: #856404;
}

.note-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .cid-results-hero {
        padding-top: 40px;
    }
    
    .table thead {
        display: none;
    }
    
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    
    .table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
    }
    
    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    
    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--primary-color);
    }
}
