/* UPDATES PAGE STYLES - MATCHING ACADEMICS PAGE */
:root {
    --primary-purple: #4b0082;
    --secondary-purple: #6a0dad;
    --light-purple: #e6e6fa;
    --accent: #ffd700;
    --dark-gray: #2d3e50;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --gold: #ffd700;
    --logout-color: #dc3545;
}

/* UNIVERSITY HEADER - Exact same as Academics */
.university-header {
    background: 
        linear-gradient(135deg, rgba(75, 0, 130, 0.85) 0%, rgba(106, 13, 173, 0.85) 100%),
        url('../images/Building.jpg') center/cover no-repeat;
    color: white;
    padding: 1rem 0;
    border-bottom: 5px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.university-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.university-logo,
.college-logo {
    height: 70px;
    width: 70px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    background-color: white;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
}

.college-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    line-height: 1.2;
    word-wrap: break-word;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.college-subtitle {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

/* Enhanced Auth Icon Styles */
.header-auth-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.auth-icon-link {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    border: none;
    outline: none;
}

.auth-icon-link:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#logout-icon-link {
    color: white !important;
    background-color: rgba(106, 13, 173, 0.2) !important;
}

#logout-icon-link:hover {
    background-color: rgba(106, 13, 173, 0.3) !important;
    color: var(--accent) !important;
}

/* ========================================
   NAVIGATION BAR - UPDATED TO MATCH FORMS PAGE SIZE
   ======================================== */

.navbar-main {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-top: 1px solid var(--light-purple);
    margin-bottom: 1rem;
}

.navbar-main .navbar-collapse {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-main .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

/* UPDATED: Navigation links - larger size to match forms page */
.navbar-main .nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 1.05rem;
    margin: 0 0.3rem;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary-purple);
    background-color: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

/* Enhanced Dropdown Hover Styles - SAME AS ACADEMICS */
@media (min-width: 992px) {
    .navbar-main .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-main .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .navbar-main .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Dropdown Styles - SAME AS ACADEMICS */
.navbar-main .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 220px;
    border: 2px solid var(--light-purple);
    margin-top: 0.5rem;
}

.navbar-main .dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.1rem 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.navbar-main .dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--primary-purple);
}

.navbar-main .dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--primary-purple);
    transform: translateX(5px);
}

.navbar-main .dropdown-item:active {
    background-color: var(--primary-purple);
    color: white;
}

.navbar-main .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-main .show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ========================================
   CONSISTENT BLOCKED NAVIGATION STYLING
   ======================================== */

/* Blocked navigation items - consistent styling across all dropdowns */
.navbar-main .nav-link.blocked-nav-item,
.navbar-main .dropdown-item.blocked-nav-item {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    position: relative;
    background-color: transparent !important;
    color: var(--dark-gray) !important;
}

.navbar-main .nav-link.blocked-nav-item:hover,
.navbar-main .dropdown-item.blocked-nav-item:hover {
    opacity: 0.4 !important;
    transform: none !important;
    background-color: transparent !important;
    color: var(--dark-gray) !important;
    box-shadow: none !important;
}

/* Remove hover effects for blocked items */
.navbar-main .dropdown-item.blocked-nav-item:hover {
    transform: translateX(0) !important;
    background-color: transparent !important;
}

/* Ensure the cursor is consistent */
.blocked-nav-item {
    cursor: not-allowed !important;
}

/* Updates Section */
.updates-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

/* Content Sections - SECTION SWITCHING */
.content-section {
    display: none;
}

.content-section.active-section {
    display: block;
}

.content-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
}

.section-header h3 {
    color: var(--primary-purple);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
}

.section-header h3 i {
    color: var(--primary-purple);
    margin-right: 1rem;
}

/* Content Controls */
.content-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.items-count {
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 0.95rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   VIEW BUTTONS STYLING - LIGHT GRAY DEFAULT, PURPLE ON HOVER/ACTIVE
   ======================================== */

.view-btn {
    /* DEFAULT STATE: LIGHT GRAY */
    background: #f8f9fa !important;
    color: var(--medium-gray) !important;
    border: 2px solid #dee2e6 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* HOVER STATE: BECOMES PURPLE */
.view-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%) !important;
    color: white !important;
    border-color: var(--primary-purple) !important;
    transform: translateY(-2px);
}

