/* Balurghat College - Main CSS File */

:root {
    /* Modern Educational Color Palette 2025 */
    --primary-color: #1e40af; /* Modern Royal Blue */
    --primary-gradient: linear-gradient(135deg, #1e40af, #3b82f6);
    --secondary-color: #f97316; /* Vibrant Orange */
    --accent-color: #1f2937; /* Professional Dark Gray */
    --light-color: #f1f5f9; /* Clean Light Gray */
    --dark-color: #111827; /* Rich Black */
    --text-color: #6b7280; /* Readable Gray */
    --gray-bg: #f9fafb; /* Ultra Light Background */
    --success-color: #10b981; /* Fresh Green */
    --hover-blue: #2563eb; /* Interactive Blue */
    --warm-white: #ffffff; /* Pure White */
    --border-color: #e5e7eb; /* Subtle Border */
}

/* Login/Search Boxes Styling - Updated with modern palette */
.login-search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* Primary Login Box - Student Login */
.login-box.primary {
    background: var(--primary-gradient);
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: 18px 25px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
    cursor: pointer;
    text-decoration: none;
    color: white !important;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-box.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-box.primary:hover::before {
    left: 100%;
}

.login-box.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    border-color: var(--accent-color);
}

/* Secondary Login Box - ERP Login */
.login-box.secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(31, 41, 55, 0.3);
    cursor: pointer;
    text-decoration: none;
    color: white !important;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 180px;
    text-align: center;
    position: relative;
}

.login-box.secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(31, 41, 55, 0.4);
    color: white !important;
}

/* Tertiary - Google Search */
.search-box {
    background: linear-gradient(135deg, var(--light-color), var(--warm-white));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.2);
    cursor: pointer;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 140px;
    text-align: center;
}

.search-box:hover {
    background: linear-gradient(135deg, var(--warm-white), var(--light-color));
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(30, 64, 175, 0.3);
    color: var(--dark-color);
    text-decoration: none;
}

/* Icons styling */
.login-box i, .search-box i {
    margin-right: 12px;
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-box.primary i {
    color: white;
    font-size: 1.5rem;
}

.login-box.secondary i {
    color: white;
    font-size: 1.3rem;
}

.search-box i {
    color: var(--dark-color);
    font-size: 1.2rem;
}

/* NEW: Centralised Admission 2025 with Blinking Effect */
.admission-notice {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.admission-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.admission-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    animation: blink 1.5s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.admission-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

/* Online Fees Payment Button */
.fees-payment-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.fees-payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.fees-payment-btn:hover::before {
    left: 100%;
}

.fees-payment-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(5, 150, 105, 0.4);
    color: white;
    text-decoration: none;
}

/* NEW: Side by Side Layout for Admission & Fees Payment */
.admission-payment-container {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: stretch;
}

.admission-notice-compact {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 140px;
}

.admission-notice-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

.admission-title-compact {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 3px;
    animation: blink 1.5s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.admission-subtitle-compact {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
    line-height: 1.1;
}

.fees-payment-btn-compact {
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 140px;
}

.fees-payment-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.fees-payment-btn-compact:hover::before {
    left: 100%;
}

.fees-payment-btn-compact:hover {
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
    color: white;
    text-decoration: none;
}

.fees-payment-btn-compact i {
    font-size: 1rem;
    margin-bottom: 4px;
}

.fees-payment-btn-compact span {
    font-size: 0.75rem;
    line-height: 1.1;
}

/* Workflow indicator */
.login-sequence {
    position: relative;
}

.login-sequence::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary-color);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.login-sequence.secondary::after {
    border-left-color: var(--accent-color);
}

/* Header Contact Adjustment - UPDATED FOR LEFT ALIGNMENT */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Login flow labels */
.login-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-label.step-1 {
    color: var(--primary-color);
}

.login-label.step-2 {
    color: var(--accent-color);
}

.login-label.step-3 {
    color: var(--primary-color);
}

/* Notice tab styling - FIXED AND UPDATED */
.notice-tab-container .nav-pills .nav-link {
    background-color: white;
    color: var(--text-color) !important;
    border-radius: 30px;
    font-weight: 600;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 12px 25px;
    display: inline-block;
    opacity: 1;
}

.notice-tab-container .nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
    border-color: transparent;
}

