@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

:root {
    --primary-blue: #002147;

    --accent-yellow: #ffcc00;

    --text-white: #ffffff;
    --text-black: #333333;
    --bg-light: #ffffff;
}

.day-order-table th,
.day-order-table td {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.day-order-table th {
    background: #002147;
    color: white;
}

.btn-toggle {
    padding: 5px 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #eee;
}

.btn-toggle.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-toggle.inactive {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.leave-row {
    background-color: #ffeeba;
}

.edited-day-row {
    background-color: #e8f5e9 !important;
}

.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.admin-modal .modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #002147;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.btn-edit {
    background: #2196F3;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.gallery-explorer-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.folder-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    position: relative;
}

.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.folder-icon-area {
    height: 140px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ffc107;
    position: relative;
}

.folder-card .count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #002147;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.folder-info {
    padding: 15px;
}

.folder-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.admin-actions-overlay {
    position: absolute;
    bottom: 60px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-card:hover .admin-actions-overlay {
    opacity: 1;
}

.action-btn-small {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-edit-folder {
    background: #ffc107;
    color: #333;
}

.btn-delete-folder {
    background: #dc3545;
    color: white;
}

.detail-view-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.btn-back-explorer {
    background: #eee;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
}

.gallery-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-preview-card {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    position: relative;
}

.image-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-edit:hover {
    background: #1976D2;
}

.custom-label-badge {
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: 500;
}

.rti-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.rti-table tr {
    border-bottom: 1px solid #eee;
}

.rti-table tr:last-child {
    border-bottom: none;
}

.rti-table td {
    padding: 15px 20px;
    vertical-align: top;
    line-height: 1.6;
}

.rti-label {
    width: 30%;
    font-weight: 700;
    color: #800000;
    background: #fbfbfb;
    border-right: 1px solid #eee;
}

.rti-value {
    width: 70%;
    color: #444;
}

.rti-list {
    padding-left: 20px;
    margin: 0;
}

.rti-list li {
    margin-bottom: 8px;
}

.rti-list li:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .rti-table td {
        display: block;
        width: 100%;
    }

    .rti-label {
        background: #f4f4f4;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #002147 0%, #003366 100%);
    color: white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 33, 71, 0.15);
}

.dashboard-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 1;
}

.dashboard-header h1 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.section-title {
    color: #1a202c;
    border-bottom: none;
    padding-bottom: 0;
    margin: 60px 0 25px;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: #002147;
    background: rgba(0, 33, 71, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dash-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: #4a5568;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #002147;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.08);
    border-color: rgba(0, 33, 71, 0.2);
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-card i {
    font-size: 2.5rem;
    color: #002147;
    margin-bottom: 25px;
    background: rgba(0, 33, 71, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.dash-card:hover i {
    background: #002147;
    color: #ffffff;
    transform: scale(1.1);
}

.dash-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 600;
}

.dash-card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.principal-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
}

.principal-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 70%;
    margin: 0 auto;
}

.principal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.principal-img-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.principal-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.principal-card:hover .principal-img {
    transform: scale(1.02);
}

.principal-caption {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: #002147;
    font-size: 18px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
}

.principal-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
}

.principal-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 70%;
    margin: 0 auto;
}

.principal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.principal-img-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.principal-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.principal-card:hover .principal-img {
    transform: scale(1.02);
}

.principal-caption {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: #002147;
    font-size: 18px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
}

.mission-points {
    margin-bottom: 30px;
}

.mission-points h2 {
    color: #800000;
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    position: relative;
    padding: 12px 15px 12px 45px;
    background: #fdfdfd;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    line-height: 1.6;
}

.mission-list li:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mission-list li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: #800000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.mission-list {
    counter-reset: item;
}

@media (max-width: 768px) {
    .principal-card {
        width: 90%;
    }

    .principal-caption {
        font-size: 16px;
        padding: 15px;
    }
}


@media (max-width: 768px) {
    .principal-card {
        width: 90%;
    }

    .principal-caption {
        font-size: 16px;
        padding: 15px;
    }
}

.staff-photo {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.dash-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #002147;
    font-weight: 600;
}

.dash-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.filter-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-label {
    font-weight: 600;
    color: #002147;
    min-width: 100px;
}

.staff-preview-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

/* Session Expiry Popup */
.expiry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.expiry-modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    border-top: 5px solid #dc3545;
}

.expiry-modal i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.expiry-modal h3 {
    color: #002147;
    margin-bottom: 10px;
}

.expiry-modal p {
    color: #666;
    margin-bottom: 25px;
}

.btn-expiry-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn-expiry-logout:hover {
    background: #c82333;
}

body {
    overflow-x: visible;
}

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #002147;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #002147;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.toggle-password:hover {
    color: #002147;
}

.btn-auth {
    background: #002147;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-auth:hover {
    background: #003366;
}

.btn-loading {
    opacity: 0.7;
    cursor: wait;
}

.hidden {
    display: none;
}

.otp-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.attendance-container {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.08);
    border: 1px solid rgba(0, 33, 71, 0.05);
    transition: transform 0.3s ease;
}


.attendance-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    position: relative;
    z-index: 1;

    white-space: normal;
    table-layout: auto;
}

.attendance-table th,
.attendance-table td {
    padding: 6px 4px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    border-right: 1px solid #edf2f7;

    vertical-align: middle;
    box-sizing: border-box;
    font-size: 0.8rem;
}

.attendance-table th:last-child,
.attendance-table td:last-child {
    border-right: none;
}

.attendance-table th {
    background: var(--primary-blue);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.attendance-table tr:last-child td {
    border-bottom: none;
}

.attendance-table tbody tr {
    transition: background 0.2s ease;
    position: relative;
    background: #fff;
}

.attendance-table tbody tr:hover {
    background-color: #f8fafc;
    z-index: 5;
}


.attendance-table tbody tr:has(.select-dropdown.active) {
    z-index: 10;
}


.professional-select,
.gmail-style-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.85rem;
    color: #334155;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.professional-select {
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 24 24\' stroke=\'%2364748b\'%3E%3Cpath stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 9l-7 7-7-7\'%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    min-width: 120px;
}

.professional-select:focus,
.gmail-style-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.professional-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.role-select {
    min-width: 100px;
}

.edit-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.95rem;
    color: #1a202c;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.edit-input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
    background-color: #fff;
}

.edit-input:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
    color: #a0aec0;
    border-color: #edf2f7;
}


.searchable-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    padding: 6px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.85rem;
    color: #1a202c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 32px;
    box-sizing: border-box;
}

.select-trigger:hover {
    border-color: var(--primary-blue);
}

.select-trigger.disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
    color: #a0aec0;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 200px;
    background: #ffffff;
    border: 1.5px solid var(--primary-blue);
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.select-dropdown.active {
    display: flex;
}

