/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; 
}

/* University Header */
.university-header {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-section .university-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.university-info {
    flex: 1;
    text-align: center;
}

.university-info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d8d06;
}

.university-info h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 4px;
    text-align: left;
}

.accreditation {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.header-actions .quick-links {
    display: flex;
    gap: 16px;
}

.quick-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Navigation - Compact Style */
.main-nav {
    background: #195604;
    border-bottom: 3px solid #195604;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.nav-wrapper {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Main navigation (update: allow dropdowns to overflow) */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    height: 50px;
    width: 100%;
    overflow: visible; /* was hidden — caused dropdowns to be clipped */
}


.nav-menu > li {
    position: relative;
    flex: 0 1 auto;
    display: flex;
    align-items: stretch;
    border-right: 1px solid rgba(30, 64, 175, 0.1);
    min-width: 0;
}

.nav-menu > li:last-child {
    border-right: none;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    height: 50px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    background: #f0f9ff;
    color: #1e40af;
}

.nav-link:hover,
.dropdown:hover > .nav-link {
    background: #6fc45c;
    color: #ffffff;
}

.dropdown-toggle i {
    margin-left: 2px;
    font-size: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Ensure dropdown menus work on hover */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:nth-last-child(-n+3):hover .dropdown-menu,
.dropdown:nth-last-child(-n+3) .dropdown-menu:hover {
    transform: translateX(0) translateY(0);
}

/* Dropdown Menus */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    border-top: 3px solid #1e40af;
    margin: 0;
    padding: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Prevent dropdown cutoff on right edge */
.dropdown:nth-last-child(-n+3) .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-10px);
}

.dropdown:nth-last-child(-n+3):hover .dropdown-menu {
    transform: translateX(0) translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f1f5f9;
    margin: 0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f0f9ff;
    color: #1e40af;
    padding-left: 20px;
}

/* Mega Menu */
.mega-menu {
    left: -100px;
    min-width: 600px;
}

.mega-menu-content {
    display: flex;
    padding: 20px;
}

.mega-menu-column {
    flex: 1;
    margin-right: 20px;
}

.mega-menu-column:last-child {
    margin-right: 0;
}