.notice-tab-container .nav-pills .nav-link:hover:not(.active) {
    background-color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Tab content visibility - FIXED */
.tab-content > .tab-pane {
    display: none !important;
}

.tab-content > .active {
    display: block !important;
}

/* Notice Board */
.notice-board {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.notice-item {
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background-color: white;
    margin-bottom: 20px;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.notice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
}

.notice-date {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.2);
}

.notice-item h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.notice-item p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.notice-item .btn {
    padding: 8px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.notice-item .btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

body {
    font-family: 'Segoe UI', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
}

/* Top bar styles - UPDATED WITH CONTACT ON LEFT */
.top-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

.social-top a {
    margin-right: 15px;
    font-size: 1rem;
}

/* UPDATED: Contact info on left, other links on right */
.contact-info-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info-item {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none;
}

.contact-info-item i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.top-bar-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-link {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.top-bar-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none;
}

.top-bar-link i {
    margin-right: 8px;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Logo section styles - WHITE HEADER - UPDATED */
.logo-section {
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    float:left;
    margin-right:12px;
}

.college-logo {
    max-height: 100px;
}

.college-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.college-name-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.college-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.college-name-bengali {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-family: 'Noto Sans Bengali', 'SolaimanLipi', 'Kalpurush', Arial, sans-serif;
    line-height: 1.3;
}

.college-tagline {
    font-size: 1rem;
    color: var(--text-color);
}

/* Navbar styles - Updated with modern gradient */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    z-index:99999;
}

.navbar-nav {
    width: 100%;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
    border: none;
    outline: none;
    color: white;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu {
    border-radius: 6px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 0;
    overflow: hidden;
}

.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f1f1;
    color: var(--text-color);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Language Selector */
.language-selector .btn {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--secondary-color);
}

/* Carousel */
.carousel-item {
    height: 500px;
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Carousel - Updated overlay */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 64, 175, 0.8) 0%, rgba(31, 41, 55, 0.6) 50%, rgba(30, 64, 175, 0.4) 100%);
}

.carousel-caption {
    text-align: left;
    left: 10%;
    right: auto;
    max-width: 550px;
    bottom: 50%;
    transform: translateY(50%);
    padding: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 5px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
}

.carousel-caption h2 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2.8rem;
    color: var(--dark-color);
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.carousel-caption .btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
    background: var(--secondary-color);
}

/* News Ticker - Updated colors */
.news-ticker {
    background: var(--light-color);
    padding: 15px 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ticker-label {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-content {
    white-space: nowrap;
    overflow: hidden;
    animation: ticker 30s linear infinite;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Welcome Section - Updated with modern colors */
.welcome-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(241, 245, 249, 0.3) 100%);
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.welcome-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
}

.welcome-section .text-primary {
    color: var(--primary-color) !important;
}

.welcome-section .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transition: all 0.3s;
}

.welcome-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.4);
}

