/* মৌলিক রিসেট */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* রঙের ভেরিয়েবলস */
:root {
    --primary-color: #2E7D32;     /* গাঢ় সবুজ */
    --secondary-color: #81C784;    /* হালকা সবুজ */
    --accent-color: #FFC107;       /* সোনালি/হলুদ অ্যাকসেন্ট */
    --text-color: #263238;         /* গাঢ় টেক্সট কালার */
    --light-bg: #F1F8E9;          /* হালকা সবুজাভ ব্যাকগ্রাউন্ড */
    --white: #ffffff;
}

/* বডি স্টাইল */
body {
    font-family: 'Hind Siliguri', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}


/* ===================================
   হেডার বেস স্টাইল
====================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.main-header {
    padding: 0.75rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ===================================
   লোগো স্টাইল
====================================== */
.logo-container {
    flex-shrink: 0; /* ছোট স্ক্রিনে লোগো যেন সংকুচিত না হয় */
}

.header-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

/* ===================================
   ডেস্কটপ নেভিগেশন
====================================== */
.nav-menu-desktop {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

/* ===================================
   হেডার বাটন (ডেস্কটপ)
====================================== */
.header-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}


/* ===================================
   মোবাইল মেনু (Hamburger & Off-canvas)
====================================== */
.menu-toggle,
.menu-close {
    display: none; /* ডিফল্টভাবে হাইড থাকবে */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0.5rem;
    z-index: 1050;
}

.nav-menu-mobile-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* ব্ল্যাক ওভারলে */
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-menu-mobile-container.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu-mobile {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.nav-menu-mobile-container.active .nav-menu-mobile {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    border-bottom: 1px solid var(--grey-bg);
}

.mobile-menu-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-nav-list .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    text-align: left;
}

.mobile-header-buttons {
    padding: 1rem 0;
    border-top: 1px solid var(--grey-bg);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}


/* ===================================
   রেসপনসিভ মিডিয়া কোয়েরি
====================================== */
@media (max-width: 992px) {
    /* ট্যাবলেট এবং মোবাইল ভিউ */
    .nav-menu-desktop,
    .header-buttons {
        display: none; /* ডেস্কটপ মেনু ও বাটন হাইড করুন */
    }

    .menu-toggle {
        display: block; /* মোবাইল মেনু বাটন দেখান */
    }
}

@media (max-width: 768px) {
    .header-logo {
        width: 60px;
        height: 60px;
    }
    .main-header {
        padding: 0.5rem 0;
    }
}


/* মূল কনটেন্ট এরিয়া */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* সেকশন স্টাইল */
.section {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}