.mega-menu-column h4 {
    color: #1e40af;
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li {
    border-bottom: none;
    margin-bottom: 4px;
}

.mega-menu-column ul a {
    padding: 6px 0;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e40af;
    cursor: pointer;
    padding: 10px;
}

/* Main Content */
.main-content {
    padding: 32px 0;
    background: #f9fafb;
}

.homepage-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Carousel Section */
.carousel-container {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 40px 30px 30px;
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

/* Alert Notification Styles */
.alert-notification-section {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-container {
    width: 100%;
    padding: 0 20px;
    max-width: none;
    overflow: hidden;
}

.alert-marquee {
    display: flex;
    white-space: nowrap;
    width: max-content;
    position: relative;
}

.alert-item {
    display: contents;
    margin-right: 100px;
    font-weight: bold;
    color: white;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.alert-item a {
    color: white;
    text-decoration: none;
}

.alert-item a:hover {
    text-decoration: underline;
}

/* Notice Section */
.notice-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notice-board {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.notice-header {
    background: #1e40af;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.notice-header i {
    margin-right: 8px;
}
.notice-header {
    display: flex;
    flex-direction: column; /* stack items vertically */
    align-items: flex-start; /* align to left */
    gap: 8px; /* spacing between heading and tabs */
}

.notice-header h3 {
    width: 100%;
    text-align: left; /* or center if you prefer */
    margin-bottom: 5px;
}

.view-all {
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: white;
}

.notice-list {
    max-height: 500px;
    overflow-y: auto;
}

.notice-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease;
}

.notice-item:hover {
    background: #f9fafb;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    min-width: 60px;
    text-align: center;
    margin-right: 16px;
}

.notice-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
    line-height: 1;
}

.notice-date .month {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    font-size: 1rem;
    color: #1e40af;
    margin-bottom: 6px;
    line-height: 1.3;
}

.notice-content p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 8px;
}

.notice-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.notice-type.new {
    background: #dcfce7;
    color: #059669;
}

.notice-type.important {
    background: #fef2f2;
    color: #dc2626;
}

/* Quick Access */
.quick-access {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quick-access h3 {
    color: #1e40af;
    margin-bottom: 20px;
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.quick-access-item:hover {
    background: #f0f9ff;
    border-color: #1e40af;
    color: #1e40af;
    transform: translateY(-2px);
}

.quick-access-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.quick-access-item span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Counter Section (from counter.js) */
.counter-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
    text-align: center;
}

.counter-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
}

.counter-button {
    background: #1e40af;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.counter-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
}

.social-media {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #374151;
    border-radius: 50%;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fbbf24;
    color: #1f2937;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-bottom a {
    color: #fbbf24;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Scrollbar Styling */
.notice-list::-webkit-scrollbar {
    width: 6px;
}

.notice-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.notice-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.notice-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container,
.notice-board,
.quick-access,
.counter-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-link {
        padding: 0 3px;
        font-size: 9px;
        letter-spacing: 0px;
    }
    
    .dropdown-toggle i {
        margin-left: 1px;
        font-size: 6px;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .university-info h1 {
        font-size: 1.5rem;
    }

    .university-info h2 {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0 2px;
        font-size: 8px;
        font-weight: 700;
    }

    .dropdown-toggle i {
        margin-left: 1px;
        font-size: 5px;
    }

    .homepage-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .university-header {
        padding: 12px 0;
    }

    .header-content {
        gap: 12px;
    }

    .logo-section .university-logo {
        width: 60px;
        height: 60px;
    }

    .university-info h1 {
        font-size: 1.3rem;
    }

    .university-info h2 {
        font-size: 1.1rem;
    }

    .quick-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background:#85da6e;
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        height: auto;
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        border-right: none;
    }

    .nav-link {
        height: auto;
        padding: 16px 20px;
        font-size: 14px;
        text-transform: none;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #1e40af;
        margin-left: 20px;
        display: none;
    }

    .dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .mega-menu {
        left: 0;
        min-width: auto;
    }

    .mega-menu-content {
        flex-direction: column;
    }

    .mega-menu-column {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .carousel-wrapper {
        height: 250px;
    }

    .slide-content h3 {
        font-size: 1.3rem;
    }

    /*.notice-list {*/
    /*    max-height: 300px;*/
    /*}*/

    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .university-info h1 {
        font-size: 1.1rem;
    }

    .university-info h2 {
        font-size: 1rem;
    }

    .carousel-wrapper {
        height: 200px;
    }

    .slide-content {
        padding: 20px 20px 15px;
    }

    .slide-content h3 {
        font-size: 1.1rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .notice-item {
        padding: 16px;
    }

    .notice-date {
        min-width: 50px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* Make dropdowns visible when hovered or when JS toggles .open */
.dropdown:hover .dropdown-menu,
.dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    display: block;
}

/* For edge-aligned dropdowns on the right */
.dropdown:nth-last-child(-n+3):hover .dropdown-menu,
.dropdown:nth-last-child(-n+3).open > .dropdown-menu {
    transform: translateX(0) translateY(0);
}

/* SMALL SCREEN (mobile) — keep stacked behavior but show on .open */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-left: 3px solid #1e40af;
        margin-left: 20px;
        display: none; /* hidden by default on mobile */
    }

    /* show when mobile-open or open toggled by JS */
    .dropdown.mobile-open .dropdown-menu,
    .dropdown.open > .dropdown-menu {
        display: block;
    }
}
/* --- Top Bar --- */
.top-bar {
  background: #d07221;
  border-bottom: 3px solid #ffffff;
  font-size: 14px;
  color: #181717;
  padding: 5px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
   max-width: 100%; /* Remove container width limit for full width */
  margin: 0;
}

.top-bar-left button {
  background: #030303;
  color: white;
  border: none;
  padding: 4px 8px;
  margin-right: 4px;
  cursor: pointer;
  font-weight: bold;
}

.top-bar-left button:hover {
  background: #fbfbfb;
}

.top-bar-right a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 4px;
}

.top-bar-right a:hover {
  text-decoration: underline;
}
/* Header layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left side: logo + name beside it */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* University logo */
.logo-section .university-logo {
    width: 90px;  /* adjust size */
    height: auto;
    border-radius: 0;
    border: none;
    object-fit: contain;
}

/* University info (text beside logo) */
.university-info {
    text-align: left;
}

.university-info h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #195604;
}

.university-info h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #cb6309;
}

.university-info .accreditation {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    color: #cb6309;
}

/* Right-side symbols */
.header-symbols {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-symbol {
    height: 60px;
    width: auto;
    object-fit: contain;
}
/* Tabs in Notice Board */
.notice-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
    color: #1e40af;
}

.tab-btn:hover {
    background: #f0f9ff;
}

.tab-btn.active {
    background: #fbbf24;
    color: #000;
}