.select-search-container {
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.select-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.select-search-input:focus {
    border-color: var(--primary-blue);
}

.select-options-list {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.select-option {
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.select-option:hover {
    background: #f1f5f9;
}

.select-option.selected {
    background: var(--primary-blue);
    color: white;
}

.select-option.no-results {
    color: #64748b;
    font-style: italic;
    cursor: default;
}


.action-btns {
    display: flex;
    gap: 12px;
}

.btn-action {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-assign {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-confirm {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}

.btn-confirm:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-delete {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.attendance-table td.cell-select {
    padding: 8px 15px;
    position: relative;
}

/* Ensure dropdowns take full width within cells */
.attendance-table td .edit-input {
    width: 100%;
}

.btn-action:active {
    transform: translateY(0);
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    padding: 25px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    box-sizing: border-box;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #002147;
    padding-bottom: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.hod-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
}

.hod-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.2s;
}

.hod-item:hover {
    background: #f0f7ff;
}

.hod-item .name {
    font-weight: bold;
    color: #002147;
}

.hod-item .dept {
    font-size: 0.85rem;
    color: #666;
}

.add-hod-section {
    margin-top: 20px;
}

.add-form input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}

.dashboard-view {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.status-msg {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    text-align: center;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.coe-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border-bottom: 3px solid #f0f0f0;
    margin-bottom: 20px;
    margin-left: 0;
}

.coe-img-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 220px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #eef2f5;
}

.coe-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coe-details h2 {
    color: #002147;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.coe-details p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.coe-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #999;
}

.coe-table th,
.coe-table td {
    text-align: left;
    padding: 16px 20px;
    border: 1px solid #999;
}

.coe-table th {
    background: #2b6eff;
    color: white;
    font-weight: 600;
    width: 30%;
}

.coe-table td {
    background: #fdfdfd;
    color: #333;
    font-weight: 500;
}

.coe-table tr:nth-child(even) td {
    background: #f9f9f9;
}

@media (max-width: 1024px) {
    .coe-header {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .coe-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .coe-img-wrapper {
        width: 150px;
        height: 180px;
    }

    .coe-details h2 {
        font-size: 1.2rem;
    }

    .coe-details p {
        font-size: 0.95rem;
    }

    .coe-table th,
    .coe-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .coe-header {
        padding: 15px 10px;
    }

    .coe-img-wrapper {
        width: 120px;
        height: 150px;
    }

    .coe-details h2 {
        font-size: 1.1rem;
    }

    .coe-table th,
    .coe-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

.admin-table-container {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-table-header h2 {
    color: #002147;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: #002147;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-edit:hover,
.btn-delete:hover {
    opacity: 0.8;
}


.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    backdrop-filter: blur(5px);
}

.admin-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-footer {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.form-group input:focus {
    border-color: #002147;
}

.name-display {
    line-height: 1.4;
}

.name-display strong {
    color: #2c7a7b;
    display: block;
}

.admin-table-container {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-table-header h2 {
    color: #002147;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: #002147;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-edit:hover,
.btn-delete:hover {
    opacity: 0.8;
}


.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    backdrop-filter: blur(5px);
}

.admin-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-footer {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.form-group input:focus {
    border-color: #002147;
}

.name-display {
    line-height: 1.4;
}

.name-display strong {
    color: #2c7a7b;
    display: block;
}

.admin-table-container {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.btn-add {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #218838;
    transform: translateY(-2px);
}

.staff-preview-img {
    width: 60px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.3s;
}

.btn-edit {
    background: #002147;
}

.btn-delete {
    background: #dc3545;
}

/* Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    backdrop-filter: blur(5px);
}

.admin-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 30px;
    animation: slideUp 0.3s ease-out;
}

.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
}

#photo-preview {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

body {
    overflow-x: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-blue);
    opacity: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 100%;
}

.loader-logo img {
    margin-top: 20px;
    width: 120px;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
    opacity: 100%;
}

.loader-text {
    color: white;
}

.loader-logo {
    background-color: white;
    width: 150px;
    height: 150px;
    border-radius: 100px;
    opacity: 100%;
}

.loader-progress {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-yellow);
    box-shadow: 0 0 15px var(--accent-yellow);
    transition: width 0.4s ease-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

#img {
    text-decoration: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #002147;
}

::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--accent-yellow);
    cursor: pointer;
    z-index: 1001;
}

body {
    background-color: var(--bg-light);
}

/* --- Header Entrance Animations --- */
@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brandSlideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes headerBgReveal {
    from {
        background-color: transparent;
    }

    to {
        background-color: var(--text-white);
    }
}

@keyframes brandBgSlide {
    from {
        opacity: 0;
        transform: translateX(-100%) skewX(-20deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) skewX(-20deg);
    }
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes brandBgSlideMobile {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal states */
#main-content.reveal-content .main-header {
    animation: headerBgReveal 1s ease-out forwards;
}

#main-content.reveal-content .brand-section::before {
    animation: brandBgSlide 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#main-content.reveal-content .top-bar {
    animation: headerSlideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#main-content.reveal-content .brand-content {
    animation: brandSlideRight 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#main-content.reveal-content .logo-placeholder {
    animation: logoIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

#main-content.reveal-content .nav-list>li {
    animation: navItemFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Info Section Reveal */
#main-content.reveal-content .marquee-container {
    animation: brandSlideRight 0.8s cubic-bezier(0.22, 1, 0.36, 0) 0.2s both;
}

#main-content.reveal-content .fee-btn {
    animation: navItemFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#main-content.reveal-content .fee-btn:nth-child(1) {
    animation-delay: 0.4s;
}

#main-content.reveal-content .fee-btn:nth-child(2) {
    animation-delay: 0.5s;
}

#main-content.reveal-content .quick-link-item {
    animation: navItemFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#main-content.reveal-content .quick-link-item:nth-child(1) {
    animation-delay: 0.6s;
}

#main-content.reveal-content .quick-link-item:nth-child(2) {
    animation-delay: 0.7s;
}

#main-content.reveal-content .quick-link-item:nth-child(3) {
    animation-delay: 0.8s;
}

/* Staggered Navigation Delays */
#main-content.reveal-content .nav-list>li:nth-child(1) {
    animation-delay: 0.5s;
}

#main-content.reveal-content .nav-list>li:nth-child(2) {
    animation-delay: 0.6s;
}

#main-content.reveal-content .nav-list>li:nth-child(3) {
    animation-delay: 0.7s;
}

#main-content.reveal-content .nav-list>li:nth-child(4) {
    animation-delay: 0.8s;
}

#main-content.reveal-content .nav-list>li:nth-child(5) {
    animation-delay: 0.9s;
}

#main-content.reveal-content .nav-list>li:nth-child(6) {
    animation-delay: 1.0s;
}

#main-content.reveal-content .nav-list>li:nth-child(7) {
    animation-delay: 1.1s;
}

#main-content.reveal-content .nav-list>li:nth-child(8) {
    animation-delay: 1.2s;
}

#main-content.reveal-content .nav-list>li:nth-child(9) {
    animation-delay: 1.3s;
}

#main-content.reveal-content .nav-list>li:nth-child(10) {
    animation-delay: 1.4s;
}

#main-content.reveal-content .nav-list>li:nth-child(11) {
    animation-delay: 1.5s;
}

#main-content.reveal-content .nav-list>li:nth-child(12) {
    animation-delay: 1.6s;
}

/* Top Strip */
.top-bar {
    background-color: #00264e;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 25px;
    font-size: 15px;
    opacity: 0;
    border-bottom: 1px solid #031e3d;
    /* Hidden initially for animation */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
    overflow: hidden;
    justify-content: space-between;
}

#top-marquee {
    flex: 1 1 auto;
    margin-right: 20px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    max-width: calc(100% - 350px);
}

#top-marquee a {
    color: #ffcc00;
    text-decoration: underline;
    font-weight: bold;
    display: inline !important;
    vertical-align: baseline;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

#marquee-text a {
    color: #00264e !important;
    text-decoration: underline;
}

#marquee-text:empty:before {
    content: attr(placeholder);
    color: #999;
    pointer-events: none;
}

.top-bar-right a {
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-shrink: 0;
}

.social-icons i {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.2);
}


/* Main Header Section */
header {
    position: relative;
}

.main-header {
    display: flex;
    position: relative;
    background-color: transparent;
    /* Changed from var(--text-white) for animation */
    height: 150px;
    overflow: hidden;
    margin-left: -50px;
}

/* Left Brand Section with Diagonal Cut */
.brand-section {
    width: 45%;
    /* removed background-color */
    color: var(--text-white);
    padding: 20px 20px 20px 100px;
    /* Added left padding to compensate for negative margin if needed, or just standard padding */
    display: flex;
    align-items: center;
    position: relative;
    /* removed clip-path */
    z-index: 2;
    margin-left: 200px;
}

/* Skewed Blue Background + Yellow Border */
.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vw;
    /* Extend far left to ensure the left side is covered */
    right: -20px;
    /* Adjust this to control where the slant ends relative to content */
    background-color: var(--primary-blue);
    transform: skewX(-20deg);
    transform-origin: bottom;
    border-right: 15px solid var(--accent-yellow);
    z-index: -1;
    opacity: 0;
    /* Hidden initially */
}

/* Remove old separator styles */
.diagonal-separator {
    display: none;
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 85%;
    /* Keep content away from the slanted edge */
    opacity: 0;
    /* Hidden initially */
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    font-weight: bold;
    margin-left: -230px;
    opacity: 0;
    flex-shrink: 0;
    /* Hidden initially */
}

.college-details h1 {
    font-size: 24.5px;
    color: var(--accent-yellow);
    /* Matching the yellow text in image */
    margin-bottom: 5px;
    white-space: nowrap;
}

.college-details h2 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.college-details p {
    font-size: 14px;
    opacity: 0.9;
}

/* Right Info Section */
.info-section {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
}

.marquee-container {
    width: 100%;
    text-align: right;
    font-size: 14px;
    color: var(--text-black);
    opacity: 0;
    /* Hidden initially */
}

.click-here-btn {
    background-color: #002147;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
    cursor: pointer;
    color: white;
}

/* --- Header Actions Area --- */
.header-btns {
    display: flex;
    gap: 12px;
}

.header-btn {
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-btn i {
    font-size: 14px;
}

.header-btn.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 33, 71, 0.15);
}

.header-btn.btn-primary:hover {
    background: #003366;
    border-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 33, 71, 0.25);
    color: var(--accent-yellow);
}

.header-btn.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.header-btn.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 33, 71, 0.15);
}

/* Responsive adjustments for header area */
@media (max-width: 1024px) {
    .brand-section {
        margin-left: 120px;
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .logo-placeholder {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: auto;
        flex-direction: column;
        margin-left: 0;
        padding-bottom: 15px;
    }

    .brand-section {
        width: 100%;
        margin-left: 0;
        padding: 15px 10px;
        justify-content: center;
    }

    .brand-content {
        gap: 10px;
        max-width: 100%;
    }

    .brand-section::before {
        transform: none;
        border-right: none;
        border-bottom: 5px solid var(--accent-yellow);
        left: 0;
        right: 0;
    }

    .logo-placeholder {
        margin-left: 0;
        width: 80px;
        height: 80px;
    }

    .info-section {
        width: 100%;
        align-items: center;
        padding: 10px 20px;
    }

    .header-btns {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .header-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .logo-placeholder {
        width: 70px;
        height: 70px;
    }

    .college-details h1 {
        font-size: 18px;
        margin-bottom: 3px;
        white-space: normal;
        line-height: 1.2;
    }

    .college-details h2 {
        font-size: 13px;
        margin-bottom: 2px;
        white-space: normal;
        line-height: 1.2;
    }

    .college-details p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .college-details h1 {
        font-size: 16px;
    }

    .college-details h2 {
        font-size: 12px;
    }
}

.fee-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.fee-btn {
    background-color: #002147;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    /* Hidden initially */
}

.fee-btn:hover {
    transform: scale(1.05);
}

marquee {
    width: 100%;
    margin-left: 0%;
    color: #ffffff;
    font-weight: bold;
}

.fee-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transition: all 0.6s ease;
}

.fee-btn:hover::before {
    left: 120%;
}

.quick-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    /* Hidden initially */
}

