/* --- Base Styles & Variables --- */
:root {
    --primary-color: #006400; /* Classic political deep blue */
    --secondary-color: #e53935; /* Vibrant red accent */
    --dark-color: #1a1a24;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    /*--font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Hind Siliguri', sans-serif;
    color: #1a1a1a;
}

.new_font {
	font-size: 1rem;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.max-width-sm {
    max-width: 600px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.text-center {
    text-center: center;
    text-align: center;
}

.grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 15px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: #0a3578; }

.btn-secondary { background-color: var(--white); color: var(--dark-color); border: 2px solid var(--dark-color); }
.btn-secondary:hover { background-color: var(--dark-color); color: var(--white); }

.btn-block { display: block; width: 100%; text-align: center; }




/* --- Hero Section --- */
.hero { 
    position: relative;
    color: var(--white); 
    padding: 140px 0 160px 0; 
    text-align: center; 
    overflow: hidden;
    background-color: #1a1a24; 
} 

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    /* Start hidden */
    opacity: 0;
    
    /* FIX: Match initial scale/transform to the 0% keyframe to prevent initial jumps */
    transform: scale(1);
    
    /* Smooth transition for fading */
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Hardware acceleration */
    will-change: opacity, transform; 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.slide.active {
    opacity: 1;
    /* Triggers the Ken Burns effect smoothly without resetting base transform */
    animation: smoothZoom 6.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Cinematic Ken Burns effect */
@keyframes smoothZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05); 
    }
}

.hero-content { 
    position: relative;
    z-index: 2; 
} 

.hero h1 { color: var(--white); font-size: 3rem; max-width: 800px; margin: 0 auto 20px auto; } 
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 50px auto; opacity: 0.9; } 
.hero-buttons { display: flex; gap: 15px; justify-content: center; } 

.slogan {
    position: absolute;
    top: -120px;        /* Unified upper position for both desktop and small windows */
    left: 50%;          /* Centers it horizontally */
    transform: translateX(-50%); /* Perfect centering alignment */
    z-index: 999;
}

@media (max-width: 1200px) {    
    .hero {
        padding: 100px 0 200px 0;
        display: flex;
        align-items: flex-end;
        min-height: 80vh;
    }
    
    .hero h1 { font-size: 2rem; } 
    .hero p { margin-bottom: 25px; }
    .hero-buttons { display: flex; gap: 15px; opacity: 0; } 
    
    .slide {
        background-position: right center;
    }
    
    .hero-content {
        width: 100%;
    }
}


/* --- Cards / Features --- */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);

}

.card .icon { font-size: 2rem; margin-bottom: 15px; }

/* --- Events --- */
.event-card {
    background: var(--white);
    display: flex;
    flex-direction: column; /* Stacks image, date banner, and details vertically */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Image adjustments */
.event-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  /* NEW: This ensures the image always aligns to the top, regardless of screen size */
  object-position: top;
  display: block;
}
/* Date banner setup: Made full-width and horizontal */
.event-date {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 25px; /* Clean, slim top/bottom padding */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns text cleanly to the left; change to center if preferred */
    text-align: left;
    width: 100%; /* Spans all the way across */
    letter-spacing: 1px;
}

/* Body wrapper for the card context */
.event-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-details { 
    padding: 25px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.read-more { 
    color: var(--secondary-color); 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-block; 
    margin-top: auto; /* Pushes the button to the bottom of the card uniformly */
    padding-top: 15px;
}

/* Cleaned up responsive adjustments */
@media (max-width: 600px) {
    .event-date { 
        padding: 10px 20px; 
    }
}
/* --- Grid System for 4 Columns --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px; /* Matches your card padding for visual balance */
}

/* Tablet view */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Mobile view */
@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px; /* Slightly tighter spacing on small screens */
    }
}

/* --- Form --- */
.form-wrapper {
    background: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}
.form-wrapper h2 { margin-bottom: 10px; }
.form-wrapper p { margin-bottom: 25px; color: #666; }

.form-group { margin-bottom: 15px; }
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #999;
    padding: 40px 0;
    font-size: 0.9rem;
}
.footer-fineprint {
    margin-top: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #444;
    display: inline-block;
    padding: 5px 15px;
}

/* --- Additions for News Detail Page Layout --- */
.max-width-md {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: transform 0.2s;
}
.back-link:hover {
    transform: translateX(-4px);
}

.article-header {
    background-color: var(--light-color);
    padding: 60px 0 40px 0;
    border-bottom: 1px solid #eaeaea;
}
.article-meta {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 10px;
}
.article-lead {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.5;
    margin-top: 15px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-body p {
    margin-bottom: 25px;
}
.article-body h2 {
    margin: 40px 0 20px 0;
    font-size: 1.6rem;
}
.article-body ul {
    margin-bottom: 25px;
    padding-left: 20px;
}
.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 35px 0;
}

.article-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