/* ACTIVE/CLICKED STATE: STAY PURPLE */
.view-btn.active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%) !important;
    color: white !important;
    border-color: var(--primary-purple) !important;
}

/* ========================================
   ANNOUNCEMENTS STYLES - WITH UPDATED BUTTONS
   ======================================== */

.announcements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.announcement-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
}

.announcement-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.announcement-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.announcement-body {
    padding: 1rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-content-container {
    flex: 1;
}

.announcement-content {
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Image Gallery Styles */
.announcement-images-gallery,
.achievement-images-gallery,
.event-images-gallery {
    margin: 1rem 0;
}

.images-gallery,
.achievement-gallery,
.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gallery-image,
.achievement-gallery-image,
.event-gallery-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.gallery-image:hover,
.achievement-gallery-image:hover,
.event-gallery-image:hover {
    transform: scale(1.05);
}

.gallery-image img,
.achievement-gallery-image img,
.event-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-count-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.image-caption {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

/* PDF Section in Announcements - SAME STYLING AS ACADEMICS */
.announcement-pdf {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin-top: auto;
}

/* Button Group for Side by Side Buttons - SAME AS ACADEMICS */
.button-group-tapad {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* FIXED: Buttons start as LIGHT GRAY, become PURPLE on hover/active - SAME AS ACADEMICS */
.btn-view-pdf, .btn-download-pdf {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
    flex: 0 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    /* DEFAULT STATE: LIGHT GRAY */
    background: #f8f9fa;
    color: var(--medium-gray);
    border: 2px solid #dee2e6;
}

/* HOVER STATE: BECOMES PURPLE - SAME AS ACADEMICS */
.btn-view-pdf:hover:not(:disabled), 
.btn-download-pdf:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
    border-color: var(--primary-purple);
}

/* ACTIVE/CLICKED STATE: STAY PURPLE - SAME AS ACADEMICS */
.btn-view-pdf:active:not(:disabled),
.btn-download-pdf:active:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-purple) 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(75, 0, 130, 0.4);
}

/* ========================================
   READ MORE BUTTON STYLING - LIGHT GRAY TO PURPLE
   ======================================== */

.read-more-section {
    text-align: center;
    margin-top: 1rem;
}

.btn-read-more {
    /* DEFAULT STATE: LIGHT GRAY */
    background: #f8f9fa !important;
    color: var(--medium-gray) !important;
    border: 2px solid #dee2e6 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    min-width: 140px !important;
}

/* HOVER STATE: BECOMES PURPLE */
.btn-read-more:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3) !important;
    border-color: var(--primary-purple) !important;
}

/* ACTIVE/CLICKED STATE: STAY PURPLE */
.btn-read-more:active:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-purple) 100%) !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(75, 0, 130, 0.4) !important;
}

/* When expanded (Show Less state) - back to light gray */
.btn-read-more.expanded {
    background: #f8f9fa !important;
    color: var(--medium-gray) !important;
    border: 2px solid #dee2e6 !important;
}

/* Show Less button hover state */
.btn-read-more.expanded:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%) !important;
    color: white !important;
    border-color: var(--primary-purple) !important;
}