/* Hide inactive tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
/* Notice list for carousel */
.notice-list {
    position: relative;
    overflow: hidden;
    /*height: 120px; */
}

/* All notices stacked vertically */
.notice-list .notice-item {
    height: 50px;
    line-height: 40px;
    padding: 0 10px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    color: #1e40af;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* For smooth vertical scrolling */
.notice-list-inner {
    display: flex;
    flex-direction: column;
    animation: scrollNotices 12s linear infinite;
}

@keyframes scrollNotices {
    0% { transform: translateY(0); }
    25% { transform: translateY(-40px); }
    50% { transform: translateY(-80px); }
    75% { transform: translateY(-120px); }
    100% { transform: translateY(0); }
}
/* Homepage new layout for Governor & VC */
.homepage-layout {
    display: grid;
    grid-template-columns: 400px 1fr; /* Left: leaders, Right: carousel+notice */
    gap: 24px;
    align-items: start;
}

/* Leaders section */
.leaders-section {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.leader-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 24px;
    animation: fadeInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.leader-card img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    flex-shrink: 0;
}

.leader-info {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leader-card h3 {
    margin-top: auto;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.leader-card h4 {
    color: #1e40af;
    margin-bottom: 4px;
}

.leader-card p {
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .homepage-layout {
        grid-template-columns:1fr;
    }
}

.leader-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 180px;
}

.leader-card img {
    width: 100%;
    max-width: 160px;
    height: auto;
    margin: 0 auto 12px;
    border-radius: 8px;
}

/* Right content: Carousel + Notice side by side */
.right-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Carousel bigger */
    gap: 24px;
    align-items: start;
}

/* Make Notice Board equal height to Carousel */
.right-content {
    display: flex;
    gap: 24px;
    align-items: stretch;  /* ensures children stretch equally in height */
}

.carousel-section,
.notice-board {
    flex: 1;
}

.notice-board {
    display: flex;
    flex-direction: column;
    height: 400px; /* same as .carousel-wrapper */
}

/* Responsive */
@media (max-width: 1024px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    .right-content {
        grid-template-columns: 1fr;
    }
}
.icon-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 7.5%; /* 13 items in one row */
  padding: 10px;
}

.icon-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.icon-item span {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.icon-item:hover {
  background: #f3f5f8;
  border-radius: 8px;
  transform: translateY(-5px);
}

.icon-item:hover span {
  color: #4f46e5;
}
.icon-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.icon-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.icon-item {
    width: 140px;
    text-align: center;
    padding: 10px;
    margin: 5px;
    background-color: #f2f2f2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-item:hover {
    background-color: #e2e2e2;
}
.icon-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    text-align: center;
}

.icon-row {
    display: grid;
    grid-template-columns: repeat(9, 1fr); /* 9 columns in the first 2 rows */
    gap: 15px;
    justify-items: center;
    margin-bottom: 20px;
}

.centered {
    grid-template-columns: repeat(4, 1fr); /* 4 columns in the last row */
    justify-items: center;
    gap: 2px; /* Reduced gap between the 4 items */
}

.icon-item {
    background-color: #6aabe49c;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-item:hover {
    background-color: #0d6efd;;
}

.icon-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}
/* Principal's Desk Section */
.principals-desk-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 40px 0;
}

.principals-desk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.principal-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.principal-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.principal-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    z-index: -1;
}

.principal-content {
    color: #333;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: #d97706;
    margin-right: 15px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: #374151;
    margin: 0;
}

.section-header .highlight {
    color: #d97706;
    font-weight: 600;
}

.principal-info {
    margin-bottom: 30px;
}

