/* ============================================
   S.R.T. COLLEGE, DHAMRI - MAIN STYLESHEET
   PROFESSIONAL SAFFRON & GREEN THEME
   UPDATED VERSION 5.0 - NAAC COMPLIANT
   - Increased section padding (0.5 inch = 48px each side)
   - Slider height increased by 0.4 inch (~40px)
   - News blink animation for 10 days
   - Print-friendly design for NAAC
   ============================================ */

/* ============================================
   1. CSS RESET & ROOT VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #a80348;
    --secondary: #10b981;
    --accent: #10b981;
    --dark: #1f2937;
    --light: #fff5e6;
    --saffron: #fff5e6;
    --success: #06b6d4;
    --danger: #ef4444;
    --purple: #a855f7;
    --pink: #ec4899;
    --orange: #fb923c;
    --teal: #14b8a6;
    --deep-green: #0f5132;
    --red-accent: #df3419;
    --heading-pink: #ff2961;
    /* New padding variable for 0.5 inch increase on each side */
    --section-padding-x: 48px; /* 0.5 inch = approximately 48px */
}

/* ============================================
   2. BODY & GLOBAL STYLES - NAAC COMPLIANT
   ============================================ */
/* ============================================
   2. BODY & GLOBAL STYLES - OPTION 2 (CREAM/ROYAL)
   ============================================ */