.welcome-section .btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.welcome-section .btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.welcome-image-container img {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.welcome-image-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Principal's Desk - Updated */
.principal-desk {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(31, 41, 55, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.principal-image-wrapper {
    position: relative;
    padding: 10px;
}

.principal-image {
    border-radius: 10px;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    max-width: 280px;
}

.principal-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.principal-info {
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.principal-info h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 1.2rem;
}

.principal-message {
    padding: 0 0 0 15px;
}

.principal-desk blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
    color: var(--dark-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
}

.principal-desk p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
}

.principal-signature {
    margin-top: 25px;
    text-align: right;
}

.schools-section {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.section-heading {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 400;
}

.section-heading span {
    font-weight: 700;
    color: var(--dark-color);
}

.school-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s;
}

.school-card:hover {
    transform: translateY(-5px);
}

.school-image {
    height: 160px;
    overflow: hidden;
}

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

.school-info {
    padding: 15px 10px;
    text-align: center;
    color: white;
    font-size: 14px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Updated school colors with modern palette */
.soh {
    background-color: var(--primary-color);
}

.sohs {
    background-color: var(--accent-color);
}

.soits {
    background-color: var(--secondary-color);
}

.sojnms {
    background-color: var(--primary-color);
}

.sol {
    background-color: var(--accent-color);
}

.soms {
    background-color: var(--secondary-color);
}

/* Swiper custom styling */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    padding: 10px;
    height: auto;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 64, 175, 0.8);
    border-radius: 50%;
    color: white;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Academic Resources Section - Updated */
.academic-resources {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--warm-white) 50%, var(--light-color) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.academic-resources::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e40af' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.resource-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(31, 41, 55, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card:nth-child(1) {
    border-left: 4px solid var(--primary-color);
}

.resource-card:nth-child(2) {
    border-left: 4px solid var(--accent-color);
}

.resource-card:nth-child(3) {
    border-left: 4px solid var(--secondary-color);
}

.resource-card:nth-child(4) {
    border-left: 4px solid var(--success-color);
}

.resource-icon {
    margin-bottom: 20px;
    position: relative;
}

.resource-image {
    width: 60px;
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-image {
    transform: scale(1.1);
}

.resource-content {
    text-align: center;
}

.resource-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.2;
}

.resource-year {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Hover effects for specific cards */
.resource-card:nth-child(1):hover .resource-title,
.resource-card:nth-child(1):hover .resource-year {
    color: var(--primary-color);
}

.resource-card:nth-child(2):hover .resource-title,
.resource-card:nth-child(2):hover .resource-year {
    color: var(--accent-color);
}

.resource-card:nth-child(3):hover .resource-title,
.resource-card:nth-child(3):hover .resource-year {
    color: var(--secondary-color);
}

.resource-card:nth-child(4):hover .resource-title,
.resource-card:nth-child(4):hover .resource-year {
    color: var(--success-color);
}

/* Animation effects */
.resource-card {
    animation: fadeInUp 0.6s ease-out;
}

.resource-card:nth-child(1) {
    animation-delay: 0.1s;
}

.resource-card:nth-child(2) {
    animation-delay: 0.2s;
}

.resource-card:nth-child(3) {
    animation-delay: 0.3s;
}

.resource-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Student Services - Updated gradient */
.student-services {
    background: 
        linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(31, 41, 55, 0.85) 70%, rgba(30, 64, 175, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 8%);
    padding: 30px 20px 50px;
    position: relative;
    overflow: hidden;
}

.student-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.student-services .container {
    position: relative;
    z-index: 1;
}

.student-services-heading {
    color: white;
    font-weight: bold;
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.student-services-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
}

.service-item {
    position: relative;
    width: 100%;
    max-width: 170px;
    margin: 0 auto;
}

.service-icon {
    position: relative;
    border-radius: 25%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffffff, var(--light-color));
    z-index: 0;
    border-radius: 25%;
}

.service-icon img {
    position: relative;
    z-index: 1;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    margin: 2px;
    border-radius: 22%;
    object-fit: cover;
}

.service-title {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Notice tab styling */
.notice-tab-container .nav-pills .nav-link {
    background-color: white;
    color: #6b7280 !important;
    border-radius: 30px;
    font-weight: 600;
    margin: 0 5px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    padding: 12px 25px;
    display: inline-block;
    opacity: 1;
}

.notice-tabs {
    display: flex;
    background: #f1f3f4;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.notice-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f1f3f4;
    border: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.notice-tab-btn.active {
    background: #1e40af;
    color: white;
}

.notice-tab-btn:hover:not(.active) {
    background: #e8eaed;
}

.notice-content {
    padding: 20px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

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

/* Demo styling */
.notice-section-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.notice-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 25px;
    text-align: center;
}

.notice-icon {
    margin-bottom: 10px;
}

.notice-icon i {
    font-size: 2rem;
}

.notice-item-new {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.notice-item-new:last-child {
    border-bottom: none;
}

.notice-date-new {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.notice-badge {
    display: inline-block;
    background: #f97316;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
    margin-bottom: 8px;
}

.notice-text {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Activity Section Specific */
.activity-content {
    padding: 20px;
}

.activity-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary-color);
}

.activity-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.activity-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.activity-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.program-details-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-details-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.photo-gallery {
    padding: 40px 30px;
    background: white;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 20px auto 40px;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(31, 41, 55, 0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.view-gallery-container {
    text-align: center;
    padding-bottom: 20px;
}

.view-gallery-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.3);
}

.view-gallery-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
    color: white;
}

.view-gallery-btn::after {
    content: ' ❯';
    margin-left: 8px;
}

/* Footer - Updated with modern gradient */
footer {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/500/500') no-repeat;
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
}

.footer-heading {
    color: white;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s;
    padding-left: 20px;
    position: relative;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link i {
    position: absolute;
    left: 0;
    top: 5px;
    color: white;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 60px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Dropdown submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/*Counter - Updated */
.counter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 25%, var(--primary-color) 50%, var(--accent-color) 75%, var(--primary-color) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: center;
}

.counter-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.counter-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    fill: var(--light-color);
    filter: drop-shadow(0 4px 8px rgba(241, 245, 249, 0.4));
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.counter-label {
    font-size: 1rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-item:nth-child(1) .counter-number { animation-delay: 0.1s; }
.counter-item:nth-child(1) .counter-label { animation-delay: 0.3s; }
.counter-item:nth-child(2) .counter-number { animation-delay: 0.2s; }
.counter-item:nth-child(2) .counter-label { animation-delay: 0.4s; }
.counter-item:nth-child(3) .counter-number { animation-delay: 0.3s; }
.counter-item:nth-child(3) .counter-label { animation-delay: 0.5s; }
.counter-item:nth-child(4) .counter-number { animation-delay: 0.4s; }
.counter-item:nth-child(4) .counter-label { animation-delay: 0.6s; }

/* Responsive adjustments for all sections */
@media (max-width: 992px) {
    /* UPDATED: Contact info and top bar links responsive */
    .contact-info-left {
        gap: 10px;
        justify-content: center;
    }
    
    .top-bar-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }
    
    .contact-info-item,
    .top-bar-link {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .contact-info-item i,
    .top-bar-link i {
        font-size: 0.9rem;
        margin-right: 5px;
    }
    
    .section-heading {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .service-item {
        max-width: 150px;
        margin-bottom: 20px;
    }
    
    .college-name-main {
        font-size: 2rem;
        text-align: center;
    }
    
    .college-subtitle {
        text-align: center;
        font-size: 1rem;
    }
    
    .admission-notice,
    .fees-payment-btn {
        margin-bottom: 10px;
    }
    
    .admission-payment-container {
        justify-content: center;
        gap: 8px;
    }
    
    .admission-notice-compact,
    .fees-payment-btn-compact {
        min-width: 120px;
    }
    
    .admission-title-compact {
        font-size: 0.75rem;
    }
    
    .admission-subtitle-compact {
        font-size: 0.65rem;
    }
    
    .fees-payment-btn-compact {
        font-size: 0.75rem;
    }
    
    .fees-payment-btn-compact span {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    /* UPDATED: Mobile responsive for contact and top bar */
    .top-bar {
        padding: 10px 0;
    }
    
    .contact-info-left {
        gap: 5px;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .top-bar-links {
        gap: 5px;
        padding: 0 5px;
    }
    
    .contact-info-item,
    .top-bar-link {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    .contact-info-item span,
    .top-bar-link span {
        display: none; /* Hide text on mobile, show only icons */
    }
    
    .contact-info-item i,
    .top-bar-link i {
        margin-right: 0;
        font-size: 1rem;
    }
    
    .logo-container {
     float:none;
     display:Block;
     }
      
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        max-width: 90%;
        left: 5%;
        right: 5%;
        bottom: 50%;
        transform: translateY(50%);
        padding: 20px;
        text-align: center;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        text-align: center;
        font-size: 1.8rem;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-heading {
        font-size: 1.4rem;
    }
    
    .schools-section {
        padding: 0 20px;
    }
    
    .student-services-heading {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .service-item {
        max-width: 130px;
    }
    
    .college-name-main {
        font-size: 1.8rem;
    }
    
    .college-subtitle {
        font-size: 0.9rem;
    }
    
    .admission-notice {
        padding: 12px 20px;
        margin-bottom: 12px;
    }
    
    .admission-payment-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .admission-notice-compact {
        padding: 10px 12px;
        min-width: 160px;
    }
    
    .admission-title-compact {
        font-size: 0.7rem;
    }
    
    .admission-subtitle-compact {
        font-size: 0.6rem;
    }
    
    .fees-payment-btn-compact {
        font-size: 0.7rem;
        padding: 10px 12px;
        min-width: 160px;
    }
    
    .fees-payment-btn-compact span {
        font-size: 0.65rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .resource-card {
        height: 180px;
        padding: 25px 15px;
    }
    
    .resource-title {
        font-size: 1.2rem;
    }
    
    .resource-year {
        font-size: 1rem;
    }
    
    .resource-image {
        width: 50px;
        height: 65px;
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .counter-section {
        padding: 60px 0;
    }
    
    .notice-section-card {
        margin-bottom: 30px;
        min-height: auto;
    }
    
    .notice-content {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    /* UPDATED: Extra small screen responsive */
    .contact-info-left {
        justify-content: center;
    }
    
    .contact-info-item,
    .top-bar-link {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .contact-info-item i,
    .top-bar-link i {
        font-size: 0.9rem;
    }
    
    .service-item {
        max-width: 120px;
    }
    
    .service-title {
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-card {
        height: 160px;
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .resource-title {
        font-size: 1.1rem;
    }
    
    .resource-year {
        font-size: 0.95rem;
    }
    
    .resource-image {
        width: 45px;
        height: 55px;
    }
    
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .admission-notice {
        padding: 10px 15px;
    }
    
    .admission-payment-container {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .admission-notice-compact {
        padding: 8px 10px;
        min-width: 140px;
    }
    
    .admission-title-compact {
        font-size: 0.65rem;
    }
    
    .admission-subtitle-compact {
        font-size: 0.55rem;
    }
    
    .fees-payment-btn-compact {
        font-size: 0.65rem;
        padding: 8px 10px;
        min-width: 140px;
    }
    
    .fees-payment-btn-compact span {
        font-size: 0.6rem;
    }
}

/* Custom scrollbar for notice content */
.notice-content::-webkit-scrollbar {
    width: 6px;
}

.notice-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notice-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notice-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Additional animations and effects */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar-collapse.show-mobile {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Accessibility improvements */
.nav-link:focus,
.btn:focus,
.resource-card:focus,
.notice-tab-btn:focus,
.admission-notice:focus,
.fees-payment-btn:focus,
.admission-notice-compact:focus,
.fees-payment-btn-compact:focus,
.contact-info-item:focus,
.top-bar-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ticker-content {
        animation: none;
    }
    
    .counter-section {
        animation: none;
        background: var(--primary-color);
    }
    
    .admission-title {
        animation: none !important;
    }
    
    .admission-title-compact {
        animation: none !important;
    }
    
    .admission-notice::before,
    .fees-payment-btn::before,
    .admission-notice-compact::before,
    .fees-payment-btn-compact::before {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .navbar,
    .news-ticker,
    .carousel,
    .student-services,
    footer {
        display: none !important;
    }
    
    .welcome-section,
    .principal-desk,
    .notice-board {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black !important;
        background: white !important;
    }
    
    .admission-notice,
    .fees-payment-btn,
    .admission-notice-compact,
    .fees-payment-btn-compact,
    .contact-info-item,
    .top-bar-link {
        background: #ccc !important;
        color: black !important;
    }
}
.left-menu-area {
	background: #141E30;
	background: -webkit-linear-gradient(to right, #243B55, #141E30);
	background: linear-gradient(to right, #243B55, #141E30);
	box-shadow: 6px 5px 16px 5px rgba(0, 0, 0, 0.15);
	margin: 30px 0px;
	border-right: #005af2 3px solid;
	overflow: hidden;
	-webkit-border-top-right-radius: 0;
	-moz-border-radius: 35px;
	-moz-border-radius-topright: 0;
	border-radius: 15px;
	border-top-left-radius: 15px;
	border-top-left-radius: 15px;
	border-top-left-radius: 0;
	-webkit-box-shadow: 0 .5rem 1rem rgba(22,28,45,.15) !important;
}
.left-menu-area h2 {
	margin: 10px 0px;
	float: left;
	display: block;
	clear: both;
	width: 100%;
	font-size: 26px;
	line-height: 36px;
	color:#FFF;
}
.left-menu-area h2 strong {
	color:#3882ff;
}
.left-menu-area ul {
	padding:5px;
	margin:10px 0px;
}
.left-menu-area ul li {
	color:#003;
	padding:7px 5px;
	border-bottom:#fff 1px dashed;
	list-style:none !important;
}
.left-menu-area ul li i {
	margin-right:10px;
	color:#89b193;
}
.left-menu-area ul li a {
	color:#99bfff;
	font-size:14px;
	line-height:26px;
	text-decoration:none;
}
.important-info-area ul li a {
	color:#FFF !important;
	font-size:14px;
	line-height:26px;
}
.left-menu-area ul li:before {    
    font-family: 'FontAwesome';
    content: '\f054';
    margin:0 10px 0 0px;
	color:#fff !important;
	float:left;
	font-size:13px;
	line-height:25px;
}
/*.left-menu-area ul li:hover {
	background-color:#f7f7f7;
	border:none;
}*/
.left-menu-area ul li:last-child {
	border-bottom:none;
}
.left-menu-area ul li button {
	background-color:none;
}
.right-content-area {
	margin-top: 10px;
	float:right;
}
.right-content-area h2 {
	margin: 30px 0px;
	float: left;
	display: block;
	clear: both;
	width: 100%;
	font-size: 26px;
	line-height: 36px;
}
.right-content-area h2 strong {
	color: #005af2;
}
.right-content-area h3 {
	text-align:left;
	/*background-image:none;*/
	margin:5x !important;
	padding:5px 10px !important;
	border-bottom:#182848 1px dashed;
	display:block;
	clear:both;
	font-size:24px;
	line-height:30px;
}
.right-content-area h4 {
	text-align:left;
	/*background-image:none;*/
	margin:20x 10px;
	padding:5px 10px;
	border-left:#182848 3px solid;
	color:#182848;
	display:block;
	clear:both;
}
.right-content-area p {
	padding:1%;
	text-align:justify !important;
	font-size:15px !important;
	line-height:24px !important;
	font-family: 'Noto Sans JP', sans-serif !important;
	color:#333 !important;
}
.right-content-area ol {
	padding:0px;
	margin:20px 10px;
}
.right-content-area ol li {
	padding:3px 7px;
	font-size:16px;
	line-height:26px;
	text-align:justify;
	list-style:upper-roman;
	list-style-position:inside;
	color:#002749;
}
.right-content-area ul li {
	padding:7px;
	font-size:16px;
	line-height:26px;
	text-align:justify;
	list-style-position:inside;
	color:#002749;
	list-style:none;
}
.right-content-area ul li:before {    
    font-family: 'FontAwesome';
    content: '\f105';
    margin:0 10px 0 0px;
	color:#005af2;
	font-size:20px;
}
.right-content-area li i {
	margin-right:5px;
	color:#69a37b;
	font-size:22px;
}
.right-content-area li em {
	margin-right:5px;
	color:#69a37b;
	font-size:22px;
}
.right-content-area table {
	width:95%;
	margin:2% 1%;
	padding:1%;
	border:#404f48 1px solid;
	font-size:14px;
	line-height:24px;
	text-align:justify;
}
.right-content-area table tr:nth-child(odd) {
	background-color:#f1f1f1;
}
.right-content-area table tr:nth-child(even) {
	background-color:#fafafa;
}
.right-content-area table tr td {
	padding:5px;
	text-align:left;
}
.right-content-area table tr td a {
	padding:4px 8px;
	background-color:#002147;
	color:#FFF;
	display:block;
}
.right-content-area table tr th {
	background-color:#002147;
	color:#d9fde5;
	text-align:center;
}
.right-content-tab-menu {
	width:44%;
	float:left;
	height:auto;
	overflow:hidden;
	padding:2%;
	margin:2% 1%;
	background: #373B44;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #4286f4, #373B44);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #4286f4, #373B44); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px; /* future proofing */
	-khtml-border-radius: 10px; /* for old Konqueror browsers */
	transition: background-color 2s ease-out;
}
.right-content-tab-menu:hover {
	background: #373B44;  /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #4286f4, #373B44);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #4286f4, #373B44); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.right-content-tab-menu a {
	color:#FFF;
	font-size:24px;
}
.right-content-tab-menu a i {
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px; /* future proofing */
	-khtml-border-radius: 10px; /* for old Konqueror browsers */
	padding:5px;
	background-color:#FFF;
	color:#4286f4;
	margin-right:10px;
}
.table-content {
	width:100%;
	float:left;
	height:auto;
	overflow:hidden;
	display:block;
	clear:both;
	border:none;
}
.table-content:hover {
	overflow-x:scroll;
}
.table-content table {
	width:95%;
	margin:2% 1%;
	padding:1%;
	border:#404f48 1px solid;
	font-size:16px;
	line-height:26px;
	text-align:justify;
}
.table-content table tr:nth-child(odd) {
	background-color:#f1f1f1;
}
.table-content table tr:nth-child(even) {
	background-color:#fafafa;
}
.table-content table tr td {
	padding:5px;
	text-align:left;
}
.table-content table tr td a {
	padding:4px 8px;
	background-color:#002147;
	color:#FFF;
}
.table-content table tr th {
	background-color:#002147;
	color:#d9fde5;
	text-align:center;
}
.faculty {
	width:100%;
	float:left;
	height:auto;
	overflow:hidden;
	display:block;
	clear:both;
	margin:10px 0px 10px 0px;
	padding:0px 0px 10px 0px;
	border-bottom:#335e7a 1px dashed;
	text-align:left;
}
.faculty img {
	float:left;
	padding:5px;
	background-color:#abc4d4;
	border-right: #005af2 3px solid;
	width:15%;
	height:auto;
	margin:0px 20px 10px 5px;
	-webkit-border-top-right-radius: 0;
	-moz-border-radius: 35px;
	-moz-border-radius-topright: 0;
	border-radius: 15px;
	border-top-left-radius: 15px;
	border-top-left-radius: 15px;
	border-top-left-radius: 15px;
	border-top-left-radius: 0;
	-webkit-box-shadow: 0 .5rem 1rem rgba(22,28,45,.15) !important;
}
.faculty a {
	padding:5px 10px;
	float:left;
	margin:15px 0px;
	color:#FFFFFF;
	background: #1e3c72;
	background: -webkit-linear-gradient(to right, #2a5298, #1e3c72);
	background: linear-gradient(to right, #2a5298, #1e3c72);
}