.arrow-icon {
    color: var(--accent-yellow);
    font-weight: bold;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-item:hover .arrow-icon {
    opacity: 1;
}

.nav-bar {
    background-color: var(--text-white);
    border-top: 1px solid #ddd;
    border-bottom: 2px solid var(--primary-blue);
    padding: 0 20px;
    z-index: 1000;
    width: 100%;
    position: relative;
    /* Enables z-index stacking over slider content */
    transition: all 0.3s ease;
}


.sticky {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-list>li {
    padding: 15px 15px;
    position: relative;
    opacity: 0;
    /* Hidden initially */
}

.nav-list li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list li a:hover {
    color: var(--accent-yellow);
}

.nav-list li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--accent-yellow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.nav-list li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-list li a::after {
    /* content: '▼'; */
    font-size: 10px;
    margin-left: 2px;
}

/* --- Dropdown Menu --- */
.nav-list li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
    border-top: 4px solid var(--primary-blue);
    border-radius: 0 0 8px 8px;
    text-align: left;
}

.nav-list li:hover>.dropdown-menu,
.nav-list li.active>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Align last few dropdowns to the right to prevent overflow */
.nav-list>li:nth-last-child(-n+3) .dropdown-menu {
    left: auto;
    right: 0;
}

/* Level 2+ Submenus positioning */
.dropdown-menu .dropdown-menu {
    top: -10px;
    left: 100%;
    border-top: none;
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 8px 8px 8px;
}

.nav-list>li:nth-last-child(-n+3) .dropdown-menu .dropdown-menu {
    left: auto;
    right: 100%;
    border-left: none;
    border-right: 4px solid var(--primary-blue);
    border-radius: 8px 0 8px 8px;
}

/* Bridge for hover stability */
.has-dropdown::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    z-index: 1;
}

.dropdown-menu .has-dropdown::after {
    bottom: 0;
    left: 100%;
    width: 15px;
    height: 100%;
    top: 0;
}

/* Sequential Reveal Animation */
.nav-list li:hover .dropdown-menu li,
.nav-list li.active .dropdown-menu li {
    animation: itemReveal 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes itemReveal {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    opacity: 0;
    padding: 0 !important;
    width: 100%;
}

.dropdown-menu li:nth-child(1) {
    animation-delay: 0.05s;
}

.dropdown-menu li:nth-child(2) {
    animation-delay: 0.1s;
}

.dropdown-menu li:nth-child(3) {
    animation-delay: 0.15s;
}

.dropdown-menu li:nth-child(4) {
    animation-delay: 0.2s;
}

.dropdown-menu li:nth-child(5) {
    animation-delay: 0.25s;
}

.dropdown-menu li:nth-child(6) {
    animation-delay: 0.3s;
}

.dropdown-menu li:nth-child(7) {
    animation-delay: 0.35s;
}

.dropdown-menu li:nth-child(8) {
    animation-delay: 0.4s;
}

.dropdown-menu li:nth-child(9) {
    animation-delay: 0.45s;
}

.dropdown-menu li:nth-child(10) {
    animation-delay: 0.5s;
}

.dropdown-menu li:nth-child(11) {
    animation-delay: 0.55s;
}

.dropdown-menu li:nth-child(12) {
    animation-delay: 0.6s;
}

.dropdown-menu li {
    padding: 0 !important;
    width: 100%;
    opacity: 0;
    /* Handled by animation */
}

.dropdown-menu a {
    padding: 12px 20px !important;
    color: #333 !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    text-transform: none !important;
    /* Keep original case or customize */
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary-blue) !important;
    padding-left: 25px !important;
}

.dropdown-menu .fas {
    font-size: 10px;
    opacity: 0.6;
}

.dropdown-menu a::before {
    display: none !important;
    /* No hover underline for dropdown links */
}

/* --- Mega Menu Styles --- */
.mega-menu {
    position: absolute;
    top: 100%;
    left: -360px;
    width: 100vw;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        visibility 0.5s;
    z-index: 999;
    border-top: 5px solid var(--primary-blue);
    pointer-events: none;
    padding: 55px 0;
    font-size: 10px;
}

.has-mega-menu:hover>.mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-container {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-left: 20px;
}

.mega-menu-col {
    border-right: 1px solid rgba(0, 33, 71, 0.1);
    padding-right: 30px;
}

.mega-menu-col:last-child {
    border-right: none;
}

.mega-title {
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-yellow);
    letter-spacing: 0.5px;
}