/* --- Gallery Layout Enhancements 3 column --- */
.gallery-card {
    padding: 0; /* Clear card padding so image sits flush at top */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-image-wrapper {
    width: 100%;
    height: 220px; /* Keeps image grid heights completely uniform */
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents squishing or stretching of your images */
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05); /* Adds a premium subtle hover zoom effect */
}

.gallery-caption {
    padding: 20px;
    flex-grow: 1; /* Ensures text heights match beautifully even with varying lengths */
}

.gallery-caption p {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

/* --- 2-Column Gallery Styling --- */
.gallery-card-2col {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.gallery-image-wrapper-2col {
    width: 100%;
    height: 320px; /* Taller viewport to complement wider 2-column frames */
    overflow: hidden;
}

.gallery-image-wrapper-2col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card-2col:hover .gallery-image-wrapper-2col img {
    transform: scale(1.03); /* Soft hover effect */
}

/* --- News Ticker Styles --- */
.ticker-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-bottom: 1px solid #eaeaea;
    border-top: 1px solid #eaeaea;
    overflow: hidden;
    height: 44px;
    font-size: 0.95rem;
}

.ticker-title {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0 20px;
    line-height: 44px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Creates the crisp right-pointing triangle shape from your image */
.ticker-title::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--secondary-color);
    z-index: 3;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 20px;
    position: relative;
    background-color: var(--white);
}

.ticker-text {
    display: flex;
    white-space: nowrap;
    gap: 60px; /* Space out individual news pieces */
    animation: marquee 25s linear infinite;
}

.ticker-text span {
	font-family: 'Noto Sans Bengali', sans-serif;
    color: var(--text-color);
	font-size: 16px;
    font-weight: 500;
}

/* Pause the scrolling animation when a user hovers over a headline */
.ticker-content:hover .ticker-text {
    animation-play-state: paused;
}

/* Infinite marquee scroll animation */
@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Responsive adjustment for small phone viewports */
@media (max-width: 480px) {
    .ticker-title {
        padding: 0 12px;
        font-size: 0.85rem;
    }
    .ticker-text {
        font-size: 0.85rem;
    }
}

/* --- Team Quotes Styling --- */
.quote-card {
    background: var(--white);
    /* Balanced top padding for the overlapping right-side image */
    padding: 60px 40px 40px; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: visible; /* Keeps the floating image visible */
}

.quote-image {
    width: 80px; 
    height: 80px; 
    border-radius: 12px; /* Rounded square effect */
    object-fit: cover; 
    position: absolute;
    top: -40px; /* Pulls it up past the card border */
    right: 40px; /* Aligns it beautifully to the right edge */
    border: 4px solid var(--white); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Keeps it layered neatly over the background elements */
}

.quote-icon {
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-color);
    line-height: 1;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.15;
}

.quote-text {
	font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.quote-author strong {
    display: block;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.quote-author span {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Video Gallery Styling --- */
.video-carousel-wrapper {
    position: relative;
    padding: 0 20px;
    margin-top: 30px;
}

/* Acts as the viewport framing window to hide outlying videos */
.video-carousel-container {
    overflow: hidden;
    width: 100%;
}

/* Linear horizontal runway track for cards */
.video-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    --items-per-view: 3; /* Desktop layout fallback default */
}

.video-card {
    /* Calculates dynamic item sizes minus layout gaps */
    flex: 0 0 calc((100% - (20px * (var(--items-per-view) - 1))) / var(--items-per-view));
    background: #ffffff; /* Fallback if var(--white) isn't loaded */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Fluid Responsive 16:9 Aspect Ratio Container for iFrames */
.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    background-color: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    padding: 15px 10px;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.video-caption p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f2c59; 
    line-height: 1.4;
    text-align: left;
}

/* Navigation Arrow Overlays */
.video-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #0f2c59; 
    border: 1px solid rgba(15, 44, 89, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(15, 44, 89, 0.12);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(4px); /* Modern frosted-glass touch */
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
}

/* Control SVG sizing inside the button */
.video-carousel-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
/* Premium Interactive Hover States */
.video-carousel-btn:hover {
    background-color: #0f2c59; 
    color: #ffffff;
    border-color: #0f2c59;
    box-shadow: 0 6px 20px rgba(15, 44, 89, 0.3);
}

/* Micro-animations: Arrows nudge outward slightly on hover */
.btn-prev:hover svg {
    transform: translateX(-2px);
}

.btn-next:hover svg {
    transform: translateX(2px);
}

/* Active press state click effect */
.video-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Perfect alignment breakout positioning */
.btn-prev { left: -24px; }
.btn-next { right: -24px; }

/* Mobile & Tablet Adaptation */
@media (max-width: 768px) {
    .video-carousel-wrapper {
        padding: 0;
    }
    .video-carousel-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
    }
    .video-carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    /* Tuck them safely inside the container edges on mobile devices */
    .btn-prev { left: 10px; }
    .btn-next { right: 10px; }
	
    .video-track {
        --items-per-view: 1; /* Swaps viewport calculation layout logic smoothly to 1 item */
        gap: 15px;
    }
    .video-card {
        flex: 0 0 100%;
    }	
}