/* --- Variables & Reset --- */
:root {
    --primary-red: #e31e24;       /* Bright Retina Red */
    --dark-red: #8b0000;          /* Deep red for Hero/Gradients */
    --text-black: #1a1a1a;
    --text-grey: #555555;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #eeeeee;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --font-main: 'Hind Siliguri', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-black);
    background-color: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- Top Bar (Dark) --- */
.top-bar {
    background-color: #111;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-links .social-btn {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.3s;
}
.social-links .social-btn:hover { background: var(--primary-red); }

/* --- Hero Section (Deep Red Background) --- */
.hero-section {
    background: radial-gradient(circle at 30% 50%, #7b0000, #3a0000);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: black;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #444;
    gap: 10px;
}
.store-btn i { font-size: 24px; }
.store-btn .btn-text {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    line-height: 1;
}
.store-btn .btn-text strong { font-size: 16px; margin-top: 2px; }

/* Simple phone mockup styles using CSS shapes */
.phone-mockup-group {
    display: flex;
    gap: 10px;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
}
.phone {
    width: 120px;
    height: 240px;
    background: #fff;
    border: 4px solid #111;
    border-radius: 15px;
    position: relative;
    background-image: linear-gradient(#e3f2fd, #fff);
}
.phone::before {
    content: '';
    position: absolute;
    top: 5px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; background: #333; border-radius: 2px;
}
.p2 { margin-top: -30px; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* --- Courses Section --- */
.section { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.section-header h2 span { color: var(--primary-red); }

.tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tag {
    padding: 6px 16px;
    border-radius: 20px;
    background: #eee;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}
.tag:hover, .tag.active {
    background: var(--primary-red);
    color: #fff;
}
/* --- Popular Courses Section --- */
.courses-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background */
}

.courses-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.highlight-red {
    color: #780A0A;
}

/* --- Filters --- */
.course-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #fff5f5; /* bg-light-red equivalent */
    border: 1px solid #780A0A;
    border-radius: 8px;
    color: #000;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #780A0A;
    color: #fff;
}

.dropdown-filter {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Course Grid --- */
.course-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 40px;
    width: 100%;
    padding: 10px;
}

@media (min-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    }
}

@media (min-width: 1280px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    }
}

/* --- Card Styles --- */
.course-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: visible; /* To allow the badge to float outside */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.course-card:hover {
    transform: translateY(-5px);
    background-color: #fff5f5; /* Hover bg-red-100 equivalent */
}

/* Floating Badge Icon */
.card-badge {
    position: absolute;
    top: -25px; /* Pull it up */
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: #780A0A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-badge img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Make icon white */
}

.card-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2F327D; /* Specific blue color from your code */
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-features {
    list-style: none;
    padding: 0;
}

.course-features li {
    font-size: 0.9rem;
    color: #3d3c3c;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #3d3c3c;
    border-radius: 50%;
    margin-top: 6px; /* Align with text */
    flex-shrink: 0;
}

/* --- Card Actions (Buttons) --- */
.card-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px 20px;
}

.btn-view {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(120, 10, 10, 0.5);
    background-color: #fff5f5;
    color: black;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-view:hover {
    background-color: #22c55e; /* Green-500 */
    border-color: #22c55e;
    color: white;
}

.btn-enroll {
    flex: 1;
    background-color: #780A0A;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-enroll:hover {
    background-color: white;
    color: black;
    border: 1px solid #780A0A; /* Optional for contrast */
}

/* View All Button */
.view-all-wrapper {
    margin-top: 40px;
}

.btn-view-all {
    display: inline-block;
    background-color: #780A0A;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.btn-view-all:hover {
    background-color: #5a0707;
}



/* Force hide utility */
.hidden-card {
    display: none !important;
}

/* Ensure controls are visible and centered */
#pagination-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 20px;
    width: 100%;
}
.button-box{
    margin-left: 50%;
}
/* --- Footer --- */
.footer {
    background: #1a1a1a;
    color: #bbb;
    padding-top: 60px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}
.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: var(--primary-red); }