.mega-title.sub-title {
    margin-top: 10px;
    /* Space between end of previous list and new heading */
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-links li {
    margin-bottom: 0px;
}

.mega-links a {
    color: #333 !important;
    text-decoration: none;
    font-size: 13px !important;
    display: block;
    padding: 8px 12px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mega-links a.link-strong {
    font-weight: 800 !important;
    color: #800000 !important;
    /* Maroon highlight as seen in reference */
}

.mega-links a:hover {
    background: rgba(0, 33, 71, 0.05);
    padding-left: 18px;
    color: var(--accent-yellow) !important;
}

.mega-links a::before {
    display: none !important;
}



/* --- Departments Page Styles --- */
.subjects-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Department List View */
.dept-grid {
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dept-column {
    flex: 1;
    padding: 0 20px;
}

.dept-separator {
    width: 1px;
    background: #ddd;
    margin: 0 20px;
}

.dept-column h2 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 25px;
    font-weight: 700;
}

.dept-link {
    display: block;
    color: #a00000;
    /* Dark Red as per image */
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 1.05em;
    transition: color 0.3s;
}

.dept-link:hover {
    color: #e60000;
    text-decoration: underline;
}

/* Detail View */
.back-btn {
    background: none;
    border: 1px solid #aaa;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.9em;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s;
    margin-right: 20px;
}

.back-btn:hover {
    background: #eee;
    color: #000;
}

.dept-header-row {
    display: flex;
    justify-content: center;
    /* Center content horizontally */
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.dept-title {
    margin: 0;
    text-align: center;
    /* Center text */
    font-size: 1.8em;
    color: #333;
    width: 100%;
    /* Ensure it takes full width for centering */
}

/* Staff Table Specifics (inheriting base table styles but refining) */
/* Staff Table Specifics (inheriting base table styles but refining) */
.staff-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.staff-table th {
    background: #002147;
    /* Dark Blue from image/theme */
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 20px;
    font-size: 0.85em;
    text-align: center;
    /* Center align headers */
    vertical-align: middle;
    border: 1px solid #ccc;
    border-top: none;
    /* Mandatory borders but no top */
    /* Mandatory borders but no top */
}



/* PHOTO */



.staff-table td {
    padding: 15px 12px;
    border: 1px solid #ccc;
    /* Mandatory borders */
    vertical-align: top;
    font-size: 0.9em;
    color: #333;
    line-height: 1.6;
}

.staff-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.staff-table tr:hover {
    background-color: #fafafa;
}

.view-profile-link {
    display: block;
    margin-top: 8px;
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9em;
}

.view-profile-link:hover {
    text-decoration: underline;
}

.staff-photo-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #eee;
    padding: 3px;
    background: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dept-grid {
        flex-direction: column;
        padding: 20px;
    }

    .dept-separator {
        display: none;
    }

    .dept-column {
        margin-bottom: 30px;
    }

    .staff-table th,
    .staff-table td {
        display: block;
        width: 100%;
    }

    .staff-table tr {
        margin-bottom: 15px;
        display: block;
        border: 1px solid #eee;
    }
}

/* Responsive Accordion for Mobile */
@media (max-width: 992px) {
    .mega-menu {
        position: relative !important;
        top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 0 !important;
        display: none !important;
        min-height: auto;
        background: #111 !important;
        box-shadow: none !important;
        border-top: none !important;
    }

    .mega-menu::before {
        display: none;
    }

    .nav-active .has-mega-menu .mega-menu {
        display: block !important;
    }

    .mega-menu-container {
        display: block;
        padding: 20px;
    }

    .mega-menu-col {
        border-right: none;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .mega-title {
        min-height: auto;
        font-size: 17px !important;
        margin-bottom: 15px !important;
        padding-bottom: 8px;
    }
}

/* Slider Styles */
.slider-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    max-height: 500px;
    /* Adjust based on preference */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    /* Match container height */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    /* Fallback */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the area without distortion */
    display: block;
}

.slide.active img {
    animation: kenBurns 6s ease-out forwards;
}

/* Slider Content Styling */
.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    opacity: 0;
}

.slide-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: 2px solid var(--accent-yellow);
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

/* Slider Content Animations */
.slide.active .slide-content h1 {
    animation: brandSlideRight 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.active .slide-content p {
    animation: navItemFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.slide.active .slide-content .btn-primary {
    animation: navItemFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* Info Banner Section */
.info-banner {
    display: flex;
    width: 100%;
    color: var(--text-black);
    text-align: center;
    border-bottom: 5px solid #8B0000;
    /* Dark red border at bottom */
}

.info-col {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.info-col h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Specific Columns */
.timing-col {
    background-color: var(--accent-yellow);
    width: 25%;
}

.timing-details p {
    font-size: 14px;
    margin-bottom: 2px;
}

.quote-col {
    background-color: var(--primary-blue);
    width: 50%;
    color: var(--text-white);
}

.quote-col h3 {
    color: var(--text-white);
}

.quote-content {
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
}

.tamil-quote {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.quote-meaning {
    font-size: 13px;
    display: flex;
    gap: 10px;
    text-align: left;
    align-items: flex-start;
}

.quote-meaning strong {
    white-space: nowrap;
}

.order-col {
    background-color: var(--accent-yellow);
    width: 25%;
}

/* Calendar Icon style */
.calendar-icon {
    width: 60px;
    height: 60px;
    /* adjusted */
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.calendar-top {
    height: 15px;
    background-color: #d9534f;
    /* Red top */
    width: 100%;
}

.calendar-body {
    height: 45px;
    background-color: #fff;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: bold;
}

/* --- ACADEMIC CALENDAR REDESIGN --- */
.calendar-list-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.calendar-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
}

.calendar-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.calendar-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f8f8f8;
}

.calendar-year-overlay {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(43, 110, 255, 0.2);
    /* Subtle blue with opacity */
    letter-spacing: -2px;
    pointer-events: none;
    user-select: none;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.calendar-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.calendar-card-info {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.calendar-card-year {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

/* Hover Effects */
.calendar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.calendar-card:hover .calendar-card-img {
    transform: scale(1.1);
}

.calendar-card:hover .calendar-card-year {
    color: #800000;
    /* College Primary Accent */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

.date-text {
    font-weight: bold;
    font-size: 16px;
}

/* Features Section (Vision, Events, Milestones) */
.features-section {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
    background-color: #fff;
    flex-wrap: wrap;
    /* Responsive wrapping */
}

.feature-col {
    flex: 1;
    min-width: 300px;
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding-bottom: 40px;
    /* Space for More button */
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature-header {
    background-color: #e6e6e6;
    /* Light gray header per image */
    color: #444;
    /* Darker text */
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 3px solid #ccc;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Vision & Mission Column Specifics */
.vision-content {
    padding: 15px;
    text-align: center;
}

.vision-img-placeholder {
    margin-bottom: 15px;
}

.vm-item {
    margin-bottom: 15px;
    text-align: center;
}

.vm-badge {
    display: inline-block;
    padding: 3px 10px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    margin-bottom: 5px;
}

.vision-bg {
    background-color: #ff0055;
    /* Pinkish Red */
}

.mission-bg {
    background-color: #009933;
    /* Green */
}

.vm-item p {
    font-size: 17px;
    line-height: 1.4;
    color: #333;
}

/* Events Column Specifics (Vertical Marquee) */
.events-col {
    position: relative;
}

.marquee-wrapper {
    height: 350px;
    /* Visible height */
    overflow: hidden;
    position: relative;
    margin: 0 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.event-marquee-content {
    animation: scrollUp 10s linear infinite;
    position: absolute;
    width: 100%;
}

@keyframes scrollUp {
    0% {
        top: 100%;
    }

    100% {
        top: -100%;
        /* Adjust depending on content height relative to container */
    }
}

/* Pause on hover */
.marquee-wrapper:hover .event-marquee-content {
    animation-play-state: paused;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    line-height: 1.5;
}

.event-item i {
    color: var(--primary-blue);
    /* Assuming primary-blue exists from previous styles */
    margin-top: 3px;
}

.event-text strong {
    color: #000;
}

.new-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23FFD700" d="M0 0h512v512H0z"/><text x="50%" y="50%" font-family="Arial" font-size="200" fill="red" dy=".3em" text-anchor="middle">NEW</text></svg>');
    /* Simplified placeholder for "NEW" gif or icon  - REPLACING WITH CSS BADGE for simplicity */
    background: none;
    color: red;
    font-weight: bold;
    font-size: 10px;
    border: 1px solid red;
    padding: 1px 3px;
    border-radius: 3px;
    /* blinking effect */
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.archived-news-container {
    text-align: center;
    margin-top: 10px;
}

.archived-btn {
    background-color: #002147;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-top: 100px;
}

/* Milestones Column Specifics */
.milestones-content {
    padding: 15px;
}

.milestone-list {
    list-style: none;
    padding: 0;
}

.milestone-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 17px;
    align-items: center;
}

.year-badge {
    padding: 3px 8px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    border-radius: 3px;
    min-width: 45px;
    text-align: center;
}

.year-badge.red {
    background-color: #ff0000;
}

.year-badge.green {
    background-color: #008000;
}

.year-badge.blue {
    background-color: #0000ff;
}

/* Read More Button */
.more-btn {
    background-color: #002147;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
    position: absolute;
    bottom: 10px;
    right: 15px;
}

/* Gallery & Video Section Specifics */
.gallery-video-section {
    padding-top: 0;
    /* Less top padding as it follows the previous section */
}

/* Students Strength Column */
.strength-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stream-title {
    color: #ffd700;
    /* Yellowish/Gold */
    font-size: 18px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.chart-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 10px;
}

.boy-color {
    background-color: #ff9900;
}

/* Orange */
.girl-color {
    background-color: #ff4500;
}

/* Red-Orange */

.pie-chart-container {
    width: 270px;
    height: 270px;
    margin-bottom: 20px;
}

.pie-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ff9900 0% var(--boy-per, 50%),
            #ff4500 var(--boy-per, 50%) 100%);
}

.strength-stats p {
    font-size: 17px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-stat {
    font-size: 30px;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 5px;
}

/* Gallery Column */
.gallery-content {
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-slider {
    display: flex;
    width: 200%;
    /* 2 images */
    animation: galleryScroll 10s infinite;
}

/* Specific widths for Students Strength, Events Gallery, and Video Corner */
@media (min-width: 992px) {
    .gallery-video-section .strength-col {
        flex: 1;
    }

    .gallery-video-section .gallery-col {
        flex: 3;
    }

    .gallery-video-section .video-col {
        flex: 1;
    }

    marquee {
        display: block;
    }
}


.gallery-main-img {
    width: 50%;
    /* Each image is 50% of the slider (which is 200% wide) -> 100% of container */
    height: 50%;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    padding: 0 2px;
}

@keyframes galleryScroll {
    0% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-50%);
    }

    95% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Video Column */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
}

.video-item {
    position: relative;
    cursor: pointer;
    border: 1px solid #eee;
    padding: 2px;
}

.video-item img,
.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

.video-item.playing .play-overlay {
    display: none;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 30px;
    pointer-events: none;
}

.featured-video {
    margin-top: 10px;
    border: 2px solid #ffffff;
    padding: 5px;
    background-color: #fff;
    position: relative;
}

.video-wrapper {
    position: relative;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
}

.red-arrow-btn {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: red;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #fff;
}

/* Info Grid Section */
.info-grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.grid-item {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    min-height: 200px;
    transition: all 0.3s ease;
}

.grid-item:hover {
    opacity: 0.9;
}

.blue-bg {
    background-color: #002147;
    color: #fff;
}

.yellow-bg {
    background-color: #ffcc00;
    color: #000;
    /* Yellow bg needs dark text */
}

/* Override text color white for yellow bg if design demands white text, 
   but usually yellow background has black text for contrast. 
   Checking image... The image shows black text on yellow. */
.yellow-bg h3,
.yellow-bg .know-more,
.yellow-bg .grid-icon {
    color: #000;
}

.blue-bg h3,
.blue-bg .know-more,
.blue-bg .grid-icon {
    color: #fff;
}


.grid-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.grid-item h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.know-more {
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .info-grid-section {
        grid-template-columns: repeat(2, 1fr);

    }

    marquee {
        display: none;
    }
}

@media (max-width: 576px) {
    .info-grid-section {
        grid-template-columns: 1fr;
    }

    marquee {
        display: none;
    }
}

/* Stats Strip */
.stats-strip {
    background-color: #555;
    /* Dark grey from first image theme */
    color: #fff;
    padding: 40px 20px;
    position: relative;
    text-align: center;
}

.multi-row-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-row {
    width: 100%;
}

.stats-header {
    font-size: 20px;
    color: #ffcc00;
    /* Yellow accent title */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-item h4 {
    font-size: 14px;
    color: #ddd;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: normal;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    display: block;
}

.stats-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 80%;
    margin: 0 auto;
}

/* Scroll Top Button */
.scroll-top-btn {
    width: 40px;
    height: 40px;
    background-color: red;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-flex {
        flex-direction: column;
        align-items: center;
    }

    .scroll-top-btn {
        position: static;
        margin-top: 20px;
        transform: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Recruiters Section */
.recruiters-section {
    padding: 30px 20px;
    background-color: #fff;
    text-align: center;
}

.recruiters-title {
    color: #002147;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.recruiters-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: red;
    margin: 5px auto 0;
}

.recruiters-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.recruiters-track {
    display: inline-block;
    animation: scrollLeft 30s linear infinite;
}

.recruiter-logo {
    display: inline-block;
    margin: 0 20px;
    vertical-align: middle;
}

.recruiter-logo img {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s;
}

.recruiter-logo img:hover {
    filter: none;
    opacity: 1;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* moved 50% because we duplicated items */
}

/* Helpdesk Footer */
.helpdesk-footer {
    background-color: #002147;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    flex-wrap: wrap;
    font-size: 14px;
}

/* Main Footer */
.main-footer {
    background-color: #333;
    /* Dark grey backdrop */
    color: #ccc;
    padding: 50px 0;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-line {
    width: 40px;
    height: 3px;
    background-color: #ffcc00;
    /* Yellow accent */
    margin-bottom: 20px;
}

/* About Column */
.about-col p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
}

.social-icons a {
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: #ffbb00;
}

/* Navigation Column */
.footer-links {
    list-style: none;
    padding: 0;
    column-count: 2;
    /* Two columns of links */
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
    /* Slight movement on hover */
}

/* Contact Column */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    color: #00bfff;
    /* Light blue icon */
    margin-right: 15px;
    margin-top: 5px;
    font-size: 16px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
}

/* Map Column */
.map-container iframe {
    border-radius: 5px;
}

/* Copyright Bar */
.copyright-bar {
    background-color: #222;
    /* Darker black/grey */
    color: #999;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    border-top: 1px solid #444;
}

.brand-text {
    color: #ffcc00;
    /* Yellow */
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-col {
        flex: 0 0 45%;
        /* Two columns on tablets */
    }

}

@media (max-width: 576px) {
    .footer-col {
        flex: 0 0 100%;
        /* Single column on mobile */
    }

    marquee {
        display: block;
    }
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.footer-icon-circle {
    width: 40px;
    height: 40px;
    background-color: #1a4a8d;
    /* Lighter blue circle */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.footer-item span {
    font-weight: bold;
    color: #ffd700;
    /* Yellow for "Helpdesk" text */
    font-size: 16px;
}

.footer-separator {
    width: 1px;
    height: 40px;
    background-color: #ffd700;
}

.footer-label {
    color: #ffd700;
    font-weight: bold;
    margin-right: 5px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.footer-text {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .helpdesk-footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    marquee {
        display: none;
    }

    .footer-separator {
        display: none;
    }

    .footer-item {
        width: 100%;
        justify-content: center;
    }
}

/* --- RESPONSIVE OVERRIDES --- */

@media (max-width: 1200px) {
    .brand-section {
        margin-left: 50px;
        width: 60%;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-bar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-white);
        border-bottom: 2px solid var(--primary-blue);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-bar.nav-active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .nav-list {
        flex-direction: column;
        padding: 0;
    }

    .nav-list li {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
    }

    .nav-list li a {
        justify-content: center;
        font-size: 14px;
        color: var(--primary-blue);
    }

    /* Mobile Dropdown Support */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        min-width: 100% !important;
        background-color: #ffffff !important;
        pointer-events: auto !important;
        padding-left: 20px !important;
        /* Indent sub-items on mobile */
    }

    .nav-list li:hover>.dropdown-menu {
        display: block;
    }

    .has-dropdown::after {
        display: none !important;
        /* Disable bridge on mobile */
    }

    .dropdown-menu a {
        justify-content: center !important;
        background: none !important;
        border-bottom: 1px solid #eee !important;
    }

    .dropdown-menu .dropdown-menu {
        border-left: 2px solid var(--primary-blue) !important;
        padding-left: 15px !important;
    }

    .main-header {
        height: auto;
        flex-direction: column;
        margin-left: 0;
    }

    .slide-content {
        display: none;
    }

    .brand-section {
        width: 100%;
        margin-left: 0;
        padding: 20px;
        justify-content: center;
    }

    .brand-section::before {
        left: -50vw;
        right: -10vw;
        transform: none;
        border-right: none;
        border-bottom: 5px solid var(--accent-yellow);
        animation: brandBgSlideMobile 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .logo-placeholder {
        margin-left: 0;
    }

    .info-section {
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    .marquee-container {
        text-align: center;
        margin-bottom: 15px;
    }

    .quick-links {
        justify-content: center;
        margin-top: 15px;
    }

    .info-banner {
        flex-direction: column;
        border-bottom: none;
    }

    .timing-col,
    .quote-col,
    .order-col {
        width: 100%;
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    }

    .features-section {
        padding: 10px;
    }

    .feature-col {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        padding: 10px;
    }

    marquee {
        display: none;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-list li {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .nav-list li a {
        justify-content: center;
    }

    .stats-flex {
        flex-direction: column;
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-col {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .main-header {
        height: auto;
        margin-left: 0;
    }

    .brand-section {
        padding: 12px 8px;
    }

    .brand-content {
        gap: 8px;
    }

    .college-details h1 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    marquee {
        display: none;
    }

    .college-details h2 {
        font-size: 12px;
        line-height: 1.2;
    }

    .college-details p {
        font-size: 10px;
    }

    .logo-placeholder {
        width: 65px;
        height: 65px;
        min-width: 65px;
        border-radius: 4px;
    }

    .fee-buttons {
        flex-direction: column;
        width: 100%;
    }

    .fee-btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .stat-number {
        font-size: 24px;
    }

    .helpdesk-footer {
        padding: 20px 10px;
    }

    .footer-item {
        padding: 0;
    }

    .footer-link,
    .footer-text {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .brand-section {
        padding: 10px 5px;
    }

    .logo-placeholder {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .college-details h1 {
        font-size: 13px;
    }

    .college-details h2 {
        font-size: 11px;
    }

    .college-details p {
        font-size: 9px;
    }
}

@media (max-width: 320px) {
    .top-bar-right {
        font-size: 10px;
        gap: 8px;
    }

    marquee {
        display: none;
    }

    .top-bar {
        display: flex;
    }

    .main-header {
        height: auto;
        margin-left: 0;
    }

    .brand-section {
        padding: 8px 5px;
        width: 100%;
        margin-left: 0;
    }

    .logo-placeholder {
        width: 55px;
        height: 55px;
        min-width: 55px;
        margin: 0;
        border-radius: 3px;
    }

    .social-icons {
        margin-top: 2px;
    }

    .brand-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 8px;
        max-width: 100%;
    }

    .college-details {
        margin-left: 0;
        text-align: left;
    }

    .college-details h1 {
        font-size: 12px;
        margin-bottom: 1px;
    }

    .college-details h2 {
        font-size: 10px;
        line-height: 1.1;
    }

    .college-details p {
        font-size: 8px;
    }

    .top-bar-left {
        display: none;
    }

    .quick-links {
        flex-direction: row;
        gap: 1px;
        align-items: center;
    }

    .quick-link-item {
        font-size: 11px;
    }

    .menu-toggle {
        margin: 5px auto 0 auto;

    }
}

/* --- Dynamic Element Classes --- */
.content-contents {
    display: contents;
}

.site-logo-img {
    width: 100%;
    border-radius: 5px;
}

.estd-text {
    font-size: 10px;
    margin-top: 2px;
}

.feature-detail-img {
    width: 100%;
    border-radius: 5px;
}

.milestone-margin {
    margin-bottom: 15px;
}

.footer-map-iframe {
    width: 100%;
    height: 150px;
    border: 0;
}

.hide-preloader {
    display: none !important;
}

/* --- Principal Message Page Styles --- */
#main-content .principal-message-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

#main-content .breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

#main-content .breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

#main-content .breadcrumb a:hover {
    color: var(--accent-yellow);
}

#main-content .breadcrumb i {
    font-size: 10px;
    margin: 0 10px;
}

#main-content .principal-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 33, 71, 0.1);
}

#main-content .principal-image-side {
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--primary-blue), #003366);
    align-items: center;
    padding: 50px;
    position: relative;
    flex-direction: column;
    gap: 30px;
}

#main-content .image-wrapper {
    position: relative;
    z-index: 2;
}

#main-content .image-wrapper img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

#main-content .image-border {
    position: absolute;
    top: -15px;
    right: -15px;
    bottom: -15px;
    left: -15px;
    border: 2px solid var(--accent-yellow);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.5;
}

#main-content .principal-text-side {
    flex: 1;
    padding: 60px;
    position: relative;
    background: #fff;
}

#main-content .quote-icon-top {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 40px;
    color: rgba(0, 33, 71, 0.05);
}

#main-content .quote-icon-bottom {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 40px;
    color: rgba(0, 33, 71, 0.05);
}

#main-content .side-title {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

#main-content .side-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

#main-content .message-body {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
}

#main-content .principal-extra-info {
    text-align: center;
    color: white;
    width: 100%;
    margin-top: 20px;
}

.dev {
    background-color: #48611f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-left: 20px;
    transition: background 0.3s;
    vertical-align: middle;
}

.dev:hover {
    background-color: #3a4e18;
}

.copyright-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#main-content .qualifications {
    font-size: 18px;
    color: var(--accent-yellow);
    margin-bottom: 15px;
    font-weight: 600;
}

#main-content .principal-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#main-content .contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

#main-content .contact-link:hover {
    color: var(--accent-yellow);
}

#main-content .contact-link i {
    width: 20px;
    text-align: center;
    color: var(--accent-yellow);
}

#main-content .author-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#main-content .author-name {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 5px;
}

#main-content .author-role {
    color: #777;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Responsive Principal Message */
@media (max-width: 992px) {
    #main-content .principal-card {
        flex-direction: column;
    }

    #main-content .principal-image-side {
        padding: 40px;
    }

    #main-content .principal-text-side {
        padding: 40px;
    }
}

@media (max-width: 600px) {
    #main-content .side-title {
        font-size: 26px;
    }

    #main-content .message-body {
        font-size: 15px;
    }
}

