/* Modern CSS Design System for Agriculture Portal */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@100..800&family=Noto+Sans+Bengali:wght@100..900&family=Tiro+Bangla:ital@0;1&display=swap');

:root {
    --primary: #15803d;      /* HSL 142, 76%, 36% - Organic Green */
    --primary-light: #22c55e;/* HSL 142, 72%, 45% - Sprout Green */
    --primary-dark: #166534; /* HSL 142, 76%, 24% - Forest Green */
    --accent: #eab308;       /* Harvest Gold */
    --accent-light: #fef08a; /* Soft Gold */
    --dark: #0f172a;         /* Deep Slate */
    --gray-dark: #334155;    /* Charcoal */
    --gray-light: #f1f5f9;   /* Off-white/light gray */
    --white: #ffffff;
    
    --font-bengali: 'Noto Sans Bengali', 'Anek Bangla', 'Tiro Bangla', sans-serif;
    --font-english: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-bengali);
    color: var(--gray-dark);
    background-color: #f8fafc;
    /* Subtle Agriculture Leaf/Sprout Background Pattern */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%2315803d' fill-opacity='0.025'%3E%3Cpath d='M20 35 C20 22, 10 18, 10 8 C10 18, 20 22, 20 35 Z' /%3E%3Cpath d='M20 35 C20 22, 30 18, 30 8 C30 18, 20 22, 20 35 Z' /%3E%3Cline x1='20' y1='35' x2='20' y2='8' stroke='%2315803d' stroke-opacity='0.025' stroke-width='1.2'/%3E%3C/g%3E%3Cg fill='%2315803d' fill-opacity='0.025' transform='translate(40, 40)'%3E%3Cpath d='M20 35 C20 22, 10 18, 10 8 C10 18, 20 22, 20 35 Z' /%3E%3Cpath d='M20 35 C20 22, 30 18, 30 8 C30 18, 20 22, 20 35 Z' /%3E%3Cline x1='20' y1='35' x2='20' y2='8' stroke='%2315803d' stroke-opacity='0.025' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Header & Glassmorphic Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo i {
    font-size: 26px;
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    display: block;
    flex-shrink: 0;
}

.nav-item a {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-dark);
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.4;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary);
    background: rgba(21, 128, 61, 0.08);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.2);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(21, 128, 61, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* Premium Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 0px); /* Fullscreen height */
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-left: max(5%, calc((100vw - 1200px)/2 + 20px));
    padding: 20px;
    color: var(--white);
}

.slide-tag {
    background: rgba(34, 197, 94, 0.2);
    border-left: 4px solid var(--primary-light);
    color: #a7f3d0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.slide-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1) 0.2s;
}

.slide-desc {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    color: #e2e8f0;
    max-width: 600px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1) 0.4s;
}

.slide-buttons {
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1) 0.6s;
    display: flex;
    gap: 15px;
}

/* Active Slide Animations */
.slide.active .slide-tag,
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-buttons {
    transform: translateY(0);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(21, 128, 61, 0.4);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
}
/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-buttons span {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
    background: var(--primary);
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-control:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 25px;
}

.slider-control.next {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--primary-light);
    width: 28px;
    border-radius: 10px;
}

/* Common Section Layouts */
section {
    padding: 90px 20px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-experience {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-experience h3 {
    font-size: 32px;
    font-weight: 700;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray-dark);
    margin-bottom: 25px;
    font-size: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark);
}

.about-feature-item i {
    color: var(--primary-light);
    font-size: 20px;
}

/* Services / Features Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray-dark);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-container img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-light);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-btn {
    background: rgba(21, 128, 61, 0.1);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-img {
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img img {
    transform: scale(1.08);
}

.blog-body {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.blog-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-link:hover {
    color: var(--primary-light);
    gap: 8px;
}

/* Contact Section & AJAX Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.contact-info-panel h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: #a7f3d0;
    margin-bottom: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-info-item span {
    font-size: 16px;
    font-weight: 500;
}

.contact-form-panel {
    padding: 50px 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-bengali);
    font-size: 15px;
    color: var(--dark);
    transition: var(--transition-smooth);
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    background: var(--white);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* AJAX Response Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer Section */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 70px 20px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Animations on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Admin Dashboard Styles */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.admin-login-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 5px solid var(--primary);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.admin-login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: #94a3b8;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    padding: 25px;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav {
    padding: 20px 0;
    flex-grow: 1;
}

