 @font-face {
     font-family: 'Kalpurush';
     src: url('fonts/kalpurush.ttf') format('truetype');
     font-weight: normal;
     font-style: normal;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     text-decoration: none;
     list-style: none;
     font-family: 'Kalpurush', 'Hind Siliguri', sans-serif !important;
     font-size: 14px;
 }

:root {
    --primary: #003366;
    --primary-light: #004080;
    --secondary: #d9534f;
    --accent: #f0ad4e;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --ribbon-bg: linear-gradient(135deg, #002244, #003366);

    /* Repaint Bootstrap's "success" utility classes (bg-success, text-success,
       btn-success, bg-success-subtle, badges, etc.) to the brand palette so
       existing pages stay consistent without editing every template. */
    --bs-success: var(--primary);
    --bs-success-rgb: 0, 51, 102;
    --bs-success-bg-subtle: #e6ecf3;
    --bs-success-border-subtle: #b8c9dc;
    --bs-success-text-emphasis: #002244;

    /* Old "gov-green" component theme (pre-redesign pages): repaint the
       token itself so anything still using var(--gov-green) follows suit. */
    --gov-green: var(--primary);
    --gov-green-dark: #002244;
    --gov-green-soft: #e6ecf3;
}

/* style.css hardcodes #198754 with !important on several legacy components
   (not routed through --bs-success or --gov-green) — repaint those directly
   so every page that still uses these classes matches the new theme. */
.c-button {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.c-button:hover {
    background: var(--primary) !important;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}
.feature-card {
    border-top-color: var(--primary) !important;
}
.category-header {
    border-left-color: var(--primary) !important;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.05), transparent);
}
.service-card:hover .service-icon {
    background: var(--primary) !important;
}
.stat-card:hover {
    border-color: var(--primary);
}

html, body {
    margin: 0;
    padding: 0;
}

/* .articleareas (management/faculty/product_details) holds float:left cards
   with no clearfix, so it collapses to 0 height — the next section (dark
   footer/contact block) then rises up and renders behind the still-visible
   floated cards, making the page look like one solid dark block. flow-root
   gives it its own block-formatting context so floated children are
   contained and the section keeps real height. */
.articleareas {
    display: flow-root;
}


/* Font Awesome's icon glyph font must win over the rule above too. */
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fas, .far, .fal, .fat {
    font-family: "Font Awesome 6 Free" !important;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}

body {
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

/* Top Bar Info */
.top-bar {
    background: #001f3f;
    color: #fff;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--secondary);
    flex-wrap: wrap;
    gap: 6px;
}
.top-bar .info-items span {
    margin-right: 20px;
}
.top-bar .info-items i {
    color: var(--accent);
    margin-right: 5px;
}
.top-bar .developer-credit {
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.1);
    padding: 2px 10px;
    border-radius: 4px;
}

/* Site Scroller Bar (above navbar) */

.site-scroller-bar {
    display: flex;
    align-items: center;
    background: var(--secondary);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
}

/* Fixed Title */
.site-scroller-title {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    padding: 7px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

/* Scrolling Content */
.site-scroller-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

/* Moving Track */
.site-scroller-track {
    display: inline-flex;
    width: max-content;
    animation: siteScrollerMove 55s linear infinite;
}

.site-scroller-track:hover {
    animation-play-state: paused;
}

.site-scroller-item {
    position: relative;
    padding: 0 40px;
    font-size: 18px;
    font-weight: 500;
}

.site-scroller-item::after {
    content: '•';
    position: absolute;
    right: 12px;
    opacity: 0.6;
}

.site-scroller-item a {
    color: #fff;
    text-decoration: none;
}

.site-scroller-item a:hover {
    text-decoration: underline;
}

@keyframes siteScrollerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header / Nav */
.header-nav-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ribbon-nav {
    background: var(--ribbon-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    min-height: 75px;
    position: relative;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-placeholder {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    border: 2px solid var(--accent);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 0.85rem;
}
.logo-area img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.brand-name {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-link {
    color: #fff;
    padding: 0 15px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}
.nav-link:hover, .nav-item.active .nav-link {
    background: rgba(255,255,255,0.15);
    color: var(--accent);
}
.nav-link i {
    margin-right: 5px;
    font-size: 0.95rem;
}
.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--secondary);
    z-index: 10;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    padding: 12px 20px;
    color: var(--text-dark);
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 25px;
}
.nav-cta {
    background: var(--secondary);
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    height: auto !important;
    margin-left: 10px;
    font-weight: 600 !important;
    box-shadow: 0 2px 5px rgba(217,83,79,0.4);
}
.nav-cta:hover {
    background: #c9302c !important;
    color: #fff !important;
}
.nav-cta.admission {
    background: #5cb85c;
    box-shadow: 0 2px 5px rgba(92,184,92,0.4);
}
.nav-cta.admission:hover {
    background: #4cae4c !important;
}
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Banner Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #000;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}
.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.leaflet-box {
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: left;
    border-top: 4px solid var(--secondary);
}
.leaflet-box h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.btn-slider {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.btn-slider:hover {
    background: #c9302c;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(0,0,0,0.4);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}
.slider-arrow:hover {
    background: var(--secondary);
}
.arrow-left { left: 20px; }
.arrow-right { right: 20px; }

/* Institute Cards */
.institutes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.institute-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}
.institute-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-bottom-color: var(--secondary);
}
.inst-img-wrapper {
    height: 180px;
    background: #eaeaea;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.inst-img-placeholder {
    font-size: 3.5rem;
    opacity: 0.8;
}
.inst-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.inst-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}
.inst-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.inst-btn {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Course Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.category-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    transition: all 0.3s;
}
.category-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}
.category-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    transition: color 0.3s;
}
.category-card:hover .category-icon {
    color: var(--accent);
}
.category-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
}
.category-card:hover h4 {
    color: #fff;
}