/* --- Login Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: #002147;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.modal-header h3 {
    color: #002147;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-header p {
    color: #777;
    font-size: 14px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #002147;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #002147;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.3);
}

.error-msg {
    display: none;
    background: #ffe6e6;
    color: #d63031;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
    border-left: 4px solid #d63031;
    animation: shake 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* --- Edit Form Styles --- */
.edit-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.edit-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #002147;
}

.edit-header h1 {
    color: #002147;
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.edit-header p {
    color: #666;
    font-size: 16px;
}

.edit-form {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #002147;
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    flex: 1;
}

.form-field.full-width {
    flex: 1 1 100%;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #002147;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-field small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-save,
.btn-cancel {
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-save {
    background: #002147;
    color: #fff;
}

.btn-save:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.3);
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.notification.show {
    display: flex;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Edit Form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .edit-header h1 {
        font-size: 24px;
    }

    .edit-form {
        padding: 25px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-save,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* Image Upload Field Styles */
.form-field input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s;
}

.form-field input[type="file"]:hover {
    border-color: #002147;
    background: #f0f0f0;
}

.field-error {
    color: #d63031;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    display: block;
}

.image-preview {
    margin-top: 15px;
    display: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 5px;
    display: block;
}

/* --- ICC & GPM Page Styles --- */
.icc-container,
.gpm-container,
.staff-container,
.history-container,
.milestone-container,
.emblem-container,
.map-container,
.profile-container,
.roll-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
    margin-left: 0;
}

.icc-section,
.gpm-section,
.staff-section,
.history-section,
.milestone-section,
.emblem-section,
.map-section,
.profile-section,
.roll-section {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-blue);
    margin-left: 100px;
}

@media (max-width: 768px) {

    .icc-section,
    .gpm-section,
    .staff-section,
    .history-section,
    .milestone-section,
    .emblem-section,
    .map-section,
    .profile-section,
    .roll-section {
        padding: 25px 15px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }

    .page-title::after {
        width: 60px;
        height: 3px;
    }

    .icc-container,
    .gpm-container,
    .staff-container,
    .history-container,
    .milestone-container,
    .emblem-container,
    .map-container,
    .profile-container,
    .roll-container {
        max-width: 1200px !important;
        margin: 2px auto !important;
        padding: 0 20p !important;
        animation: fadeIn 1s ease-out !important;
        margin-left: -100px !important;
    }

    .breadcrumb {
        margin-left: 40%;
    }

    #tamil-title {
        font-size: 18px !important;
    }

    #english-title {
        font-size: 18px !important;
    }

    .top-bar-left {
        font-size: 10px !important;
    }
}