.footer-socials { margin-top: 15px; display: flex; gap: 10px; }
.footer-socials a {
    width: 35px; height: 35px;
    background: #333;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}
.footer-socials a:hover { background: var(--primary-red); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .top-bar { display: none; } /* Hide top bar on mobile as per common patterns */
    .nav-links, .nav-actions { display: none; } /* Simplified for this demo */
    .mobile-menu-btn { display: block; }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 32px; }
    .hero-image { margin-top: 40px; }
    
    .course-grid { grid-template-columns: 1fr; }
}




/* --- Variables & Reset --- */
:root {
    --brand-red: #921313;
    --brand-red-light: #fff5f5;
    --text-black: #0f0f0f;
    --text-grey: #595959;
    --white: #ffffff;
    --font-main: 'Hind Siliguri', sans-serif;
    --container-width: 1400px;
    --radius-large: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-black);
    background-color: var(--white);
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
button { font-family: inherit; border: none; cursor: pointer; outline: none; }

/* --- Notification Bar --- */
.top-notification {
    background: var(--brand-red);
    color: white;
    font-size: 14px;
    padding: 10px 0;
    position: relative;
    text-align: center;
}
.notification-content a {
    text-decoration: underline;
    font-weight: 700;
}
.close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    font-size: 20px;
}


.btn-lms {
    border: 1px solid var(--brand-red);
    color: var(--brand-red);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}
.btn-lms:hover {
    background: var(--brand-red-light);
}
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
}
.bar {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 40px 0;
    overflow: hidden; /* Prevent horizontal scroll */
    background: white;
}

.hero-container {
    display: flex;
    flex-direction: column; /* Mobile first */
    gap: 40px;
    align-items: center;
}

/* Hero Text Side */
.hero-text-wrapper {
    width: 100%;
    text-align: center;
}

.hero-headers h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 15px;
    color: black;
}
.highlight-red {
    color: var(--brand-red);
    margin-left: 5px;
}

.sub-heading {
    font-size: 1.1rem;
    color: var(--text-black);
    margin-bottom: 30px;
}

/* Features */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
    align-items: center; /* Center on mobile */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-grey);
    font-weight: 600;
    font-style: italic;
}
.icon-box svg {
    font-size: 1.2rem;
    color: var(--text-black);
    display: block;
}

/* Buttons */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--brand-red);
    color: white;
}
.btn-primary:hover {
    background: #7a1010;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--brand-red-light);
    color: var(--text-black);
    border: 1px solid var(--brand-red);
}
.btn-secondary:hover {
    background: #ffe0e0;
    transform: translateY(-2px);
}

/* Hero Visual Side */
.hero-visual-wrapper {
    width: 100%;
    position: relative;
    max-width: 600px; /* Constrain image size */
}

.carousel-frame {
    width: 100%;
    aspect-ratio: 16 / 10; /* Common responsive ratio */
    border-radius: var(--radius-large);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth easing */
}

.slide {
    min-width: 100%;
    height: 100%;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The "45 Years" Badge */
.badge-card {
    position: absolute;
    bottom: -25px; /* Half overlapping */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: center;
    z-index: 10;
    min-width: 180px;
}

.badge-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-red);
    line-height: 0.9;
}
.badge-text {
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    color: #333;
}

/* Decorative half-circle clipped at bottom of badge (optional style match) */
.badge-decor {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: var(--brand-red);
    border-radius: 0 0 40px 40px; /* Semi-circle */
    display: none; /* Hidden by default unless strictly needed */
}

/* --- Desktop Responsiveness (lg breakpoint) --- */
@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 40px 20px;
    }

    .hero-text-wrapper {
        width: 48%;
        text-align: left;
    }

    .hero-headers h1 {
        font-size: 3.5rem; /* Large desktop font */
    }

    .features-grid {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 1fr; /* Or 1fr 1fr if you want grid */
    }

    .cta-group {
        justify-content: flex-start;
    }

    .hero-visual-wrapper {
        width: 48%;
        max-width: none;
    }
}


/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* Text Content */
.services-text {
    width: 100%;
    text-align: center;
    max-width: 600px;
}

.services-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-black);
    margin-bottom: 25px;
}

.services-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563; /* Gray-700 */
}

/* Wheel Diagram Wrapper */
.services-wheel-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

/* The Wheel Container (400x400 fixed size reference) */
.service-wheel {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}