/* Counter Section */
.counter-section {
    background: linear-gradient(rgba(0,51,102,0.95), rgba(0,51,102,0.95));
    color: #fff;
    padding: 60px 0;
}
.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    text-align: center;
}
.counter-item i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}
.counter-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}
.counter-label {
    font-size: 0.85rem;
    color: #dddddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Courses */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.course-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}
.course-img {
    height: 170px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    position: relative;
}
.course-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 3px;
}
.course-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.course-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}
.course-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
    padding: 8px 0;
}
.course-meta div {
    margin-bottom: 4px;
}
.course-meta i {
    width: 18px;
    color: var(--secondary);
}
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.course-fee {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}
.course-btn {
    background: var(--primary);
    color: #fff;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.course-btn:hover {
    background: var(--primary-light);
}

/* Notice Board & News */
.news-notice-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.notice-board {
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-top: 4px solid var(--secondary);
    height: fit-content;
}
.notice-list {
    margin-bottom: 20px;
}
.notice-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.notice-item:last-child {
    border-bottom: none;
}
.notice-date-box {
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    padding: 5px 10px;
    text-align: center;
    min-width: 65px;
    height: fit-content;
}
.notice-date-box .day {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.notice-date-box .month {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.notice-details h5 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: color 0.2s;
}
.notice-details h5:hover {
    color: var(--secondary);
}
.notice-tag {
    display: inline-block;
    background: rgba(0,51,102,0.1);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
}
.btn-view-all {
    display: block;
    text-align: center;
    background: var(--bg-light);
    color: var(--primary);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #ddd;
    transition: all 0.2s;
}
.btn-view-all:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* News & Events */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}
.news-img {
    height: 140px;
    background: #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}
.news-body {
    padding: 15px;
}
.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Activities Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.gallery-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-card:hover .gallery-img { transform: scale(1.1); }
.gallery-info h6 {
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}
.zoom-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-card:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Success Stories */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.success-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    text-align: center;
}
.video-thumb {
    height: 160px;
    background: #2d3748;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}
.play-btn {
    font-size: 3rem;
    color: var(--secondary);
    transition: transform 0.3s;
}
.success-card:hover .play-btn {
    transform: scale(1.15);
    color: #fff;
}
.success-body {
    padding: 20px;
}
.student-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}
.student-course {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.student-achievement {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5cb85c;
    background: rgba(92,184,92,0.1);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Support Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.team-card {
    background: #fff;
    border-radius: 6px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}
.member-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
    border: 3px solid var(--primary-light);
}
.member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}
.member-desig {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 8px;
}
.member-bio {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Partner Sliders */
.partner-slider-container {
    background: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    position: relative;
}
.partner-slider-track {
    display: flex;
    width: calc(200px * var(--partner-count, 16));
    animation: scrollLogos var(--scroll-duration, 25s) linear infinite;
}
.partner-slider-track:hover {
    animation-play-state: paused;
}
.partner-slider-track.static-row {
    width: auto;
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
}
.partner-logo {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}
.logo-box-placeholder {
    width: 70px;
    height: 70px;
    background: #f0f4f8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.partner-logo span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * var(--partner-count, 16) / 2)); }
}

/* Contact & Follow */
.contact-follow-section {
    background: #001529;
    color: #fff;
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cf-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.contact-pane h4, .follow-pane h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
    font-weight: 600;
}
.contact-pane h4::after, .follow-pane h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary);
}
.contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-card-item {
    display: flex;
    gap: 12px;
}
.contact-card-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 4px;
}
.contact-card-item a, .contact-card-item p {
    color: #ccc;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.contact-card-item a:hover {
    color: #fff;
}
.contact-card-item strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 5px;
}
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}
.social-icon.fb:hover { background: #3b5998; }
.social-icon.ln:hover { background: #0077b5; }
.social-icon.inst:hover { background: #e1306c; }
.social-icon.yt:hover { background: #ff0000; }
.social-icon.tw:hover { background: #1da1f2; }

/* Footer */
.main-footer {
    background: #001122;
    color: #aaa;
    padding: 50px 0 20px;
    font-size: 0.85rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-links i {
    margin-right: 6px;
    font-size: 0.75rem;
    color: var(--secondary);
}
.map-box {
    width: 100%;
    height: 150px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.map-placeholder-text {
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
    gap: 8px;
}
.btn-map-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
}
.btn-map-link:hover {
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #777;
}
.footer-bottom a {
    color: #999;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--text-dark);
}
.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close:hover { color: #000; }

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}
.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

/* Floating widgets (WhatsApp + Bengali/Hijri clock) */
.floating-clock-plugin {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 12px 25px;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
}
.floating-clock-plugin:hover {
    transform: translateY(-8px) scale(1.02);
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.25);
}
.close-clock-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: var(--secondary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1501;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-clock-btn:hover {
    transform: scale(1.1);
}
.clock-text-wrapper {
    color: var(--text-dark) !important;
}
#floatingClock {
    line-height: 1.3;
    text-align: center;
}
#timeLine {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}
#dateLine {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
}
#calendarExtraInfo {
    background: var(--bg-light);
    border-radius: 12px;
    margin-top: 10px;
    padding: 12px !important;
    border: 1px solid #e2e8f0;
}

@media(max-width: 992px) {
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    .news-notice-wrapper { grid-template-columns: 1fr; }
    .cf-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-list { grid-template-columns: 1fr; }
    .slide-content h1 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
}