.profile-section,
.roll-section {
    padding: 15px 10px;
}


.page-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-wrapper {
        margin-top: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
        padding-bottom: 15px;
        margin-left: 0;
        text-align: center;
    }
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;


    @media (max-width: 768px) {

        .icc-table th,
        .icc-table td,
        .gpm-table th,
        .gpm-table td,
        .admin-staff-table th,
        .admin-staff-table td {
            padding: 12px 12px;
            font-size: 0.85rem;
        }
    }

    @media (max-width: 480px) {

        .icc-table th,
        .icc-table td,
        .gpm-table th,
        .gpm-table td,
        .admin-staff-table th,
        .admin-staff-table td {
            padding: 10px 8px;
            font-size: 0.75rem;
        }
    }

    border-radius: 8px;

}

.icc-table,
.gpm-table,
.admin-staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.icc-table thead tr,
.gpm-table thead tr,
.admin-staff-table thead tr {
    background-color: var(--primary-blue);
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.icc-table th,
.icc-table td,
.gpm-table th,
.gpm-table td,
.admin-staff-table th,
.admin-staff-table td {
    padding: 18px 25px;
    border: 1px solid #888;
    vertical-align: middle;
}

.icc-table tbody tr,
.gpm-table tbody tr,
.admin-staff-table tbody tr {
    transition: all 0.3s ease;
}

.icc-table tbody tr:nth-of-type(even),
.gpm-table tbody tr:nth-of-type(even),
.admin-staff-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.icc-table tbody tr:last-of-type,
.gpm-table tbody tr:last-of-type,
.admin-staff-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-blue);
}

.icc-table tbody tr:hover,
.gpm-table tbody tr:hover,
.admin-staff-table tbody tr:hover {
    background-color: rgba(0, 33, 71, 0.05);
    transform: translateX(5px);
}

.name-cell {
    color: #333;
    line-height: 1.6;
}

.name-cell strong {
    color: #2c7a7b;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.role-cell {
    font-weight: 700;
    color: #2c7a7b;
}

.icc-table tr td:first-child {
    font-weight: bold;
    color: var(--primary-blue);
}

/* Specific color for Chairman/Member */
.icc-table tr td:last-child,
.gpm-table tr td:last-child,
.admin-staff-table tr td:last-child {
    font-weight: bold;
    color: #2c7a7b;
}

.history-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

@media (max-width: 768px) {
    .history-image-wrapper {
        margin-bottom: 20px;
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .history-image-wrapper {
        margin-bottom: 15px;
        max-height: 250px;
    }

    .icc-table th,
    .icc-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 480px) {
    .history-content {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.5;
    }
}

to {
    opacity: 1;
    transform: translateY(0);
}


.history-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.history-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.emblem-motto-wrapper {
    margin-top: 20px;
    text-align: center;
}

.emblem-motto-tamil {
    font-size: 2rem;
    color: #d63384;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.emblem-motto-english {
    font-size: 1.4rem;
    color: #d63384;
    font-weight: 600;
}

.history-image-wrapper:hover img {
    transform: scale(1.02);
}

.history-content {
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
    justify-items: center;
    text-align: justify;
}

.history-para {
    margin-bottom: 25px;
}

.section-subtitle {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: left;
}

/* --- IQAC Pages (Minute-ATR, Distinctiveness, etc.) Premium Design --- */
.academic-year-section {
    margin-bottom: 50px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.year-label {
    color: #800000;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 800;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 1px;
}

.year-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    border-radius: 2px;
}

.minutes-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.minutes-list li {
    width: 100%;
    max-width: 550px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s ease-out forwards;
}

.minute-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    color: #002147;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 6px solid #800000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minute-link::after {
    content: '\f15c';
    /* FontAwesome file icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.minute-link:hover {
    transform: translateX(15px) scale(1.02);
    background: #fff;
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.15);
    color: #800000;
    border-left-width: 10px;
}

.minute-link:hover::after {
    opacity: 1;
    transform: scale(1.2);
    color: #800000;
}

/* Distinctiveness, Best Practices, Satisfaction */
.distinctiveness-container {
    text-align: center;
    padding: 40px 0;
}

.distinctiveness-list {
    list-style-type: none;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 650px;
}

.distinctiveness-item {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInRight 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

#distinctiveness-link {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 18px 30px;
    border-radius: 15px;
    color: #002147;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#distinctiveness-link::before {
    /* FontAwesome hand icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #800000;
    font-size: 1.8rem;
    transition: transform 0.4s ease;
}

#distinctiveness-link:hover {
    transform: scale(1.03) translateX(15px);
    background: #fff;
    border-color: #800000;
    box-shadow: 0 15px 35px rgba(0, 33, 71, 0.18);
    color: #800000;
}

#distinctiveness-link:hover::before {
    transform: scale(1.3) rotate(-10deg);
}

/* Staggered Animations */
.distinctiveness-item:nth-child(1),
.minutes-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.distinctiveness-item:nth-child(2),
.minutes-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.distinctiveness-item:nth-child(3),
.minutes-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.distinctiveness-item:nth-child(4),
.minutes-list li:nth-child(4) {
    animation-delay: 0.4s;
}

.distinctiveness-item:nth-child(5),
.minutes-list li:nth-child(5) {
    animation-delay: 0.5s;
}

.distinctiveness-item:nth-child(6),
.minutes-list li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Syllabus Page Styles */
.syllabus-batch {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.batch-title {
    color: #8B0000;
    /* Dark Red/Brown */
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.syllabus-list {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 25px;
}

.syllabus-list li {
    margin-bottom: 8px;
    color: #0056b3;
}

.syllabus-list li a {
    color: #0056b3;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.syllabus-list li a:hover {
    color: #003366;
    text-decoration: underline;
}

.batch-separator {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

#syllabus-container {
    margin-left: 50px;
}

/* --- GALLERY SYSTEM --- */
.gallery-explorer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    justify-items: center;
    animation: galleryFadeIn 0.5s ease-out;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-folder-item {
    width: 100%;
    max-width: 220px;
    cursor: pointer;
    perspective: 1000px;
}

.folder-background {
    position: relative;
    width: 100%;
    aspect-ratio: 1.2 / 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.folder-graphic {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08));
    transition: transform 0.5s ease, filter 0.5s ease;
}

.folder-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    pointer-events: none;
    z-index: 2;
}

.folder-subtitle {
    font-size: 0.85rem;
    color: #444;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover Effects */
.gallery-folder-item:hover .folder-background {
    transform: scale(1.1);
}

.gallery-folder-item:hover .folder-graphic {
    filter: drop-shadow(0 15px 30px rgba(43, 110, 255, 0.2)) brightness(1.05);
}

.gallery-folder-item:hover .folder-subtitle {
    color: #002147;
    transform: scale(1.05);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-explorer {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .gallery-explorer {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 10px;
    }
}

/* Gallery Detail */
.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    align-self: flex-start;
    padding: 8px 15px;
    border: none;
    background: #002147;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #2b6eff;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
    /* Fixed height for consistent masonry feel */
}

/* Masonry Pattern - Large/Small alternating */
.image-card:nth-child(4n+1) {
    grid-column: span 2;
}

.image-card:nth-child(4n+2) {
    grid-column: span 1;
}

.image-card:nth-child(4n+3) {
    grid-column: span 1;
}

.image-card:nth-child(4n+4) {
    grid-column: span 2;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-card,
    .image-card:nth-child(4n+1),
    .image-card:nth-child(4n+2),
    .image-card:nth-child(4n+3),
    .image-card:nth-child(4n+4) {
        grid-column: span 1;
        height: 250px;
    }
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.gallery-thumb:hover {
    transform: scale(1.1);
}

.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-item-card {
        padding: 12px 15px;
    }
}

.folder-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    pointer-events: none;
    z-index: 2;
}

.folder-subtitle {
    font-size: 0.85rem;
    color: #444;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover Effects */
.gallery-folder-item:hover .folder-background {
    transform: scale(1.1);
}

.gallery-folder-item:hover .folder-graphic {
    filter: drop-shadow(0 15px 30px rgba(43, 110, 255, 0.2)) brightness(1.05);
}

.gallery-folder-item:hover .folder-subtitle {
    color: #002147;
    transform: scale(1.05);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-explorer {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .gallery-explorer {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 10px;
    }
}

/* Gallery Detail */
.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    align-self: flex-start;
    padding: 8px 15px;
    border: none;
    background: #002147;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #2b6eff;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
    /* Fixed height for consistent masonry feel */
}

/* Masonry Pattern - Large/Small alternating */
.image-card:nth-child(4n+1) {
    grid-column: span 2;
}

.image-card:nth-child(4n+2) {
    grid-column: span 1;
}

.image-card:nth-child(4n+3) {
    grid-column: span 1;
}

.image-card:nth-child(4n+4) {
    grid-column: span 2;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-card,
    .image-card:nth-child(4n+1),
    .image-card:nth-child(4n+2),
    .image-card:nth-child(4n+3),
    .image-card:nth-child(4n+4) {
        grid-column: span 1;
        height: 250px;
    }
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.gallery-thumb:hover {
    transform: scale(1.1);
}

.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-item-card {
        padding: 12px 15px;
    }

    .gallery-info h3 {
        font-size: 1rem;
    }
}

/* --- Centralized Page Containers --- */
.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}


@media (max-width: 768px) {
    .hostel-section {
        margin-bottom: 30px;
    }

    .hostel-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-left: 12px;
    }
}

@media (max-width: 480px) {
    .hostel-section h2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 0.8rem;
}

.content-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.page-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

/* --- Hostel Specifics --- */
.hostel-section {
    margin-bottom: 40px;
}

.hostel-section h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-yellow);
    padding-left: 15px;
}

/* --- Alumni Specifics --- */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.alumni-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.alumni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.alumni-img-wrapper {
    height: 320px;
    overflow: hidden;
    background: #eee;
}