/* Background SVG */
.wheel-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: spin-slow 60s linear infinite; /* Optional: Subtle rotation */
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Center Text */
.wheel-center-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 40px;
    z-index: 1;
}

/* Common Icon Styles */
.wheel-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease, background-color 0.3s;
    cursor: pointer;
    z-index: 2;
}

.wheel-icon:hover {
    transform: scale(1.15);
    background-color: #7a0f0f;
}

/* Specific Positions (Derived from your provided logic) */
.icon-top {
    top: -40px; /* Offset to center on line */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-red); 
}
.icon-top:hover { transform: translateX(-50%) scale(1.15); }

.icon-top-right {
    top: 60px;
    right: -15px;
}

.icon-bottom-right {
    bottom: 60px;
    right: -15px;
    background-color: #c91818; /* Slightly lighter red var */
}

.icon-bottom {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}
.icon-bottom:hover { transform: translateX(-50%) scale(1.15); }

.icon-bottom-left {
    bottom: 60px;
    left: -15px;
}

.icon-top-left {
    top: 60px;
    left: -15px;
}

/* --- Responsive (Desktop: Side by Side) --- */
@media (min-width: 1024px) {
    .services-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .services-text {
        text-align: left;
        width: 45%;
    }

    .services-text h2 {
        font-size: 3rem;
    }
    
    .services-wheel-wrapper {
        width: 50%;
        justify-content: flex-end;
        padding-right: 40px;
    }
}

/* --- Mobile Scaling --- */
@media (max-width: 480px) {
    .service-wheel {
        /* Scale down the entire wheel to fit mobile screens without calculation */
        transform: scale(0.75); 
        margin: -50px 0; /* Adjust negative margin to reduce gap caused by scaling */
    }
}


/* --- Publications Section --- */
.pub-section {
    padding: 60px 0;
    background-color: #f9fafb; /* Light gray background like screenshot */
}

/* Slider Layout */
.pub-slider-wrapper {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.pub-slider-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px; /* Space for shadows */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
    scrollbar-width: none;  /* Hide scrollbar Firefox */
}
.pub-slider-container::-webkit-scrollbar { display: none; }

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.slider-btn:hover { background: #f3f4f6; }
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* --- Publication Card Design --- */
.pub-card {
    min-width: 100%; /* Mobile: 1 card */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: visible; /* Important for floating image */
}

.pub-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* The "Floating" Image */
.pub-image-box {
    position: relative;
    width: 160px;
    height: 200px;
    margin-top: -45px; /* Pull up */
    margin-left: -15px; /* Pull left */
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    background: white;
    flex-shrink: 0;
}
.pub-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444; /* Tailwind red-500 */
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Content */
.pub-content {
    flex-grow: 1;
}
.pub-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-black);
}
.pub-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-meta {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 10px;
}
.pub-meta p { margin-bottom: 4px; }