body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    
    /* BACKGROUND SETTINGS FOR 'SOBER & LOVELY' LOOK */
    /* 1. Base Color: Soft Cream (Saffron ka sabse halka roop) */
    background-color: #FEFCF5; 
    
    /* 2. Gradient: Upar Cream, Neeche halka sa Warm White (Eye soothing) */
    background-image: linear-gradient(180deg, #FEFCF5 0%, #FFF9F0 100%);
    
    background-attachment: fixed;
    
    /* Text Color: Jet Black nahi, balki Dark Charcoal (Padhne me aasan) */
    color: #1a1a1a;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. IMAGE SLIDER - HEIGHT INCREASED BY 0.4 INCH
   ============================================ */
.slider-wrapper {
    margin: 4.445px auto 30px auto;
    width: 93%;
    max-width: 1600px;
    position: relative;
}

.slider {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(168, 3, 72, 0.3);
    position: relative;
    height: 650px; /* Increased from 600px by ~40px (0.4 inch) */
    border: 2px solid var(--deep-green);
}

.slides {
    display: flex;
    height: 100%;
    /* Animation removed - JS handles sliding */
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img,
.slide picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 81, 50, 0.7);
    color: white;
    border: 3px solid var(--deep-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 24px;
}

.slider-nav:hover {
    background: rgba(223, 52, 25, 0.9);
    border-color: var(--red-accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

@keyframes slideAnim {
    0%, 16% {
        transform: translateX(0);
    }
    20%, 36% {
        transform: translateX(-100%);
    }
    40%, 56% {
        transform: translateX(-200%);
    }
    60%, 76% {
        transform: translateX(-300%);
    }
    80%, 100% {
        transform: translateX(-400%);
    }
}

/* ============================================
   4. CONTAINER - UNIFIED WIDTH (96%)
   ============================================ */
.container {
    width: 93%;
    max-width: 1600px;
    margin: 30px auto;
}

/* ============================================
   5. PRINCIPAL & NEWS SECTION - UNIFIED WIDTH
   ============================================ */
.principal-news-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    width: 93%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest News Accordion */
.latest-news-accordion {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 3px solid var(--deep-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: linear-gradient(135deg, #fff5e6, #ffe4cc);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--deep-green);
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--deep-green), #0a3d26);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--red-accent), #b82a15);
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
    padding: 0;
}

.accordion-content.active {
    max-height: 500px;
    overflow-y: auto;
}

.news-accordion-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(15, 81, 50, 0.1);
    background: #fff;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}

.news-accordion-item:last-child {
    border-bottom: none;
}

.news-accordion-item:hover {
    background: #f8f9fa;
    border-left-color: var(--deep-green);
    transform: translateX(2px);
}

.news-date {
    font-size: 11px;
    color: var(--red-accent);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.news-text {
    font-size: 13px;
    color: var(--deep-green);
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* News File Type Icons - Professional Look */
.news-file-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    white-space: nowrap;
}

.news-file-icon.pdf-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.news-file-icon.pdf-icon:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.news-file-icon.image-icon {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.news-file-icon.image-icon:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.news-file-icon.archive-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.news-file-icon.archive-icon:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.news-file-icon i {
    font-size: 12px;
}

/* File Buttons Blink Animation - Only for Recent News (5 days) */
.file-blink {
    animation: file-button-pulse 2s ease-in-out infinite;
}

@keyframes file-button-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   6. PRINCIPAL DESK SECTION
   ============================================ */
.principal-desk-section {
    background: white;
    padding: 25px;
    border: 3px solid var(--deep-green);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.principal-desk-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.principal-desk-photo {
    flex-shrink: 0;
    text-align: center;
}

.principal-desk-photo img {
    width: 150px;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
    border: 4px solid var(--deep-green);
    box-shadow: 0 8px 25px rgba(15, 81, 50, 0.4);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.principal-desk-photo img:hover {
    transform: scale(1.05);
    border-color: var(--red-accent);
}

.principal-desk-info {
    margin-top: 8px;
}

.principal-desk-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 3px;
}

.principal-desk-designation {
    font-size: 12px;
    font-weight: 600;
    color: var(--red-accent);
}

.principal-desk-message {
    flex: 1;
    position: relative;
}

.principal-desk-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--deep-green);
    text-align: justify;
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

.principal-desk-text.expanded {
    max-height: 2000px;
    overflow: visible;
}

.principal-desk-btn {
    margin-top: 12px;
    background: linear-gradient(135deg, var(--deep-green), #0a3d26);
    color: white;
    border: 2px solid var(--deep-green);
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
}

.principal-desk-btn:hover {
    background: linear-gradient(135deg, var(--red-accent), #b82a15);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(223, 52, 25, 0.4);
    border-color: var(--red-accent);
}

/* ============================================
   7. IMPORTANT LINKS SECTION - UNIFIED WIDTH
   ============================================ */
.important-links-full {
    background: white;
    padding: 25px 40px;
    border: 3px solid var(--deep-green);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 93%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Links & News Section Grid */
.links-news-section {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 20px;
    margin-bottom: 30px;
    width: 93%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.important-links {
    background: white;
    padding: 25px;
    border: 3px solid var(--deep-green);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Section Title - PINK COLOR */
.section-title {
    font-size: 24px;
    color: var(--heading-pink);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 41, 97, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-green), var(--red-accent));
    border-radius: 2px;
    box-shadow: 0 3px 15px rgba(15, 81, 50, 0.4);
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.link-item {
    background: linear-gradient(135deg, #fff5e6, #ffe4cc);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 3px solid var(--deep-green);
}

.link-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(15, 81, 50, 0.3);
    background: linear-gradient(135deg, var(--deep-green), var(--red-accent));
    border-color: var(--red-accent);
}

.link-item i {
    font-size: 28px;
    color: var(--red-accent);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.link-item:hover i {
    color: white;
    transform: rotateY(360deg);
}

.link-item a {
    font-size: 13px;
    font-weight: 600;
    color: var(--deep-green);
    display: block;
    text-decoration: none;
}

.link-item:hover a {
    color: white;
}

/* ============================================
   8. RIGHT SIDE CONTENT (News & Principal)
   ============================================ */
.right-side-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.latest-news {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid var(--deep-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 400px;
}

.news-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.principal-message {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid var(--deep-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 400px;
    overflow: hidden;
}

.principal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.principal-photo {
    text-align: center;
}

.principal-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--deep-green);
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.4);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.principal-photo img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--red-accent);
}

.principal-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-green);
    margin-top: 5px;
}

.message-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.message-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--deep-green);
    max-height: 200px;
    overflow: hidden;
    text-align: justify;
    transition: all 0.3s;
}

.message-text.expanded {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-text.expanded::-webkit-scrollbar {
    width: 5px;
}

.message-text.expanded::-webkit-scrollbar-track {
    background: #fff5e6;
    border-radius: 10px;
}

.message-text.expanded::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--deep-green), var(--red-accent));
    border-radius: 10px;
}

/* ============================================
   9. AUTHORITY/LEADERSHIP SECTION - UNIFIED WIDTH
   ============================================ */
.authority-section {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    border: 3px solid var(--deep-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 93%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.authority-card {
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff5e6, #ffe4cc);
    transition: all 0.4s;
    border: 3px solid var(--deep-green);
    box-shadow: 0 8px 25px rgba(15, 81, 50, 0.2);
}

.authority-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px rgba(223, 52, 25, 0.3);
    background: linear-gradient(135deg, var(--deep-green), var(--red-accent));
    border-color: var(--red-accent);
}

.authority-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 15px;
    object-fit: cover;
    border: 5px solid var(--deep-green);
    box-shadow: 0 8px 25px rgba(15, 81, 50, 0.4);
    margin-bottom: 15px;
    transition: all 0.4s;
}

.authority-card:hover img {
    border-color: var(--red-accent);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 15px 40px rgba(223, 52, 25, 0.5);
}

.authority-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 5px;
}

.authority-card:hover .authority-name {
    color: white;
}

.authority-designation {
    font-size: 13px;
    color: var(--red-accent);
    font-weight: 500;
}

.authority-card:hover .authority-designation {
    color: #fff5e6;
}

/* ============================================
   10. PHOTO GALLERY SECTION - UNIFIED WIDTH (96%)
   4 ITEMS PER ROW
   ============================================ */
.gallery-section {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    border: 3px solid var(--deep-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 93%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: linear-gradient(135deg, var(--deep-green), #0a3d26);
    color: white;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.3);
    border: 3px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 35px rgba(223, 52, 25, 0.4);
    background: linear-gradient(135deg, var(--red-accent), #b82a15);
    border-color: var(--deep-green);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Grid - EXACTLY 4 ITEMS PER ROW */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(15, 81, 50, 0.2);
    transition: all 0.3s;
    border: 3px solid var(--deep-green);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(223, 52, 25, 0.3);
    border-color: var(--red-accent);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 81, 50, 0.9), transparent);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ============================================
   11. VIDEO GALLERY SECTION - UNIFIED WIDTH (96%)
   4 ITEMS PER ROW
   ============================================ */
.video-section {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    border: 3px solid var(--deep-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 93%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Video Grid - EXACTLY 4 ITEMS PER ROW */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(15, 81, 50, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    border: 3px solid var(--deep-green);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(223, 52, 25, 0.3);
    border-color: var(--red-accent);
}

.video-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--red-accent);
    transition: all 0.3s;
    border: 3px solid var(--deep-green);
}

.video-item:hover .video-play-icon {
    background: var(--deep-green);
    color: white;
    transform: translate(-50%, -50%) scale(1.2);
    border-color: var(--red-accent);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* ============================================
   12. EDUCATIONAL LINKS MARQUEE - UNIFIED WIDTH (96%)
   ============================================ */
.edu-links-section {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    border: 3px solid var(--deep-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 93%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.marquee-container {
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-green), var(--red-accent));
    padding: 20px 0;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(15, 81, 50, 0.3);
    position: relative;
    border: 3px solid var(--deep-green);
}

.marquee-content {
    display: flex;
    animation: marqueeScroll 40s linear infinite;
    gap: 30px;
    align-items: center;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.edu-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    white-space: nowrap;
    border: 3px solid var(--deep-green);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 180px;
}

.edu-link-item:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 10px 35px rgba(223, 52, 25, 0.4);
    background: linear-gradient(135deg, #fff5e6, #ffe4cc);
    border-color: var(--red-accent);
}

.edu-link-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.edu-link-item i {
    font-size: 32px;
    color: var(--red-accent);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.edu-link-item:hover i {
    color: var(--deep-green);
    transform: scale(1.2);
}

.edu-link-item span {
    font-weight: 600;
    color: var(--deep-green);
    font-size: 15px;
    line-height: 1.2;
}

.edu-link-item:hover span {
    color: var(--red-accent);
    font-weight: 700;
}

/* Educational Website Brand Colors */
.edu-link-item.ugc span { color: #1a237e; } /* UGC - Dark Blue */
.edu-link-item.naac span { color: #2e7d32; } /* NAAC - Green */
.edu-link-item.aicte span { color: #0d47a1; } /* AICTE - Blue */
.edu-link-item.moe span { color: #ff6f00; } /* Ministry of Education - Orange */
.edu-link-item.skmu span { color: #6a1b9a; } /* SKMU - Purple */
.edu-link-item.ignou span { color: #c62828; } /* IGNOU - Red */
.edu-link-item.swayam span { color: #00695c; } /* SWAYAM - Teal */
.edu-link-item.nptel span { color: #e65100; } /* NPTEL - Deep Orange */
.edu-link-item.diksha span { color: #1565c0; } /* DIKSHA - Blue */
.edu-link-item.ndl span { color: #283593; } /* NDL - Indigo */
.edu-link-item.epg span { color: #4527a0; } /* e-PG Pathshala - Deep Purple */
.edu-link-item.vlab span { color: #00838f; } /* Virtual Labs - Cyan */
.edu-link-item.coursera span { color: #0056d2; } /* Coursera - Blue */
.edu-link-item.edx span { color: #02262b; } /* edX - Dark Teal */
.edu-link-item.khan span { color: #14bf96; } /* Khan Academy - Green */
.edu-link-item.mit span { color: #a31f34; } /* MIT - Maroon */
.edu-link-item.udemy span { color: #a435f0; } /* Udemy - Purple */
.edu-link-item.gscholar span { color: #4285f4; } /* Google Scholar - Blue */
.edu-link-item.researchgate span { color: #00d0af; } /* ResearchGate - Teal */
.edu-link-item.jstor span { color: #990000; } /* JSTOR - Dark Red */

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   13. NEWS ACCORDION FIXES
   ============================================ */
.accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

.accordion-header.active {
    background: linear-gradient(135deg, var(--deep-green), #0a3d26) !important;
    color: white !important;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    display: block !important;
    max-height: none !important;
}

/* News Title - Deep Green Color */
.news-title-text {
    color: var(--deep-green) !important;
    font-weight: 500;
    flex: 1;
}

/* View News Link - Deep Green with hover red */
.news-view-link {
    color: var(--deep-green) !important;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    transition: color 0.3s;
}

.news-view-link:hover {
    color: var(--red-accent) !important;
    text-decoration: underline;
}

/* ============================================
   14. SEE MORE BUTTON
   ============================================ */
.see-more-wrapper {
    text-align: center;
    padding: 10px 0 5px 0;
    margin-top: 8px;
}

.see-more-btn {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--deep-green), #0a3d26);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--deep-green);
}

.see-more-btn:hover {
    background: linear-gradient(135deg, var(--red-accent), #b82a15);
    transform: translateY(-1px);
    border-color: var(--red-accent);
}

.see-more-btn i {
    margin-left: 5px;
    font-size: 9px;
}

/* ============================================
   15. PRINCIPAL DESK EXTENDED STYLES
   ============================================ */
.principal-desk-content {
    display: block;
}

.principal-desk-photo {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.principal-desk-photo img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--deep-green);
}

.principal-desk-message {
    overflow: hidden;
}

.principal-desk-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--deep-green);
    text-align: justify;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.principal-desk-text.expanded {
    max-height: 2000px;
}

.principal-desk-btn {
    display: block;
    margin: 8px auto 0;
    padding: 5px 18px;
    background: linear-gradient(135deg, var(--deep-green), #0a3d26);
    color: white;
    border: 2px solid var(--deep-green);
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
    clear: both;
}

.principal-desk-btn:hover {
    background: linear-gradient(135deg, var(--red-accent), #b82a15);
    border-color: var(--red-accent);
}

/* ============================================
   16. NEW BADGE FOR IMPORTANT LINKS
   ============================================ */
.new-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
    font-weight: bold;
    animation: blink-new 1s infinite;
    vertical-align: middle;
}

@keyframes blink-new {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   17. NO CONTENT MESSAGE
   ============================================ */
.no-content-message {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* ============================================
   18. GALLERY VIEW MORE BUTTON
   ============================================ */
.gallery-view-more-wrapper {
    text-align: center;
    padding: 20px 0 10px 0;
    margin-top: 15px;
}

.gallery-view-more-btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, var(--deep-green), #0a3d26);
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
    border: 2px solid var(--deep-green);
}

.gallery-view-more-btn:hover {
    background: linear-gradient(135deg, var(--red-accent), #b82a15);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(223, 52, 25, 0.4);
    border-color: var(--red-accent);
}

.gallery-view-more-btn i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
}

.gallery-view-more-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   19. VIDEO VIEW MORE BUTTON
   ============================================ */
.video-view-more-wrapper {
    text-align: center;
    padding: 20px 0 10px 0;
    margin-top: 15px;
}

.video-view-more-btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, var(--deep-green), #0a3d26);
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
    border: 2px solid var(--deep-green);
}

.video-view-more-btn:hover {
    background: linear-gradient(135deg, var(--red-accent), #b82a15);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(223, 52, 25, 0.4);
    border-color: var(--red-accent);
}

.video-view-more-btn i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
}

.video-view-more-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   20. VIDEO TITLE BELOW THUMBNAIL
   ============================================ */
.video-thumb-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.video-thumb-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.3s;
}

.video-item:hover .video-thumb-wrapper img {
    transform: scale(1.1);
}

.video-title-below {
    color: var(--deep-green);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px 5px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-item:hover .video-title-below {
    color: var(--red-accent);
}

/* ============================================
   21. PRINCIPAL MESSAGE MODAL
   ============================================ */
.principal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.principal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.principal-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    border: 4px solid var(--deep-green);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.principal-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--deep-green);
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
}

.principal-modal-close:hover {
    color: var(--red-accent);
    transform: scale(1.2);
}

.principal-modal-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--deep-green);
}

.principal-modal-photo img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--deep-green);
}

.principal-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.principal-modal-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 5px;
}

.principal-modal-designation {
    font-size: 16px;
    color: var(--red-accent);
    font-weight: 600;
}

.principal-modal-message {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Language tabs for message */
.language-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-tab {
    padding: 8px 20px;
    background: var(--deep-green);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-tab:hover,
.lang-tab.active {
    background: var(--red-accent);
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* ============================================
   22. PRINT STYLES - NAAC COMPLIANT
   ============================================ */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
    
    .slider-wrapper,
    .slider,
    .video-section,
    .video-modal,
    .principal-modal,
    .back-to-top,
    .fixed-social-media {
        display: none !important;
    }
    
    .container,
    .principal-news-section,
    .important-links-full,
    .authority-section,
    .gallery-section,
    .edu-links-section {
        width: 100% !important;
        max-width: none !important;
        padding: 10px !important;
        margin: 10px 0 !important;
        box-shadow: none !important;
        border: 1px solid #333 !important;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: black !important;
        text-shadow: none !important;
        font-size: 16pt !important;
    }
    
    .section-title::after {
        background: black !important;
    }
    
    .news-recent-blink::before {
        display: none !important;
    }
    
    .news-recent-blink {
        animation: none !important;
        background: transparent !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .authority-grid,
    .gallery-grid,
    .links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .marquee-content {
        animation: none !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .edu-link-item {
        margin: 5px !important;
        border: 1px solid #333 !important;
    }
}

/* ============================================
   23. RESPONSIVE DESIGN - CONTENT ONLY
   ============================================ */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .slider-wrapper,
    .container,
    .principal-news-section,
    .important-links-full,
    .links-news-section,
    .authority-section,
    .gallery-section,
    .video-section,
    .edu-links-section {
        width: 96%;
    }
    
    .slider {
        height: 500px;
    }
    
    /* Links & News Section */
    .links-news-section {
        grid-template-columns: 70% 30%;
    }
    
    /* Links Grid */
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Authority Grid */
    .authority-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery & Video - 2 columns on tablet */
    .gallery-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .slider-wrapper,
    .container,
    .principal-news-section,
    .important-links-full,
    .links-news-section,
    .authority-section,
    .gallery-section,
    .video-section,
    .edu-links-section {
        width: 96%;
        padding: 20px 15px;
    }
    
    /* Slider */
    .slider {
        height: 320px;
        border-radius: 12px;
    }
    
    /* Slider Navigation Arrows - Smaller on mobile */
    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    /* Section Title */
    .section-title {
        font-size: 18px;
    }
    
    /* Principal & News Section */
    .principal-news-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Principal Desk Content */
    .principal-desk-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .principal-desk-photo img {
        width: 130px;
        height: 160px;
    }
    
    .principal-desk-text {
        font-size: 14px;
        text-align: justify;
    }
    
    .principal-desk-name {
        font-size: 16px;
    }
    
    .principal-desk-designation {
        font-size: 13px;
    }
    
    /* News */
    .news-date {
        font-size: 10px;
    }
    
    .news-text {
        font-size: 12px;
    }
    
    /* Links Grid */
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .link-item {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    /* Authority Grid */
    .authority-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery & Video - 1 column on mobile */
    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tab Buttons */
    .tab-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    /* Principal Modal */
    .principal-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .principal-modal-content {
        width: 95%;
        padding: 20px 15px;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .slider-wrapper,
    .container,
    .principal-news-section,
    .important-links-full,
    .authority-section,
    .gallery-section,
    .video-section,
    .edu-links-section {
        width: 98%;
        padding: 15px 10px;
    }
    
    .slider {
        height: 220px;
    }
    
    .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    /* Links Grid */
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .principal-desk-photo img {
        width: 110px;
        height: 140px;
    }
    
    .principal-desk-text {
        font-size: 13px;
    }
    
    .news-text {
        font-size: 11px;
    }
    
    .principal-modal-content {
        padding: 15px;
        width: 98%;
    }
}

/* ============================================
   END OF STYLESHEET - PROFESSIONAL THEME
   Deep Green (#0f5132) & Red Accent (#df3419)
   Heading Color: Pink (#ff2961)
   NAAC Compliant - Print Friendly
   ============================================ */