.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-left: 4px solid transparent;
}

.admin-nav-item a:hover,
.admin-nav-item.active > a {
    color: var(--white);
    background: #1e293b;
    border-left-color: var(--primary-light);
}

/* Submenu Styling */
.admin-submenu {
    padding-left: 0px;
    background: #0b111e; /* Darker background for nested list */
    list-style: none;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.admin-nav-item.active .admin-submenu,
.admin-nav-item.open .admin-submenu {
    max-height: 500px;
}

.admin-submenu li a {
    padding: 10px 25px 10px 45px !important;
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid transparent;
    background: transparent !important;
}

.admin-submenu li.active a,
.admin-submenu li a:hover {
    color: var(--white) !important;
    background: #1e293b !important;
    border-left-color: var(--primary-light) !important;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.admin-nav-item.active .submenu-arrow,
.admin-nav-item.open .submenu-arrow {
    transform: rotate(180deg);
}

.admin-logout {
    padding: 20px 25px;
    border-top: 1px solid #1e293b;
}

.admin-main {
    flex-grow: 1;
    background: #f8fafc;
    padding: 40px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.admin-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gray-dark);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h4 {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(21, 128, 61, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Admin CRUD Table */
.admin-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 40px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #f1f5f9;
    color: var(--dark);
    padding: 12px 16px;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
}

td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--gray-dark);
    vertical-align: middle;
}

tr:hover td {
    background: #f8fafc;
}

.admin-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.admin-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.admin-btn-primary:hover {
    background: var(--primary-light);
}

.admin-btn-edit {
    background: rgba(234, 179, 8, 0.1);
    color: #a16207;
}

.admin-btn-edit:hover {
    background: #eab308;
    color: var(--white);
}

.admin-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.admin-btn-delete:hover {
    background: #ef4444;
    color: var(--white);
}

/* Modal and Forms inside Admin */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    transition: var(--transition-smooth);
}

.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.admin-modal {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: translateY(-50px);
    transition: var(--transition-smooth);
}

.modal-backdrop.show .admin-modal {
    transform: translateY(0);
}

.modal-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    font-size: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--white);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-slider {
        height: 600px;
    }
    .slide-content {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-item a {
        display: block;
        padding: 12px;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
    }
    .slider-control.prev { left: 10px; }
    .slider-control.next { right: 10px; }
    
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
    .admin-brand {
        justify-content: space-between;
    }
    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    .admin-nav-item a {
        padding: 10px 15px;
    }
    .admin-main {
        padding: 20px;
    }
}

/* Blog Details Page Styles */
.blog-details-section {
    padding: 120px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn-container {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.back-btn:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
}

.blog-detail-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.blog-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 25px;
}

.blog-detail-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.blog-detail-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.blog-detail-text p {
    margin-bottom: 20px;
}

/* Sidebar Styles */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 20px;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-post-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin: 0;
}

.recent-post-info h4 a:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 12px;
    color: #64748b;
}

/* Responsive Blog Details */
@media (max-width: 991px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-detail-title {
        font-size: 26px;
    }
    
    .blog-detail-card {
        padding: 25px;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 90px 20px;
    background: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(34, 197, 94, 0.4);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-family: var(--font-bengali);
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-question-btn span {
    padding-right: 15px;
    line-height: 1.4;
}

.faq-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question-btn {
    color: var(--primary-dark);
}

.faq-item.active .faq-icon-box {
    background: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px 24px;
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.7;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

/* Event Section Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.event-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image-wrapper img {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-bengali);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    z-index: 2;
}

.event-date-badge span.day {
    font-size: 18px;
    display: block;
}

.event-date-badge span.month {
    font-size: 11px;
    text-transform: uppercase;
}

.event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.event-card:hover .event-title {
    color: var(--primary);
}

.event-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.event-meta-item i {
    color: var(--primary);
    width: 14px;
    text-align: center;
}

/* Affiliations Section Styling */
.affiliations-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}
.affiliation-logo-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 8px);
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 90px;
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
}
.affiliation-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    border-color: var(--primary-light);
}
.affiliation-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.affiliation-logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