.principal-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.title-line {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-line-left,
.title-line-right {
    height: 2px;
    background: #d97706;
    flex: 1;
}

.title-line-left {
    max-width: 80px;
}

.title-line-right {
    max-width: 40px;
}

.title {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.principal-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 30px;
    text-align: justify;
}

.read-more-btn {
    background: #d97706;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.read-more-btn:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .principals-desk-container {
        gap: 40px;
    }
    
    .principal-image img {
        width: 250px;
        height: 250px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .principals-desk-section {
        padding: 40px 0;
    }
    
    .principals-desk-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .principal-image img {
        width: 200px;
        height: 200px;
    }
    
    .section-header {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .principal-info h3 {
        font-size: 1.2rem;
    }
    
    .principal-message p {
        font-size: 1rem;
        text-align: center;
    }
}
.icon-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.icon-row {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 15px;
    justify-items: center;
}

.icon-row.centered {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.icon-item {
    background-color: #f8f9fa;
    padding: 20px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.icon-item:hover {
    background-color:#a1adc7;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.icon-item i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #2563eb;
    transition: color 0.3s ease;
}

.icon-item:hover i {
    color: #2563eb;
}

.icon-item span {
    line-height: 1.3;
    font-size: 11px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .icon-row {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
    
    .icon-row.centered {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .icon-item {
        padding: 15px 8px;
        min-height: 90px;
    }
    
    .icon-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .icon-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .icon-row.centered {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .icon-item {
        padding: 12px 6px;
        min-height: 80px;
    }
    
    .icon-item i {
        font-size: 1.3rem;
    }
    
    .icon-item span {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .icon-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .icon-row.centered {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Statistics Section */
.statistics-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://via.placeholder.com/1200x400?text=University+Campus') center/cover;
    padding: 60px 0;
    margin: 40px 0;
}

.statistics-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item i {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

/* Important Websites Section */
.websites-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.websites-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #374151;
    margin-bottom: 40px;
}

.websites-section .highlight {
    color: #dc2626;
    font-weight: 600;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.website-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #e5e7eb;
}

.website-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.website-item img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    border-radius: 5px;
}

/* Video Gallery Section */
.video-gallery-section {
    background: linear-gradient(180deg, #85da6e,#ffffff);
    padding: 60px 0;
    color: white;
}

.video-gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 2px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 1.5rem;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .websites-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .statistics-section h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-item i {
        font-size: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .websites-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .statistics-section h2,
    .websites-section h2,
    .video-gallery-section h2 {
        font-size: 1.5rem;
    }
}
.statistics-section {
    position: relative; /* To position the image properly */
    height: 100vh; /* Take full viewport height */
    padding: 50px 0;
    overflow: hidden; /* Prevents overflow of the image */
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensure the image fills the container */
    object-fit: cover; /* Ensures the image covers the section without distortion */
    z-index: -1; /* Keeps the image behind the content */
}

.statistics-overlay {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for better text readability */
    padding: 50px 0;
    z-index: 1; /* Ensure overlay is on top of the background image */
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: white; /* Ensure text is visible against the background */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7); /* Light background for items */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
}
.statistics-section .background-image {
    position: absolute;
    top: 0; left: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;  /* crops but keeps proportions */
    z-index: -1;        /* keeps it behind the content */
}
.statistics-section {
    position: relative;
    padding: 60px 0;
    margin: 40px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('./main img.jpg') center center / cover no-repeat;
    background-clip: content-box; /* keeps it inside the box */
}
/* Homepage Layout - Single Row */
.homepage-layout {
    display: flex;
    gap: 20px;
    align-items: start;
}

/* Leaders section - HORIZONTAL (side by side) */
.leaders-section {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-shrink: 0;
}

.leader-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 240px;
    height: 400px;
}

.leader-card img {
    width: 100%;
    height: 280px;
    margin-bottom: 0;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
}

.leader-card h3 {
    color: #1e40af;
    font-size: 0.95rem;
    margin-top: auto;
    margin-bottom: 4px;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
    font-weight: 600;
}

.leader-card h4 {
    color: #1e40af;
    font-size: 0.85rem;
    margin: 2px 0;
    font-weight: 500;
}

.leader-card p {
    color: #374151;
    font-size: 0.8rem;
    margin: 2px 0;
}

/* Right content area */
.right-content {
    display: flex;
    gap: 20px;
    flex: 1;
}

.carousel-section {
    flex: 2;
}

.notice-board {
    width: 320px;
    flex-shrink: 0;
}
/* Enlarge only the Jharkhand Government symbol */
.jharkhand-symbol {
    height: 90px;  /* increase as needed */
    width: auto;
}
/* Add space below the main navigation bar */
.main-nav {
  margin-bottom: -10px; /* adjust value as needed, try 30px if you want more space */
}
/* === Side Dropdown for Administration (Fixed Version) === */
.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown > .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
  transform: translateX(10px);
  border-top: 3px solid #1e40af;
  border-left: none;
  background: white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1003;
  padding-top: 0;
  padding-bottom: 0;
  min-width: 250px;
}

/* Show submenu only on hover */
.dropdown-menu .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* Style nested dropdown parent link */
.dropdown-menu .dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Remove the green hover effect */
.dropdown-menu .dropdown:hover > a {
  background-color: #f0f9ff !important;
  color: #1e40af !important;
}


/* Prevent submenu from always showing on mobile unless open */
@media (max-width: 768px) {
  .dropdown-menu .dropdown > .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-left: 3px solid #1e40af;
    display: none;
  }

  .dropdown-menu .dropdown.mobile-open > .dropdown-menu {
    display: block;
  }
}
/* ========== MOBILE RESPONSIVE IMPROVEMENTS ========== */

/* Top Bar - Mobile Responsive */
@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 3px 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        padding: 5px 10px;
    }
    
    .top-bar-left button {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .top-bar-right {
        font-size: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .top-bar-right a {
        margin: 0 2px;
    }
}

/* Header - Mobile Responsive */
@media (max-width: 768px) {
    .university-header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .logo-section .university-logo {
        width: 70px;
        height: auto;
    }
    
    .university-info {
        text-align: center;
        width: 100%;
    }
    
    .university-info h1 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .university-info h2 {
        font-size: 1rem;
        text-align: center;
    }
    
    .university-info .accreditation {
        font-size: 0.8rem;
    }
    
    .header-symbols {
        gap: 10px;
        justify-content: center;
    }
    
    .header-symbol {
        height: 40px;
    }
    
    .jharkhand-symbol {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .university-info h1 {
        font-size: 1rem;
    }
    
    .university-info h2 {
        font-size: 0.85rem;
    }
    
    .header-symbol {
        height: 35px;
    }
}

/* Homepage Layout - Mobile Responsive */
@media (max-width: 1024px) {
    .homepage-layout {
        flex-direction: column;
    }
    
    .leaders-section {
        width: 100%;
        justify-content: center;
    }
    
    .right-content {
        flex-direction: column;
        width: 100%;
    }
    
    .notice-board {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .leaders-section {
        flex-direction: column;
        align-items: center;
    }
    
    .leader-card {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .leader-card img {
        height: auto;
        max-height: 250px;
    }
}

/* Carousel - Mobile Responsive */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 250px;
    }
    
    .slide-content {
        padding: 20px 15px;
    }
    
    .slide-content h3 {
        font-size: 1.2rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 200px;
    }
    
    .slide-content h3 {
        font-size: 1rem;
    }
    
    .slide-content p {
        font-size: 0.75rem;
    }
}

/* Notice Board - Mobile Responsive */
@media (max-width: 768px) {
    .notice-header {
        padding: 15px;
    }
    
    .notice-header h3 {
        font-size: 1rem;
    }
    
    .notice-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    /*.notice-list {*/
    /*    max-height: 250px;*/
    /*}*/
    
    .notice-item {
        height: auto;
        line-height: 1.4;
        padding: 10px;
        white-space: normal;
    }
}

/* Icon Section - Mobile Responsive */
@media (max-width: 768px) {
    .icon-section {
        padding: 0 10px;
        margin: 20px 0;
    }
    
    .icon-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .icon-row.centered {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .icon-item {
        padding: 15px 5px;
        min-height: 85px;
    }
    
    .icon-item i {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .icon-item span {
        font-size: 10px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .icon-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .icon-row.centered {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .icon-item {
        padding: 12px 5px;
        min-height: 75px;
    }
    
    .icon-item i {
        font-size: 1.3rem;
    }
    
    .icon-item span {
        font-size: 9px;
    }
}

/* Statistics Section - Mobile Responsive */
@media (max-width: 768px) {
    .statistics-section {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .statistics-section h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .stat-item {
        padding: 20px 10px;
    }
    
    .stat-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Important Websites - Mobile Responsive */
@media (max-width: 768px) {
    .websites-section {
        padding: 40px 0;
    }
    
    .websites-section h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    
    .websites-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .website-item {
        padding: 10px;
    }
    
    .website-item img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .website-item img {
        height: 40px;
    }
}

/* Video Gallery - Mobile Responsive */
@media (max-width: 768px) {
    .video-gallery-section {
        padding: 40px 0;
    }
    
    .video-gallery-section h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
}

/* Footer - Mobile Responsive */
@media (max-width: 768px) {
    .main-footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 6px;
    }
    
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 15px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-bottom div {
        margin-top: 10px;
    }
    
    .footer-bottom img {
        width: 60px !important;
        height: auto;
        margin: 5px !important;
    }
}

/* Container padding for mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Counter animation styles */
.counter {
    transition: all 0.3s ease;
}

/* Optional: Add a subtle pulse effect when animation completes */
@keyframes gentlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-item h3.counter.animated {
    animation: gentlePulse 0.5s ease;
}

/* Loading text before animation starts */
.stat-item h3.counter::before {
    content: '';
    display: none;
}

/* Progress bar effect (optional) */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    transition: width 2s ease;
}

.stat-item.animating::after {
    width: 100%;
}