/* ========================================
   EVENTS & ACHIEVEMENTS STYLES
   ======================================== */

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.event-title {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.event-details {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.event-details i {
    color: var(--secondary-purple);
    width: 20px;
}

.event-description-container {
    flex: 1;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Achievement items within Events & Achievements section */
.achievement-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.achievement-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.achievement-title {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.achievement-details {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.achievement-details strong {
    color: var(--primary-purple);
}

.achievement-description-container {
    flex: 1;
}

.achievement-description {
    color: #666;
    line-height: 1.6;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* ========================================
   DEAN'S LIST STYLES - ACADEMIC YEAR ONLY
   ======================================== */

/* Academic Year Filter Only (No Semester Filter) */
.academic-year-filter {
    margin-bottom: 1.5rem;
}

/* Dean's List extra filters (Program + Year Level) */
.deanslist-filters {
    margin-bottom: 1.5rem;
}

.deanslist-filters-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.filter-group-dropdown {
    text-align: center;
}

.filter-group-dropdown .filter-label {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.filter-select {
    min-width: 170px;
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-weight: 500;
    color: var(--primary-purple);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.filter-select:focus {
    border-color: var(--secondary-purple);
    box-shadow: 0 0 0 0.2rem rgba(106, 13, 173, 0.2);
    outline: none;
}

.academic-year-select-wrapper {
    display: inline-block;
}

.academic-year-select-wrapper .form-label {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.academic-year-select {
    min-width: 280px;
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 500;
    color: var(--primary-purple);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.academic-year-select:focus {
    border-color: var(--secondary-purple);
    box-shadow: 0 0 0 0.2rem rgba(106, 13, 173, 0.25);
    outline: none;
}

.academic-year-select:hover {
    border-color: var(--secondary-purple);
    background-color: var(--light-purple);
}

/* Dean's List Header */
.deanslist-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-purple) 0%, #f0f0f5 100%);
    border-radius: 15px;
    border: 2px solid var(--primary-purple);
}

.deanslist-header h4 {
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
}

.deanslist-header .text-muted {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

/* Stats Summary - REMOVED */
.stats-summary {
    display: none;
}

/* Program Sections */
.program-section {
    margin-bottom: 2.5rem;
}

.program-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.program-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.program-header .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    background: var(--gold) !important;
    color: #000 !important;
}

/* Achievers Grid */
.achievers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e9ecef;
    border-top: none;
}

/* Achiever Cards */
.achiever-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.achiever-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ALL HONORS SAME SILVER BORDER */
.achiever-card.summa,
.achiever-card.magna,
.achiever-card.cum-laude {
    border-color: #c0c0c0;
}

.achiever-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.achiever-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid var(--light-purple);
}

.achiever-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achiever-info {
    flex: 1;
}

.achiever-name {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.achiever-year {
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.achiever-gwa {
    background: var(--light-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-purple);
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.achiever-honors {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.honors-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* ALL HONORS SAME SILVER COLOR */
.honors-badge.summa,
.honors-badge.magna,
.honors-badge.cum-laude {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%) !important;
    color: #000 !important;
}

.achiever-achievements {
    padding: 1rem 1.5rem;
}

.achiever-achievements h6 {
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.achiever-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achiever-achievements li {
    padding: 0.3rem 0;
    color: var(--dark-gray);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1rem;
    font-family: 'Inter', sans-serif;
}

.achiever-achievements li::before {
    content: '▸';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Congratulations Message */
.congratulations-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--light-purple) 0%, #f0f0f5 100%);
    border-radius: 15px;
    margin-top: 2rem;
    border: 2px dashed var(--primary-purple);
}

.congratulations-message i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.congratulations-message h5 {
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.congratulations-message p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px dashed #bdc3c7;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-family: 'Poppins', sans-serif;
}

.empty-state p {
    color: #7f8c8d;
    font-family: 'Inter', sans-serif;
}

/* Image Modal Navigation */
.image-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#modalImage {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(75, 0, 130, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-nav-btn:hover {
    background: rgba(75, 0, 130, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* ========================================
   BACK TO TOP BUTTON - SAME AS FORMS PAGE
   ======================================== */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:hover {
    background: var(--accent);
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FLOATING RETURN TO DASHBOARD BUTTON - SAME AS FORMS PAGE
   ======================================== */

.floating-return-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-100%);
}

.floating-return-btn.show {
    opacity: 1;
    transform: translateX(0);
}

.floating-return-btn:hover {
    transform: translateY(-3px) translateX(0);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
    color: white;
    text-decoration: none;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   FOOTER - EXACT SAME AS ACADEMICS PAGE
   ======================================== */

.main-footer {
    background: 
        linear-gradient(135deg, rgba(75, 0, 130, 0.9) 0%, rgba(106, 13, 173, 0.9) 100%),
        url('../images/Building.jpg') center/cover no-repeat;
    color: white;
    padding: 1rem 0 0.5rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.footer-section {
    padding: 0.8rem;
    position: relative;
    z-index: 2;
}

/* FIXED FOOTER ALIGNMENT - COMPLETE SOLUTION */
.footer-content-wrapper-left {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.footer-logo-text-tapad {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    text-align: left;
    width: 100%;
    max-width: 100%;
}

.footer-logo {
    height: 50px;
    width: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    flex-shrink: 0;
    background-color: white;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}

.footer-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* FIXED: University name - proper alignment */
.footer-university-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: normal;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
}

/* FIXED: Core values - proper alignment */
.core-values-footer {
    font-size: 0.75rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.4;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.value-item {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    font-size: 0.65rem;
    line-height: 1.2;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.value-separator {
    margin: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.65rem;
    display: inline-block;
}

/* UPDATED FOOTER STYLES - Contact on left, Follow Us moved slightly to the left */
.footer-contact-social-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding-left: 0;
}

.contact-info-left {
    text-align: left;
    flex: 0 1 auto;
}

.social-info-left {
    text-align: right;
    flex: 0 1 auto;
    margin-left: 0;
    margin-right: 2rem;
}

.contact-info-left {
    min-width: 200px;
}

.social-info-left {
    min-width: 150px;
}

.contact-info-left .contact-title {
    text-align: left;
    justify-content: flex-start;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.social-info-left .social-title {
    text-align: right;
    justify-content: flex-end;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.contact-info-left .contact-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.social-info-left .social-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.contact-info-left .contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.6rem;
    gap: 6px;
    transition: transform 0.3s ease;
    padding: 0.2rem;
    border-radius: 6px;
}

.contact-info-left .contact-item:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-info-left .contact-item i {
    color: var(--accent);
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.contact-info-left .contact-item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.social-info-left .social-links {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.social-link {
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #1877f2;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    text-align: center;
}

.main-footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0 0.8rem;
    opacity: 0.5;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .college-title {
        font-size: 1.6rem;
    }
    
    .navbar-main .nav-link {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-university-name {
        font-size: 0.8rem;
    }
    
    .university-logo,
    .college-logo {
        height: 60px;
        width: 60px;
    }
}

@media (max-width: 992px) {
    .navbar-main .nav-link {
        padding: 0.6rem 1.2rem;
        margin: 0.1rem 0;
        font-size: 0.95rem;
    }
    
    .college-title {
        font-size: 1.4rem;
    }
    
    .college-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-section {
        margin-bottom: 1.2rem;
    }
    
    .university-logo,
    .college-logo {
        height: 55px;
        width: 55px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .content-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .announcements-container,
    .events-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    /* Responsive styles for floating button */
    .floating-return-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* MOBILE RESPONSIVE - UPDATED DROPDOWN POSITIONING */
@media (max-width: 768px) {
    .updates-section {
        padding: 2rem 0;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
    }
    
    .university-logo,
    .college-logo {
        height: 50px;
        width: 50px;
    }
    
    .college-title {
        font-size: 1.1rem;
        text-align: center;
        margin-top: 0.8rem;
    }
    
    .college-subtitle {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .announcement-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .button-group-tapad {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-view-pdf, .btn-download-pdf, .btn-read-more {
        min-width: 120px;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .main-footer {
        padding: 1rem 0 0.5rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
    
    /* Mobile responsiveness for dropdowns - UPDATED FOR LEFT ALIGNMENT */
    .navbar-main .navbar-nav {
        gap: 0.3rem;
        width: 100%;
        text-align: left;
    }
    
    .navbar-main .nav-link {
        padding: 0.6rem 1rem;
        margin: 0.1rem 0;
        text-align: left;
        font-size: 0.95rem;
        width: 100%;
    }
    
    /* DROPDOWN MENU POSITION FIX - APPEAR ON LEFT SIDE */
    .navbar-main .dropdown-menu {
        position: static !important;
        float: none !important;
        box-shadow: none;
        border: none;
        padding-left: 2rem;
        background-color: rgba(230, 230, 250, 0.2);
        min-width: auto;
        width: 100%;
        margin-top: 0.5rem;
        transform: none !important;
    }
    
    .navbar-main .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        text-align: left;
        width: 100%;
    }
    
    /* Ensure dropdown toggle aligns left */
    .navbar-main .dropdown-toggle {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-main .dropdown-toggle::after {
        margin-left: auto;
    }
    
    /* Remove any transform that might center the dropdown */
    .navbar-main .dropdown-menu[data-bs-popper] {
        left: 0;
        right: auto;
        margin-top: 0;
    }

    .header-auth-icon {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    /* Footer Alignment Fixes for Mobile */
    .footer-content-wrapper-left {
        align-items: center; 
        gap: 0.1rem;
    }
    
    .footer-logo-text-tapad {
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: normal; 
        margin-bottom: 0;
        gap: 0.1rem; 
    }
    
    .footer-text-group {
        display: block; 
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 0.5rem;
    }
    
    .footer-university-name {
        text-align: center;
        white-space: normal;
        max-width: 250px; 
        margin-top: 0;
        display: block; 
        font-size: 0.7rem; 
    }
    
    .core-values-footer {
        display: flex; 
        justify-content: center;
        text-align: center;
        margin-top: 0.5rem; 
        margin-left: 0rem; 
        flex-wrap: wrap; 
        gap: 0.3rem;
    }
    
    .value-item, .value-separator {
        font-size: 0.6rem;
        line-height: 1.1;
    }
    
    /* Responsive styles for floating button */
    .floating-return-btn {
        bottom: 15px;
        left: 15px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .floating-return-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .content-card {
        padding: 1.5rem 1rem;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
    }
    
    .university-logo,
    .college-logo {
        height: 40px;
        width: 40px;
    }
    
    .college-title {
        font-size: 0.9rem;
    }
    
    .college-subtitle {
        font-size: 0.7rem;
    }
    
    .button-group-tapad {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .btn-view-pdf, .btn-download-pdf, .btn-read-more {
        min-width: 110px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .main-footer {
        padding: 0.8rem 0 0.3rem;
    }
    
    .contact-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
    
    .footer-logo {
        height: 35px;
        width: 35px;
    }
    
    .footer-university-name {
        font-size: 0.6rem;
        max-width: 150px;
    }
    
    .core-values-footer {
        font-size: 0.5rem;
        margin-top: 0.5rem; 
    }
    
    .value-item {
        font-size: 0.48rem;
        padding: 0.04rem 0.15rem;
        margin: 0.01rem;
        line-height: 1.1;
    }
    
    .value-separator {
        font-size: 0.48rem;
    }
    
    .contact-title, .social-title {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 2px;
    }
    
    .copyright {
        font-size: 0.6rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    /* Ensure dropdown items stay left-aligned on extra small screens */
    .navbar-main .dropdown-menu {
        padding-left: 1.5rem;
    }
    
    .navbar-main .dropdown-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .college-title {
        font-size: 0.8rem;
    }
    
    .college-subtitle {
        font-size: 0.65rem;
    }
    
    .button-group-tapad {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .btn-view-pdf, .btn-download-pdf, .btn-read-more {
        min-width: 100px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .footer-logo {
        height: 30px;
        width: 30px;
    }
    
    .footer-university-name {
        font-size: 0.55rem;
        max-width: 120px;
    }
    
    .core-values-footer {
        font-size: 0.45rem;
        margin-top: 0.6rem; 
    }
    
    .value-item {
        font-size: 0.42rem;
        padding: 0.03rem 0.1rem;
        line-height: 1.1;
    }

    .value-separator {
        font-size: 0.42rem;
    }
}


/* Chatbot Notification Badge */
.chatbot-toggle .chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