.pub-price {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-black);
}
.price-old {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Action Buttons Footer */
.pub-actions {
    padding: 15px 24px 24px;
    display: flex;
    gap: 10px;
    border-top: 1px solid transparent;
}
.btn-buy {
    flex: 1;
    background: #ef4444;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #ef4444;
}
.btn-buy:hover { background: #dc2626; }

.btn-preview {
    flex: 1;
    background: white;
    color: #b91c1c; /* red-700 */
    border: 1px solid #b91c1c;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-preview:hover { background: #fef2f2; }

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 30px;
}
.btn-view-more {
    background: #660D0D; /* Specific dark red from screenshot */
    color: white;
    padding: 10px 24px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
}
.btn-view-more:hover { background: #500a0a; }

/* --- Responsive Breakpoints --- */
@media (min-width: 768px) {
    .pub-card {
        min-width: calc(50% - 15px); /* 2 cards per view */
    }
    .pub-card-body {
        flex-direction: row; /* Image left, text right */
    }
}


/* --- Why Choose Us Section --- */
.why-choose-section {
    padding: 60px 0;
    background-color: #fff;
}

.why-choose-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
}

.why-choose-title .text-red {
    color: #b91c1c; /* Tailwind red-700 */
    display: inline-block;
}

/* Responsive Grid Logic */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
    gap: 16px;
}

/* Desktop Grid: 4 columns */
@media (min-width: 1280px) {
    .why-choose-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.choose-card {
    position: relative;
    cursor: pointer;
}

.choose-card-inner {
    padding: 16px;
    border-radius: 8px;
    background: white;
    border: 1px solid #780A0A; /* Dark Red border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Special height for cards with long text */
.card-tall {
    height: 170px;
}

@media (min-width: 1280px) {
    .choose-card-inner {
        height: 180px;
    }
}

/* Hover Effects */
.choose-card:hover .choose-card-inner {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.choose-card:hover .choose-text {
    color: #660D0D;
}

/* Icon Styling */
.choose-icon {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.choose-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

@media (min-width: 640px) {
    .choose-icon img {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 1280px) {
    .choose-icon img {
        width: 80px;
        height: 80px;
    }
}

/* Text Styling */
.choose-text {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    transition: color 0.3s;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .choose-text {
        font-size: 18px;
    }
}

@media (min-width: 1536px) {
    .choose-text {
        font-size: 1.125rem;
    }
}


/* --- Success Story Section --- */
.success-story-section {
    padding: 60px 0;
    background: #fff;
}

/* Story Header Text */
.story-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    opacity: 0; /* JS handles fade in */
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.story-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #b91c1c; /* Red-700 */
    margin-bottom: 20px;
}

.story-header p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #0a0a0a;
    font-weight: 600;
}

/* Animation Class */
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stats Wrapper (The Red Box) --- */
.stats-wrapper {
    padding: 0 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s; /* Slight delay */
}

.stats-container {
    background-color: #7f1d1d; /* Deep Red Background from screenshot */
    /* If there is a background image texture, add it here */
    border-radius: 24px;
    padding: 50px 20px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.3);
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.3;
}
.stats-title span {
    display: inline-block;
}

/* Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cols on mobile */
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual Stat Cards */
.stat-card {
    background-color: #450a0a; /* Darker red (red-950) */
    border-radius: 12px;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem; /* Fallback */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
    font-family: 'Hind Siliguri', sans-serif; 
}

/* Bengali numerals need specific font handling sometimes, 
   but standard Google Fonts usually work fine */

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* --- Responsive Breakpoints --- */
@media (min-width: 768px) {
    .story-header h2 { font-size: 3rem; }
    .stats-title { font-size: 3rem; }
    
    .stat-number { font-size: 3.5rem; }
    .stat-label { font-size: 1.25rem; }
}

@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cols on desktop */
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 10px;
    }
    .stat-card {
        padding: 20px 5px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .mobile-break {
        display: block;
    }
}

/* --- Contact CTA Section --- */
.contact-cta {
    background-color: #121212; /* Exact dark background */
    border-radius: 24px;
    margin: 60px 15px; /* Margin to match 'mx-3' */
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

/* Background Pattern Overlay */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Replace with actual image path or use a placeholder hex pattern */
    background-image: url('https://retinabd.org/images/bg-shapes.webp');
    background-repeat: repeat;
    opacity: 0.15; /* Subtle background as seen in the screen */
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 768px;
    margin: 0 auto;
}

.contact-title {
    font-size: 1.5rem; /* Mobile font size */
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-title .highlight-red {
    color: #dc2626; /* Tailwind red-600 */
}

.contact-desc {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-time {
    color: #ef4444; /* Bright Red-500 */
    font-size: 1.125rem;
    font-weight: 600;
    margin: 24px 0;
}

/* --- Buttons Styling --- */
.phone-btn-wrapper {
    margin-bottom: 24px;
}

.btn-call {
    background-color: #dc2626; /* red-600 */
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-call:hover {
    background-color: #b91c1c; /* red-700 */
}

.social-btn-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Wraps on small screens */
}

/* Facebook Button (Blue Background Style) */
.btn-fb {
    background-color: #bfdbfe; /* blue-200 */
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-fb:hover { background-color: #93c5fd; }

/* Youtube Button (Pink/Light Red Background Style) */
.btn-yt {
    background-color: #fbcfe8; /* pink-200 */
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-yt:hover { background-color: #f9a8d4; }

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .contact-cta {
        padding: 80px 20px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-desc {
        font-size: 1.125rem;
    }
}

/* --- Main Footer Styles --- */
.main-footer {
    background: radial-gradient(circle at center, #8a0e12, #550808); /* Deep red gradient */
    padding: 60px 0 20px 0;
    color: #ffffff;
    font-family: 'Hind Siliguri', sans-serif;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile default */
    gap: 30px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr); /* Desktop grid */
        gap: 20px;
    }
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Logo and App Section */
.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.app-download-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.play-store-img {
    height: 45px;
    width: auto;
}

/* Contact and Social Icons */
.contact-number p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.contact-number span a {
    font-weight: 700;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Copyright Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 1.1rem;
}


/* --- Navbar Styles --- */
:root {
    --primary-red: #780A0A;
    --hover-red: #921313;
    --success-green: #23B100;
    --text-black: #000000;
    --white: #ffffff;
    --font-main: 'Hind Siliguri', sans-serif;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
}

/* Sticky Wrapper */
.navbar-sticky {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 500;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow */
    transition: background-color 0.3s;
}

.nav-wrapper {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
}

/* --- Desktop Navbar --- */
.desktop-nav {
    display: none; /* Hidden on mobile */
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.nav-logo {
    width: 150px;
    height: auto;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    font-size: 1.125rem; /* text-lg to xl */
    font-weight: 500;
    color: var(--text-black);
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
}

.icon-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-login {
    background-color: var(--primary-red); /* bg-primary usually refers to brand color */
    color: var(--white);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: var(--hover-red);
}

/* --- Mobile Header --- */
.mobile-header {
    display: flex; /* Visible on mobile */
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.mobile-logo {
    width: 120px;
    height: auto;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-lms-mobile {
    background: white;
    color: #7f1d1d; /* red-900 */
    border: 2px solid #7f1d1d;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-lms-mobile:hover {
    background: var(--hover-red);
    color: white;
    border-color: var(--hover-red);
}

.mobile-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    height: 21px;
    width: 21px;
    color: black;
}

/* --- Mobile Sidebar Menu --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 16px;
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    transform: translateX(0); /* Visible */
}

.close-sidebar-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: black;
    height: 22px;
    width: 22px;
}

.sidebar-logo img {
    width: 100px;
    margin-bottom: 20px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 2px solid #eee;
}

.sidebar-link {
    padding: 16px 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-black);
    border-bottom: 2px solid #eee;
}

.sidebar-link.active {
    color: var(--primary-red);
}

.sidebar-btn-call {
    margin-top: 20px;
    background-color: var(--success-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.125rem;
    gap: 8px;
}

.sidebar-btn-login {
    margin-top: 10px;
    background-color: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
}

/* --- Responsive Breakpoints --- */
@media (min-width: 1024px) {
    /* Desktop Mode */
    .desktop-nav {
        display: flex;
    }
    .mobile-header {
        display: none;
    }
    .mobile-sidebar {
        display: none; /* Never show sidebar on desktop even if active class is there */
    }
}

/*-- Sopno chuyesen jara --*/

/* Animation Magic: 
           This makes the text blur and fade out when the slide is NOT active.
           When it becomes active, it slowly focuses and fades in. */
        .slide-content {
            opacity: 0;
            filter: blur(6px);
            transform: translateY(-6px);
            transition: all 0.8s ease; /* Smooth speed */
        }

        .swiper-slide-active .slide-content {
            opacity: 1;
            filter: blur(0px);
            transform: translateY(0px);
        }

/* gallery card content */

.gallery-card-content {
            opacity: 0.4;
            filter: blur(4px);
            transform: translateY(-6px);
            transition: all 0.6s ease-out;
        }

        /* Active state: Clear and visible */
        /* We target the active slide AND the next few visible slides for a better desktop experience, 
           or just the active one depending on preference. 
           Here we make the 'active' and 'next' slides clear to mimic a multi-view slider. */
        .swiper-slide-active .gallery-card-content,
        .swiper-slide-next .gallery-card-content,
        .swiper-slide-next + .swiper-slide .gallery-card-content {
            opacity: 1;
            filter: blur(0px);
            transform: translateY(0px);
        }