/* হিরো সেকশন স্টাইল */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-background svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.92),
        rgba(27, 94, 32, 0.95)
    );
    z-index: 1;
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    }
    100% {
        background-position: 1000px 0, 1000px 0, 1040px 70px, 1040px 70px, 1000px 0, 1040px 70px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    color: var(--white);
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 3rem 0;
    position: relative;
    z-index: 1;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-established {
    border-left: 4px solid var(--accent-color);
}

.info-eiin {
    border-left: 4px solid #4CAF50;
}

.info-students {
    border-left: 4px solid #2196F3;
}

.info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.info-established:hover {
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.info-eiin:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.info-students:hover {
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.info-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.info-established i {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.info-eiin i {
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.info-students i {
    color: #2196F3;
    border: 2px solid #2196F3;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-outline-light {
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.principal-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    animation: slideInRight 1s ease-out;
}

.principal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.principal-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.principal-info {
    flex-grow: 1;
}

.principal-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.principal-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.principal-designation {
    opacity: 0.8;
}

.principal-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-color);
}

.read-more {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* রেসপনসিভ */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .principal-message {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .info-item {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .info-item i {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .info-item strong {
        font-size: 0.8rem;
    }

    .info-item p {
        font-size: 0.75rem;
    }
}

/* অতি ছোট স্ক্রিনের জন্য */
@media (max-width: 360px) {
    .hero-info {
        gap: 0.3rem;
    }

    .info-item {
        padding: 0.8rem;
    }

    .info-item i {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* বাটন স্টাইল */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.btn-primary:hover {
    background-color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

/* ফিচার কার্ড */
.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.9;
}

/* র্ম স্টাইল */
.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* স্বাগত সেকশন */
.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* গ্যালারি লেআউট */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* রেসপনসিভ */
@media (max-width: 768px) {
    .main-content {
        padding: 0 1rem;
    }

    .section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ফুটার স্টাইল */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    padding: 0.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}


.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 5px;
    background: var(--accent-color);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--white);
    color: var(--primary-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* রেসপনসিভ ডজাইন */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 1.5rem;
        text-align: center;
    }


    .section-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* টেবিল স্টাইল */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

.table th {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ফ্লাইডার স্টাইল */
.slider-section {
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    background: var(--white);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slider {
    width: 90%;
    height: 500px;
    position: relative;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* স্লাইডার নেভিগেশন */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
    border-color: var(--accent-color);
}

/* স্লাইডার বাটন */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    z-index: 1;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* ইমেজ প্যাপশন */
.slide-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active .slide-caption {
    opacity: 1;
}

/* রোটিশ বোর্ড স্টাইল */
.notice-board {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.notice-item {
    background: var(--white);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.notice-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* দ্রুত লিংক সেকশন */
.quick-links-section {
    margin: 2rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: var(--white);
}

.quick-link-card:hover i {
    color: var(--accent-color);
}

/* পরিসংস্যান সেকশন */
.stats-section {
    background: var(--white);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* এাডেমিক প্রগ্রাম */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.program-card ul {
    list-style: none;
}

.program-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.program-card ul li:last-child {
    border-bottom: none;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ইভেন্ট ক্যালেন্ডার */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.event-card {
    display: flex;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .date {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    margin-top: 0.3rem;
}

.event-details {
    padding: 1rem;
    flex-grow: 1;
}

.event-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.event-badge.sports {
    background: #E3F2FD;
    color: #1976D2;
}

.event-badge.cultural {
    background: #FFF3E0;
    color: #F57C00;
}

.event-badge.science {
    background: #E8F5E9;
    color: #388E3C;
}

.event-details h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.event-info i {
    color: var(--primary-color);
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-link:hover {
    color: var(--accent-color);
}

.event-link i {
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card:hover .event-link i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .event-card {
        flex-direction: row;
    }
    
    .event-date {
        padding: 0.8rem;
        min-width: 70px;
    }
}

/* শিক্ষক মণ্ডলী */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.teacher-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.teacher-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-social {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.teacher-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.teacher-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.teacher-info {
    padding: 1.2rem;
    text-align: center;
}

.teacher-info h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.designation {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.qualification {
    color: #666;
    font-size: 0.85rem;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-card:hover .teacher-social {
    bottom: 0;
}

@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .teacher-image {
        height: 250px;
    }
}

/* গ্যালারি */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ট্যাগ সেকশন */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.blog-date span {
    display: block;
}

.blog-date span:first-child {
    font-size: 1.2rem;
    font-weight: bold;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* যোগাযোগ সেকশন */
.contact-section {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* কন্টাক্ট ইনফো স্টাইল */
.contact-info {
    background: var(--light-bg);
    padding: 1.2rem;
    border-radius: 10px;
}

.contact-info-header {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-info-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info-header p {
    color: #666;
    font-size: 0.9rem;
}

.contact-info-list {
    display: grid;
    gap: 0.8rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-info-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 0.6rem;
    border-radius: 6px;
}

.contact-info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-info-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ফর্ম স্টাইল */
.contact-form {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.form-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--light-bg);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

.notice-section {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
}

.notice-container {
    max-width: 960px;
    margin: 0 auto;
}

.notice-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: var(--light-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    transition: 0.3s ease;
    text-decoration: none;
}

.notice-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notice-date {
    min-width: 70px;
    text-align: center;
}

.notice-date .date {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.notice-date .month-year {
    font-size: 0.8rem;
    color: #888;
}

.notice-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.notice-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.notice-badge.exam {
    background: #FFE0E0;
    color: #D32F2F;
}

.notice-badge.academic {
    background: #E0F2F1;
    color: #00796B;
}

.notice-badge.general {
    background: #E3F2FD;
    color: #1976D2;
}

.notice-content h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-color);
    flex: 1;
}

.notice-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
}

.notice-link:hover {
    text-decoration: underline;
}

.notice-footer {
    margin-top: 2rem;
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.view-all-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-link {
        margin-top: 0.5rem;
    }

    .notice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-date {
        text-align: left;
    }
}

/* গ্যালারি সেকশন কন্টেইনার */
.gallery-container {
    position: relative;
    width: 100%;
}

/* গ্যালারি পেজ (৪ কলাম ফিক্সড) */
.gallery-page {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-page.active {
    display: grid;
}

/* গ্যালারি আইটেম */
.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.08);
}

/* হেডার: টাইটেল + বাটন */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-color);
}

/* নতুন বাটন: সকল গ্যালারি দেখুন */
.view-all-gallery-btn {
    padding: 0.65rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.view-all-gallery-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* পেজিনেশন */
.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn.active,
.pagination-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* মোবাইল অপটিমাইজেশন */
@media (max-width: 768px) {
    /* হিরো সেকশন */
    .hero-content {
        grid-template-columns: 1fr;
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .principal-message {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .principal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* স্লাইডার সেকশন */
    .slider {
        height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slide-caption {
        bottom: 60px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* সেকশন স্টাইল */
    .section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }


    /* ইভেন্ট কার্ড */
    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        margin: 0 auto 1rem;
    }

    .event-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* শিক্ষক গ্রিড */
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .teacher-image {
        height: 200px;
    }

    /* গ্যালারি */
    .gallery-categories {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .category-btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    

    /* ব্লগ কার্ড */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        margin-bottom: 1.5rem;
    }

    /* কন্টাক্ট সেকশন */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* ফুটার */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* স্ক্রল টু টপ বাটন */
    .scroll-top-btn {
        right: -100px;
        bottom: 30px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .scroll-top-btn.show {
        right: 30px;
    }
}

.home-blog-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s 
ease;
}


.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ব্লগ গ্রিড */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ব্লগ কার্ড */
.blog-post-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* ব্লগ ইমেজ */
.blog-post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ব্লগ তারিখ */
.blog-post-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    min-width: 65px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.blog-post-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

.blog-post-date .month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* ব্লগ কন্টেন্ট */
.blog-post-content {
    padding: 1.8rem;
}

.blog-post-category {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-title {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ব্লগ ফুটার */
.blog-post-footer {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.blog-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.blog-read-more i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

/* হোভার ইফেক্ট */
.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.blog-post-card:hover::before {
    transform: scaleX(1);
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.08);
}

.blog-post-card:hover .blog-post-title {
    color: var(--primary-color);
}

.blog-post-card:hover .blog-read-more {
    color: var(--accent-color);
}

.blog-post-card:hover .blog-read-more::after {
    width: 100%;
}

.blog-post-card:hover .blog-read-more i {
    transform: translateX(5px);
}

/* অ্যানিমেশন */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-post-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-post-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* রেসপন্সিভ ডিজাইন */
@media (max-width: 991px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .home-blog-section {
        padding: 60px 0;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-image {
        height: 220px;
    }
    
    .blog-post-content {
        padding: 1.5rem;
    }
    
    .blog-post-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-grid {
        padding: 0 1rem;
    }
    
    .blog-post-date {
        top: 15px;
        right: 15px;
        padding: 0.6rem;
        min-width: 55px;
    }
    
    .blog-post-date .day {
        font-size: 1.2rem;
    }
    
    .blog-post-date .month {
        font-size: 0.75rem;
    }
}

/* লোডিং স্টেট */
.blog-post-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.blog-post-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ট্যাবলেট অপটিমাইজেশন */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-info {
        grid-template-columns: repeat(3, 1fr);
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* মোবাইল মেনু এনিমেশন */
.nav-menu-container {
    transition: all 0.3s ease-in-out;
}

.nav-menu-container.active {
    max-height: 100vh;
    padding: 1rem;
}

.nav-link {
    position: relative;
    overflow: hidden;
}



/* টাচ ডিভাইস অপটিমাইজেশন */
@media (hover: none) {

    .btn:hover {
        transform: none !important;
    }

    .card:hover {
        transform: none !important;
    }
}

/* লোডিং অপটিমাইজেশন */
.image-lazy {
    /* opacity: 0; */
    transition: opacity 0.3s ease;
}

.image-lazy.loaded {
    opacity: 1;
}

/* পারফরম্যান্স অপটিমাইজেশন */
* {
    -webkit-tap-highlight-color: transparent;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* স্ক্রল টু টপ বাটন */
.scroll-top-btn {
    position: fixed;
    right: -100px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.section-title::after,
.section-title::before,
.notice-header h1::after,
.notice-header h1::before,
.notice-header .section-title::after,
.notice-header .section-title::before {
  display: none !important;
  content: none !important;
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
    right: 30px;
    animation: bounceIn 0.5s ease;
}

/* বাউন্স অ্যানিমেশন */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translate3d(0, 100px, 0);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    80% {
        opacity: 1;
        transform: scale(0.89);
    }
    100% {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
    }
}

/* মোবাইল ডিভাইসের জন্য */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        right: -100px;
        bottom: 20px;
    }
    
    .scroll-top-btn.show {
        right: 20px;
    }
}

/* মেনু আইটেম অ্যানিমেশন */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ড্রপডাউন মেনু */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* মোবাইল মেনু */
@media (max-width: 992px) {
    .nav-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu-container.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        position: absolute;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: var(--white);
        padding: 2rem 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu-container.active .nav-menu {
        transform: translateX(0);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border-left: 2px solid var(--primary-color);
        margin: 0.5rem 0;
    }
    
    .menu-toggle i {
        transition: transform 0.3s ease;
    }
}

/* হিরো বাটন স্টাইল */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* মোবাইল রেসপনসিভ */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: auto;
        white-space: nowrap;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* অতি ছোট স্ক্রিনের জন্য */
@media (max-width: 360px) {
    .hero-buttons {
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
 
}


/* --- Footer Logo and Details Styling --- */
.footer-logo-container {
    /* Use Flexbox to align image and text details side-by-side */
    display: flex;
    align-items: center; /* Vertically centers the logo and text */
    gap: 15px; /* Space between the logo image and the text */
    margin-bottom: 20px;
}

.footer-logo-img {
    /* Style the image itself */
    width: 60px; /* Logo size */
    height: 60px;
    object-fit: contain; /* Ensures the logo fits well */
    /* Optional: If you want a round logo */
    /* border-radius: 50%; */
}

.institute-details {
    /* Container for the name and motto */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.institute-details h3 {
    /* Style for the institute name */
    margin-top: 0;
    margin-bottom: 5px; /* Small space between name and motto */
    font-size: 1.2rem; 
    font-weight: bold;
}

.institute-motto {
    /* Style for the motto (secondary text) */
    margin: 0;
    font-size: 0.9rem;
    /* You may need to define --footer-text-color-light in your general CSS */
    color: rgba(255, 255, 255, 0.7); /* Example lighter color */
}