.alumni-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-info {
    padding: 20px;
}

.alumni-info h3 {
    margin: 0 0 5px;
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.alumni-period {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.alumni-achievement {
    color: #800000;
    /* Maroon color used in project */
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alumni-details {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

/* --- YRC Specifics --- */
.yrc-intro {
    background: #fff8f8;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #cc0000;
    margin-bottom: 40px;
}

.yrc-section {
    margin-bottom: 30px;
}

.yrc-list {
    list-style: none;
    padding: 0;
}

.yrc-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.yrc-list li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #cc0000;
}

/* --- Shared Table Style --- */
.theme-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.theme-table th {
    background: var(--primary-blue);
    color: #fff;
    padding: 15px;
    font-size: 0.9rem;
}

.theme-table th,
.theme-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    font-size: 0.9rem;
}

.theme-table th:last-child,
.theme-table td:last-child {
    border-right: none;
}

.content-card {
    padding: 25px 15px;
}

.page-title {
    font-size: 1.8rem;
}


/* ===== Admin Login Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #f5f5f5;
    width: 90%;
    max-width: 420px;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.modal-icon {
    background: var(--primary-blue);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 5px;
}

.modal-icon i {
    font-size: 32px;
    color: white;
}

.modal-header h3 {
    margin: 0 0 8px 0;
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.modal-header p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-form .input-wrapper i {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 1rem;
}

.modal-form .input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s;
    outline: none;
}

.modal-form .input-wrapper input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.modal-form .input-wrapper input::placeholder {
    color: #aaa;
}

.error-msg {
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid #c33;
}

.error-msg.show {
    display: block;
}

.login-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 33, 71, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .modal-card {
        width: 95%;
        padding: 30px 25px;
    }

    .modal-header {
        flex-direction: column;
        gap: 15px;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
    }

    .modal-icon i {
        font-size: 24px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }
}

/* --- Authentication & Session Timer Styles --- */
.fixed-email-display {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.fixed-email-display i {
    color: #002147;
    font-size: 1.1rem;
}

.timer-bar {
    background: #002147;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #00d2ff;
    transition: all 0.4s ease;
    position: sticky;
    top: 120px;
    z-index: 900;
    width: 100%;
    box-sizing: border-box;
}

.timer-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.timer-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.timer-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.timer-warning {
    background: #f39c12 !important;
    border-left-color: #fff !important;
}

.timer-critical {
    background: #c0392b !important;
    border-left-color: #fff !important;
    animation: pulse-border 1.5s infinite;
}

.btn-logout-small {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-logout-small:hover {
    background: #fff;
    color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
        box-shadow: 0 0 20px rgba(192, 57, 43, 0.5);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .timer-bar {
        padding: 12px 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .timer-content {
        justify-content: center;
    }

    .timer-value {
        font-size: 1.2rem;
        min-width: 120px;
    }

    .btn-logout-small {
        width: 100%;
        justify-content: center;
    }
}

/* --- Utility & Clean Layout Classes --- */
.text-center {
    text-align: center !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.auth-icon {
    font-size: 3rem;
    color: #002147;
    margin-bottom: 15px;
}

.otp-input,
.passkey-input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 5px;
    padding: 10px;
}

.passkey-input {
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.fallback-link {
    font-size: 0.85rem;
    color: #002147;
    text-decoration: underline;
}

.back-link {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.table-actions-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-add-row {
    width: auto !important;
    padding: 10px 20px !important;
}

/* --- COE Sidebar Styles --- */
.coe-sidebar {
    width: 260px;
    height: 100vh;
    background: #002147;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #00d2ff;
}

.coe-main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    background: #f4f7f6;
}

.coe-main-content.edit-mode-full {
    margin-left: 0;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8fafc;
}

/* Premium Search Bar */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0;
    z-index: 5;
}

.search-input {
    width: 100%;
    padding: 16px 25px 16px 55px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Logout Button & Header Actions */
.header-top-actions {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 100;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

.btn-logout i {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .coe-sidebar {
        width: 70px;
    }

    .sidebar-header h2,
    .sidebar-link-text {
        display: none;
    }

    .sidebar-menu a {
        justify-content: center;
        padding: 15px;
    }

    .sidebar-menu a i {
        font-size: 1.2rem;
    }

    .coe-main-content {
        margin-left: 70px;
    }
}

/* --- Video Corner YouTube Link --- */
.video-item.channel-link .video-wrapper {
    display: block;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-item.channel-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 20px;
}

.video-item.channel-link .play-overlay {
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    font-size: 2rem;
}

.video-item.channel-link .channel-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 33, 71, 0.8);
    color: #fff;
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- HOD Assignments Page Enhancements --- */

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    /* Allow searchable dropdowns to pop out of rows */
    min-height: 480px;
    /* Ensure space for dropdown when only one row exists */
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: #ffffff;
    padding: 15px;
    margin-bottom: 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}


/* Styles consolidated at the top of the file for .attendance-table, .professional-select, and .gmail-style-input */

/* Success Popup Styling */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.success-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-popup-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90%;
    /* Ensure popup fits on mobile */
    width: 400px;
}

.success-popup-overlay.active .success-popup-content {
    transform: scale(1);
}

/* Animated Success Icon */
.success-icon-animate {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #d1fae5;
    /* Light Green */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #059669;
    /* Green 600 */
    font-size: 40px;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.success-popup-content h3 {
    margin: 0 0 10px;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
}

.success-popup-content p {
    color: #64748b;
    margin: 0 0 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-popup-close {
    background: #059669;
    /* Green 600 */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-popup-close:hover {
    background: #047857;
    /* Green 700 */
}

/* Mobile Adjustments for Table */
@media (max-width: 768px) {

    .attendance-table th,
    .attendance-table td {
        padding: 12px 10px;
        /* Reduced padding */
        font-size: 0.85rem;
    }

    .professional-select,
    .gmail-style-input {
        font-size: 0.9rem;
        padding: 8px 10px;
        min-width: 120px;
        /* Further reduce for mobile */
    }

    /* Allow table to scroll horizontally more easily */
    .table-responsive {
        margin-bottom: 20px;
        border: 1px solid #edf2f7;
    }
}

/* Styles consolidated at the top of the file */

/* Success popup overlay styles */
.success-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 12000;
}

.success-popup-overlay.active {
    display: flex;
}

.success-popup-content {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 26px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.2);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(.2, .9, .3, 1), opacity 0.28s ease;
}

.success-popup-overlay.active .success-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.success-icon-animate {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 14px auto;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.18);
}

.success-icon-animate i {
    color: #fff;
    font-size: 36px;
}

/* Responsive: convert attendance table to card list on narrow screens without breaking laptop layout */
@media (max-width: 720px) {
    .attendance-table thead {
        display: none;
    }

    .attendance-table,
    .attendance-table tbody,
    .attendance-table tr,
    .attendance-table td {
        display: block;
        width: 100%;
    }

    .attendance-table tr {
        margin-bottom: 16px;
        border-radius: 12px;
        padding: 12px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(2, 6, 23, 0.04);
        border: 1px solid #eef3f8;
    }

    .attendance-table td {
        padding: 10px 12px;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .attendance-table td::before {
        content: attr(data-label);
        color: #556;
        font-weight: 600;
        margin-right: 12px;
        flex: 0 0 40%;
    }

    .attendance-table td>* {
        flex: 1 1 auto;
    }
}

/* --- Password Toggle Styles --- */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input.auth-input {
    width: 100%;
    padding-right: 40px;
    /* Space for the icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 1rem;
    z-index: 2;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #475569;
}

/* ====================================
   DASHBOARD SPECIFIC STYLES
   ==================================== */

/* Sidebar Logout Button */
.sidebar-logout-item {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.sidebar-logout-btn {
    color: #ff4444 !important;
}

/* Dashboard Welcome Section */
.dashboard-welcome {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.dashboard-welcome h1 {
    color: #002147;
    margin-bottom: 10px;
}

.dashboard-welcome p {
    color: #666;
    font-size: 1.1rem;
}

.dashboard-cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.dashboard-card {
    background: #002147;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-decoration: none;
    width: 200px;
    display: block;
    transition: transform 0.3s;
    text-align: center;
}

.dashboard-card.green {
    background: #28a745;
}

.dashboard-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.dashboard-card h3 {
    margin: 0;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Activity Log Table Container */
.log-table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    overflow-x: auto;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
}

/* ====================================
   EDIT PAGES SPECIFIC STYLES
   ==================================== */

/* Edit Container */
.edit-container-wide {
    max-width: 1200px;
}

/* Table Column Widths */
.col-sno {
    width: 60px;
}

.col-role {
    width: 150px;
}

.col-actions {
    width: 120px;
}

.col-photo {
    width: 120px;
}

.col-slno {
    width: 80px;
}

/* Modal Button Padding */
.modal-btn-padding {
    padding: 8px 15px;
}

/* Colspan Center Alignment */
.text-center {
    text-align: center;
}

/* Display Toggle */
.hidden {
    display: none;
}

/* Flexbox Layouts */
.flex-center-gap {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Image Wrapper */
.image-wrapper-auto {
    width: auto;
    max-width: 250px;
    margin-bottom: 0;
}

/* Text Wrapper */
.text-wrapper-left {
    text-align: left;
    margin-top: 0;
}

/* Color Styles */
.color-pink {
    color: #d63384;
}

/* Padding Styles */
.padding-bottom-20 {
    padding-bottom: 20px;
}

/* Margin Styles */
.margin-left-41 {
    margin: 0px 0px 0px 41px;
}

/* Min Height */
.min-height-1104 {
    min-height: 1104px;
}

/* Padding Variations */
.padding-60-0-0 {
    padding: 60px 0px 0px;
}

.padding-10 {
    padding: 10px 0px 10px 0px;
}

/* Letter Spacing */
.letter-spacing-0 {
    letter-spacing: 0px;
    text-transform: none;
}

/* Back to Dashboard Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.btn-back:hover {
    background-color: #5a6268;
    color: white;
}

/* Admin Login Button Visibility */
.mega-links a[href*="clogin"] {
    display: inline-block !important;
    background-color: #800000;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mega-links a[href*="clogin"]:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff !important;
    padding-left: 15px;
}

/* --- Hostel Page Styles --- */
.hostel-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hostel-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.hostel-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    transition: all 0.3s ease;
}

.hostel-list li:last-child {
    border-bottom: none;
}

.hostel-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.hostel-list li:hover {
    padding-left: 35px;
    color: var(--primary-blue);
}

.hostel-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.hostel-table {
    width: 100%;
    border-collapse: collapse;
}

.hostel-table th,
.hostel-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hostel-table th {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.hostel-table tr:last-child td {
    border-bottom: none;
}

.hostel-table tr:hover td {
    background: #f9f9f9;
}

.hostel-gallery {
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 200px;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {

    .hostel-table th,
    .hostel-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* --- Logout Guard Modal --- */
#logout-guard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.85);
    /* Dark Blue with transparency */
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.logout-guard-modal {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lg-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.logout-guard-modal h3 {
    color: #002147;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.logout-guard-modal p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 5px;
}

.lg-email {
    color: #002147;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 10px 0 25px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    word-break: break-all;
}

.lg-btn {
    width: 100%;
    padding: 15px;
    background: #002147;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.2);
}

.lg-btn:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 33, 71, 0.3);
}

@keyframes modalScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Log Status Styles --- */
.status-in {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-out {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-fail {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.row-failed {
    background-color: #fdfaf0 !important;
}

/* --- CONSOLIDATED CSS FROM ADMIN_LAYOUT.CSS --- */
.edit-container,
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.edit-header,
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.edit-header h1,
.dashboard-header h1 {
    color: #002147;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.edit-header p,
.dashboard-header p {
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.dash-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid #002147;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dash-card i {
    font-size: 3rem;
    color: #002147;
    margin-bottom: 20px;
}

.dash-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #002147;
}

.admin-table-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.icc-table,
.gpm-table,
.staff-table {
    width: 100%;
    border-collapse: collapse;
}

.icc-table th,
.icc-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.icc-table th {
    background: #f8f9fa;
    color: #002147;
}

.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.admin-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.btn-add,
.btn-save,
.btn-edit,
.btn-delete,
.btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add {
    background: #002147;
    color: white;
}

.btn-save {
    background: #28a745;
    color: white;
}

.btn-edit {
    background: none;
    color: #ffc107;
    font-size: 1.2rem;
    padding: 5px;
}

.btn-delete {
    background: none;
    color: #dc3545;
    font-size: 1.2rem;
    padding: 5px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    background: #28a745;
    display: none;
    z-index: 12000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    display: block;
}

/* --- CONSOLIDATED CSS FROM DAY_ORDER.CSS --- */
.day-order-calendar-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    color: #002147;
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: #2196F3;
    margin: 0 auto;
    border-radius: 2px;
}

.day-order-table-public {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
}

.day-order-table-public th {
    background: #002147;
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: center;
}

.day-order-table-public td {
    border-bottom: 1px solid #eee;
    padding: 12px 15px;
    text-align: center;
    font-size: 1.05rem;
}

.day-order-table-public tr:last-child td {
    border-bottom: none;
}

.day-order-table-public tr:nth-child(even) {
    background-color: #f8faff;
}

.day-order-table-public tr:hover {
    background-color: #f1f4f9;
}

.day-order-leave {
    background-color: #fff4e5 !important;
}

.day-order-leave td {
    color: #a0522d;
    font-style: italic;
}

.current-day-highlight {
    background-color: #e3f2fd !important;
    border-left: 5px solid #2196F3;
    font-weight: bold;
}

.current-day-highlight td {
    color: #002147;
}

.calendar-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.calendar-footer i {
    color: #2196F3;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .day-order-calendar-section {
        padding: 20px;
        margin: 20px;
    }

    .calendar-header h2 {
        font-size: 1.5rem;
    }

    .day-order-table-public th,
    .day-order-table-public td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
}

/* --- CONSOLIDATED CSS FROM PROGRAMME.CSS --- */
.programme-container {
    padding: 30px 5%;
    background-color: #f9f9f9;
}

.prog-category-section {
    margin-bottom: 50px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.prog-title {
    color: #002147;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.prog-subtitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    letter-spacing: 1px;
}

.cream-theme .prog-table th {
    background-color: #002147 !important;
    color: #fff !important;
    font-weight: 700;
}

.cream-theme .prog-table .sub-header-row th {
    background-color: #fcfcfc !important;
    color: #333 !important;
}

.cream-theme .category-row {
    background-color: #ffff00 !important;
    color: #333 !important;
    text-transform: none;
    font-size: 14px;
    font-weight: bold;
}

.ug-theme .prog-table thead tr th {
    background-color: #002147 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
}

.ug-theme .category-row {
    background-color: #ffff00 !important;
    font-weight: bold;
    text-align: left !important;
    color: #000;
}

.prog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}

.table-main-title th {
    background-color: #fdfde0 !important;
    color: #333 !important;
    font-size: 18px !important;
    padding: 12px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #ccc !important;
}

.prog-table th,
.prog-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: center;
}

.category-row td {
    padding: 10px 15px !important;
}

.prog-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.name-cell {
    text-align: left !important;
    font-weight: 500;
}

.total-row {
    background-color: #fff;
    font-weight: bold;
}

.total-label {
    text-align: right;
    padding-right: 20px !important;
}

.check-icon {
    color: #28a745;
    font-size: 16px;
}

@media (max-width: 768px) {
    .prog-table {
        min-width: 800px;
    }
}

/* --- CONSOLIDATED CSS FROM STATUTORY_BODY.CSS --- */
.page-subtitle {
    text-align: center;
    color: #1a5490;
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.statutory-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border: 2px solid #999;
    border-top: none;
}

.statutory-table thead {
    background: linear-gradient(135deg, #002147 0%, #002147 100%);
    color: #fff;
}

.statutory-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
}

.statutory-table tbody tr {
    transition: background-color 0.3s ease;
}

.statutory-table tbody tr:hover {
    background-color: #f8f9fa;
}

.statutory-table tbody td {
    padding: 15px 20px;
    vertical-align: top;
    line-height: 1.6;
    color: #333;
    border: 1px solid #bbb;
}

.statutory-table tbody td:first-child {
    font-weight: 600;
    color: #800000;
    text-align: center;
    width: 80px;
}

.statutory-table tbody td strong {
    color: #1a5490;
    font-weight: 700;
}

.finance-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #800000;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a5490;
}

.finance-member-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.finance-member-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #1a5490;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finance-member-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.finance-member-number {
    display: inline-block;
    background: #1a5490;
    color: #fff;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
    vertical-align: middle;
}

.finance-member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a5490;
    margin-bottom: 5px;
}

.finance-member-role {
    font-size: 0.95rem;
    color: #800000;
    font-weight: 600;
    margin-bottom: 3px;
}

.finance-member-designation {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .statutory-table {
        font-size: 0.9rem;
    }

    .statutory-table thead th,
    .statutory-table tbody td {
        padding: 12px 15px;
    }

    .statutory-table tbody td:first-child {
        width: 60px;
    }

    .finance-member-item {
        padding: 15px;
    }

    .finance-member-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.9rem;
    }

    .finance-member-name {
        font-size: 1rem;
    }

    .finance-member-role {
        font-size: 0.85rem;
    }

    .finance-member-designation {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .statutory-table {
        display: block;
        overflow-x: auto;
    }

    .statutory-table thead {
        display: none;
    }

    .statutory-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }

    .statutory-table tbody td {
        display: block;
        text-align: left;
        padding: 8px 10px;
        border: none;
    }

    .statutory-table tbody td:first-child {
        background: #1a5490;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        margin-bottom: 10px;
        width: 100%;
    }

    .statutory-table tbody td:before {
        content: attr(data-label);
        font-weight: 700;
        color: #800000;
        display: block;
        margin-bottom: 5px;
    }

    .statutory-table tbody td:first-child:before {
        display: none;
    }
}

/* Password Visibility Toggle */
.password-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-wrapper .gmail-style-input {
    padding-right: 35px !important;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    z-index: 10;
    padding: 5px;
}

.password-toggle-icon:hover {
    color: var(--primary-blue);
}

/* Logout Guard Popup Styles */
#logout-guard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: lgFadeIn 0.3s ease;
}

.logout-guard-modal {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: lgScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lg-icon {
    font-size: 4rem;
    color: #ff4757;
    margin-bottom: 20px;
}

.lg-icon i {
    filter: drop-shadow(0 5px 15px rgba(255, 71, 87, 0.3));
}

.logout-guard-modal h3 {
    color: #2f3542;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.logout-guard-modal p {
    color: #57606f;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lg-email {
    display: inline-block;
    background: #f1f2f6;
    padding: 8px 15px;
    border-radius: 30px;
    color: #2f3542;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #dfe4ea;
}

.lg-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lg-btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    flex: 1;
}

.lg-btn-logout {
    background: #ff4757 !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.lg-btn-logout:hover {
    background: #ff6b81 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
}

.lg-btn-stay {
    background: #f1f2f6 !important;
    color: #2f3542 !important;
}

.lg-btn-stay:hover {
    background: #dfe4ea !important;
    transform: translateY(-2px);
}

@keyframes lgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lgScaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Activity Log Enhancements */
.log-table th:nth-child(8),
.log-table td:nth-child(8) {
    max-width: 140px;
    width: 140px;
}

.password-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.password-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #666;
}

.copy-btn {
    background: none;
    border: none;
    color: #002147;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(0, 33, 71, 0.1);
    color: #003366;
}