﻿
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');


/* =====================================
   2. Basic Setup
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f1f7f2;
    color: #263b2c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =====================================
   3. Header
===================================== */

header {
    background: linear-gradient(135deg, #123d29, #1d7045, #278653);
    color: white;
    text-align: center;
    padding: 55px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

header h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

header p {
    font-size: 16px;
    color: #d5f5df;
    letter-spacing: 3px;
    font-weight: 500;
}


/* =====================================
   4. Navigation
===================================== */

nav {
    background: #ffffff;
    padding: 16px 7%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

nav a {
    text-decoration: none;
    color: #17623a;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border: 1px solid #23834e;
    border-radius: 7px;
    transition: 0.3s ease;
}

nav a:hover {
    background: #17623a;
    color: white;
    transform: translateY(-2px);
}


/* =====================================
   5. Main Section
===================================== */

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 25px;
    flex: 1;
}

.class-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =====================================
   6. Class Cards
===================================== */

.class-list a {
    text-decoration: none;
    background: #ffffff;
    color: #205b38;
    padding: 30px 20px;
    min-height: 115px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #e0eee3;
    box-shadow: 0 5px 18px rgba(22, 77, 43, 0.07);
    transition: all 0.3s ease;
}

.class-list a::before {
    content: "ðŸŒ¿";
    margin-right: 10px;
    font-size: 20px;
}

.class-list a:hover {
    background: linear-gradient(135deg, #17623a, #278653);
    color: white;
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(22, 77, 43, 0.18);
    border-color: transparent;
}


/* =====================================
   7. Footer
===================================== */

footer {
    background: #123d29;
    padding: 22px 7%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

footer a {
    text-decoration: none;
    color: #d5f5df;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid #6ba982;
    border-radius: 6px;
    transition: 0.3s ease;
}

footer a:hover {
    background: white;
    color: #17623a;
}


/* =====================================
   8. Tablet Responsive
===================================== */

@media (max-width: 900px) {

    header h1 {
        font-size: 29px;
    }

    .class-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}


/* =====================================
   9. Mobile Responsive
===================================== */

@media (max-width: 550px) {

    header {
        padding: 40px 15px;
    }

    header h1 {
        font-size: 23px;
    }

    header p {
        font-size: 13px;
    }

    nav {
        justify-content: center;
        padding: 14px 10px;
    }

    nav a {
        padding: 9px 16px;
        font-size: 12px;
    }

    main {
        padding: 35px 18px;
    }

    .class-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .class-list a {
        min-height: 90px;
        font-size: 15px;
    }

    footer {
        justify-content: center;
    }

}

/* =====================================
   CATEGORY PAGE DESIGN
===================================== */

.category-container {
    max-width: 850px;
    margin: 30px auto;
    padding: 45px 35px;
    background: #ffffff;
    border: 1px solid #e0eee3;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(22, 77, 43, 0.09);
    text-align: center;
}

.category-container h2 {
    color: #17623a;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 18px;
}

.category-container p {
    color: #647568;
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 550px) {
    .category-container {
        margin: 15px auto;
        padding: 30px 20px;
    }

    .category-container h2 {
        font-size: 21px;
    }

    .category-container p {
        font-size: 14px;
    }
}

/* =====================================
   BOOK COLLECTION SECTION
===================================== */

.book-collection {
    max-width: 1200px;
    margin: 50px auto 20px;
    padding: 0 25px;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    color: #17623a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-heading p {
    color: #718078;
    font-size: 15px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 900px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .book-collection {
        padding: 0 18px;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 23px;
    }
}

/* =====================================
   INDIVIDUAL BOOK CARD
===================================== */

.book-card {
    background: #ffffff;
    border: 1px solid #e0eee3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(22, 77, 43, 0.08);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(22, 77, 43, 0.15);
}

.book-cover {
    width: 100%;
    height: 260px;
    background: #edf5ef;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-info {
    padding: 20px;
}

.book-info h3 {
    color: #205b38;
    font-size: 17px;
    margin-bottom: 9px;
}

.book-info p {
    color: #718078;
    font-size: 14px;
    margin-bottom: 5px;
}

/* =====================================
   10. PROFESSIONAL HOMEPAGE DESIGN
===================================== */

.home-page {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: #263b2c;
    line-height: 1.6;
}

.home-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
}

.home-page a {
    text-decoration: none;
}


/* =====================================
   11. HOME HEADER
===================================== */

.home-page .home-header {
    background: #ffffff;
    padding: 18px 0;
    box-shadow: 0 3px 18px rgba(20, 60, 35, 0.07);
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #174c31;
}

.brand-icon {
    font-size: 35px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-text strong {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-text small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #78917e;
}

.home-page .home-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.home-page .home-nav a {
    color: #425b49;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    border: none;
    border-radius: 0;
    transition: 0.3s ease;
}

.home-page .home-nav a:hover {
    color: #18834c;
    background: transparent;
    transform: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-login,
.nav-register {
    display: inline-block;
    padding: 10px 17px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s ease;
}

.nav-login {
    color: #17623a;
    border: 1px solid #17623a;
}

.nav-login:hover {
    background: #edf6ef;
}

.nav-register {
    background: #17623a;
    color: white;
    border: 1px solid #17623a;
}

.nav-register:hover {
    background: #10472a;
    transform: translateY(-2px);
}


/* =====================================
   12. HERO SECTION
===================================== */

.hero-section {
    background: linear-gradient(120deg, #f2f8f1, #ffffff);
    padding: 85px 0 100px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.hero-label,
.section-label {
    display: inline-block;
    color: #278653;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    color: #173d29;
    font-size: 49px;
    line-height: 1.2;
    margin-bottom: 22px;
}

.hero-text h1 span {
    display: block;
    color: #278653;
}

.hero-text > p {
    max-width: 510px;
    color: #6b7d70;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-primary-btn,
.hero-secondary-btn {
    padding: 13px 22px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s ease;
}

.hero-primary-btn {
    background: #17623a;
    color: white;
}

.hero-primary-btn span {
    margin-left: 10px;
}

.hero-primary-btn:hover {
    background: #10472a;
    transform: translateY(-3px);
}

.hero-secondary-btn {
    color: #17623a;
    border: 1px solid #b8cfbd;
}

.hero-secondary-btn:hover {
    background: #e9f3eb;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 32px;
    color: #718477;
    font-size: 12px;
    font-weight: 600;
}

.hero-note span:first-child {
    font-size: 20px;
}

.hero-image-wrapper {
    position: relative;
    padding: 12px;
}

.hero-image {
    height: 410px;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #e1eee3;
    box-shadow: 0 20px 45px rgba(24, 69, 39, 0.15);
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-caption {
    position: absolute;
    bottom: -15px;
    left: -25px;
    z-index: 3;
    background: white;
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.hero-image-caption > span {
    font-size: 27px;
}

.hero-image-caption div {
    display: flex;
    flex-direction: column;
}

.hero-image-caption strong {
    color: #214b32;
    font-size: 12px;
}

.hero-image-caption small {
    color: #849187;
    font-size: 10px;
}

.hero-decoration {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 160px;
    height: 160px;
    border: 2px solid #b9d8bf;
    border-radius: 18px;
    z-index: 1;
}


/* =====================================
   13. SECTION HEADINGS
===================================== */

.home-section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
}

.home-section-heading .section-label {
    margin-bottom: 12px;
}

.home-section-heading h2,
.about-text h2 {
    font-family: 'Playfair Display', serif;
    color: #183e2a;
    font-size: 35px;
    line-height: 1.3;
    margin-bottom: 13px;
}

.home-section-heading h2 span,
.about-text h2 span {
    color: #278653;
}

.home-section-heading p {
    color: #78877d;
    font-size: 14px;
    line-height: 1.8;
}


/* =====================================
   14. ACADEMIC YEAR SECTION
===================================== */

.academic-section {
    padding: 90px 0;
    background: #ffffff;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.academic-card {
    position: relative;
    min-height: 145px;
    background: #f7faf7;
    border: 1px solid #e5eee6;
    border-radius: 12px;
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s ease;
}

.academic-card:hover {
    background: #edf6ef;
    border-color: #9dc8a7;
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(28, 89, 49, 0.09);
}

.academic-icon {
    font-size: 25px;
    margin-bottom: 10px;
}

.academic-card h3 {
    color: #244e34;
    font-size: 15px;
    font-weight: 700;
    padding-right: 25px;
}

.card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #278653;
    font-size: 20px;
    transition: 0.3s ease;
}

.academic-card:hover .card-arrow {
    transform: translateX(5px);
}


/* =====================================
   15. CATEGORY SECTION
===================================== */

.categories-section {
    padding: 90px 0;
    background: #f5f9f5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e4eee5;
    border-radius: 12px;
    padding: 28px 25px;
    transition: 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(24, 75, 40, 0.09);
    border-color: #b3d3b9;
}

.category-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    background: #edf6ef;
    border-radius: 12px;
    font-size: 25px;
    margin-bottom: 18px;
}

.category-card h3 {
    color: #214b32;
    font-size: 17px;
    margin-bottom: 10px;
}

.category-card p {
    color: #7b897f;
    font-size: 13px;
    line-height: 1.8;
    min-height: 70px;
    margin-bottom: 18px;
}

.category-link {
    color: #278653;
    font-size: 12px;
    font-weight: 700;
}


/* =====================================
   16. ABOUT SECTION
===================================== */

.about-section {
    padding: 90px 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 65px;
}

.about-decoration {
    min-height: 300px;
    background: linear-gradient(135deg, #e5f2e7, #f3f8f2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 50px;
}

.about-text h2 {
    margin-bottom: 18px;
}

.about-text p {
    color: #748378;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 25px;
}

.about-button {
    display: inline-block;
    background: #17623a;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s ease;
}

.about-button:hover {
    background: #10472a;
    transform: translateY(-3px);
}


/* =====================================
   17. CALL TO ACTION
===================================== */

.cta-section {
    padding: 65px 0;
    background: linear-gradient(120deg, #123d29, #278653);
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-content p {
    color: #d8eee0;
    font-size: 14px;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #17623a;
    padding: 13px 23px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s ease;
}

.cta-button:hover {
    background: #e8f4eb;
    transform: translateY(-3px);
}


/* =====================================
   18. HOME FOOTER
===================================== */

.home-page .home-footer {
    background: #102f20;
    color: #ffffff;
    padding: 60px 0 0;
    display: block;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 45px;
}

.footer-content h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-about h3 {
    font-size: 20px;
}

.footer-about p {
    max-width: 300px;
    color: #b7cabe;
    font-size: 13px;
    line-height: 1.9;
}

.footer-links,
.footer-portal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a,
.footer-portal a {
    color: #c2d3c7;
    font-size: 13px;
    margin-bottom: 11px;
    transition: 0.3s ease;
}

.footer-links a:hover,
.footer-portal a:hover {
    color: #8ed3a1;
    padding-left: 4px;
}

.home-page .footer-bottom {
    background: #0b2619;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-bottom p {
    color: #aebfb3;
    font-size: 11px;
}

.footer-bottom .developer-credit strong {
    color: #ffffff;
}


/* =====================================
   19. TABLET RESPONSIVE
===================================== */

@media (max-width: 1000px) {

    .header-content {
        flex-wrap: wrap;
    }

    .home-page .home-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-content {
        gap: 35px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-image {
        height: 350px;
    }

    .academic-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================
   20. MOBILE RESPONSIVE
===================================== */

@media (max-width: 600px) {

    .home-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-page .home-header {
        padding: 15px 0;
    }

    .header-content {
        justify-content: center;
        gap: 16px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .home-page .home-nav {
        gap: 13px;
    }

    .home-page .home-nav a {
        font-size: 11px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .nav-login,
    .nav-register {
        padding: 9px 15px;
    }

    .hero-section {
        padding: 55px 0 70px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text > p {
        font-size: 13px;
    }

    .hero-image {
        height: 290px;
    }

    .hero-image-caption {
        left: 0;
        bottom: -22px;
        padding: 12px;
    }

    .hero-decoration {
        width: 110px;
        height: 110px;
    }

    .academic-section,
    .categories-section,
    .about-section {
        padding: 65px 0;
    }

    .home-section-heading {
        margin-bottom: 32px;
    }

    .home-section-heading h2,
    .about-text h2 {
        font-size: 27px;
    }

    .home-section-heading p {
        font-size: 12px;
    }

    .academic-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .academic-card {
        min-height: 110px;
    }

    .category-card {
        padding: 23px;
    }

    .category-card p {
        min-height: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-decoration {
        min-height: 220px;
        font-size: 40px;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-page .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

}


/* =====================================
   21. SMALL MOBILE
===================================== */

@media (max-width: 380px) {

    .hero-text h1 {
        font-size: 31px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-page .home-nav {
        gap: 10px;
    }

    .home-page .home-nav a {
        font-size: 10px;
    }

}
/* =====================================
   22. Bangla & English Font Support
===================================== */

body {
    font-family: "Noto Sans Bengali", "Poppins", sans-serif;
}
/* =====================================
   DEPARTMENT HOMEPAGE THEME
   Navy Blue + Teal + Gold
===================================== */

.department-header {
    background: #102a43;
    padding: 22px 7%;
    color: #ffffff;
    border-bottom: 3px solid #d6a84f;
}

.department-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
    margin-bottom: 22px;
}

.department-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: #1f4960;
    border: 1px solid #d6a84f;
    border-radius: 16px;
    font-size: 30px;
}

.department-title h1 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    margin: 0;
}

.department-title p {
    color: #c8d8e5;
    font-size: 14px;
    margin: 5px 0 0;
    letter-spacing: 0.5px;
}

.department-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.department-nav a {
    color: #e6edf3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 7px;
    transition: 0.3s ease;
}

.department-nav a:hover {
    color: #ffffff;
    background: #1f4960;
}

.department-nav .library-nav-link {
    background: #d6a84f;
    color: #102a43;
}

.department-nav .library-nav-link:hover {
    background: #edc875;
    color: #102a43;
}


/* =====================================
   LIVE NOTICE TICKER
===================================== */

.notice-ticker {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #eaf3f5;
    border-bottom: 1px solid #cbdde2;
    min-height: 48px;
}

.ticker-label {
    flex-shrink: 0;
    background: #087e8b;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.ticker-label span {
    color: #ffd166;
    margin-right: 5px;
}

.ticker-window {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-right 35s linear infinite;
}

.ticker-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-content span {
    color: #183b56;
    font-size: 14px;
    font-weight: 600;
    padding: 0 35px;
}

.notice-ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes ticker-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}


/* =====================================
   DEPARTMENT HERO
===================================== */

.department-hero {
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(8, 126, 139, 0.10),
            transparent 35%
        ),
        linear-gradient(135deg, #f4f8fb, #e8f1f5);

    padding: 85px 7%;
}

.department-hero-container {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    gap: 70px;
}

.department-label {
    display: inline-block;
    color: #087e8b;
    background: #d9eff0;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
}

.department-hero-text h2 {
    color: #102a43;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    line-height: 1.2;
    margin: 0 0 22px;
}

.department-hero-text h2 span {
    display: block;
    color: #087e8b;
}

.department-hero-text p {
    color: #526777;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 15px;
}

.department-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.department-primary-btn,
.department-outline-btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.department-primary-btn {
    background: #102a43;
    color: #ffffff;
}

.department-primary-btn:hover {
    background: #087e8b;
    transform: translateY(-3px);
}

.department-outline-btn {
    color: #102a43;
    border: 1.5px solid #087e8b;
}

.department-outline-btn:hover {
    background: #087e8b;
    color: #ffffff;
}

.department-hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #087e8b;
    font-size: 14px;
    font-weight: 700;
    margin-top: 30px;
}


/* =====================================
   HOD PROFILE CARD
===================================== */

.hod-card {
    max-width: 360px;
    width: 100%;
    justify-self: center;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(16, 42, 67, 0.15);
    border: 1px solid #dce7ec;
    text-align: center;
}

.hod-card-top {
    background: #102a43;
    color: #e6edf3;
    padding: 17px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hod-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #45c4a0;
    border-radius: 50%;
    margin-right: 7px;
}

.hod-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 30px auto 20px;
    border-radius: 50%;
    padding: 5px;
    border: 3px solid #d6a84f;
    background: #eaf3f5;
}

.hod-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hod-info {
    padding: 0 25px 25px;
}

.hod-designation {
    color: #087e8b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.hod-info h3 {
    color: #102a43;
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    margin: 10px 0;
}

.hod-info p {
    color: #647786;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.hod-card-footer {
    background: #f0f6f8;
    color: #31566c;
    padding: 14px;
    font-size: 12px;
    font-weight: 700;
}


/* =====================================
   RESPONSIVE DESIGN
===================================== */

@media (max-width: 850px) {

    .department-hero-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .department-hero-text {
        text-align: center;
    }

    .department-hero-text h2 {
        font-size: 38px;
    }

    .department-hero-buttons,
    .department-hero-note {
        justify-content: center;
    }

}

@media (max-width: 600px) {

    .department-header {
        padding: 20px 5%;
    }

    .department-title h1 {
        font-size: 22px;
    }

    .department-title p {
        font-size: 11px;
    }

    .department-logo {
        width: 48px;
        height: 48px;
        font-size: 25px;
    }

    .department-nav {
        gap: 5px;
    }

    .department-nav a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .ticker-label {
        padding: 14px 10px;
        font-size: 10px;
    }

    .ticker-content span {
        font-size: 12px;
        padding: 0 20px;
    }

    .department-hero {
        padding: 55px 6%;
    }

    .department-hero-text h2 {
        font-size: 32px;
    }

    .department-hero-text p {
        font-size: 14px;
    }

    .department-hero-buttons {
        flex-direction: column;
    }

    .department-primary-btn,
    .department-outline-btn {
        text-align: center;
    }

}
/* =====================================
   DEPARTMENT PAGE - OLD HERO HIDE
===================================== */

.department-page .hero-section {
    display: none;
}
/* =====================================
   DEPARTMENT PAGE - OLD HEADER HIDE
===================================== */

.department-page .home-header {
    display: none;
}
/* =====================================
   TEACHERS & STAFF SECTION
===================================== */

.teachers-section {
    background: #ffffff;
    padding: 85px 7%;
}

.teachers-container {
    max-width: 1200px;
    margin: auto;
}

.teachers-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.teachers-label {
    display: inline-block;
    color: #087e8b;
    background: #d9eff0;
    padding: 9px 17px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.teachers-heading h2 {
    color: #102a43;
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin: 18px 0;
}

.teachers-heading h2 span {
    color: #087e8b;
}

.teachers-heading p {
    color: #647786;
    font-size: 15px;
    line-height: 1.8;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.teachers-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: #f0f6f8;
    border: 1px dashed #a9c8d0;
    border-radius: 16px;
    padding: 45px 20px;
}

.teachers-empty > span {
    font-size: 40px;
}

.teachers-empty h3 {
    color: #102a43;
    font-size: 21px;
    margin: 15px 0 8px;
}

.teachers-empty p {
    color: #647786;
    font-size: 14px;
    line-height: 1.7;
}


/* Responsive Design */

@media (max-width: 850px) {

    .teachers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .teachers-section {
        padding: 60px 6%;
    }

    .teachers-heading h2 {
        font-size: 30px;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================
   DEPARTMENT HOMEPAGE TEAM CARDS
===================================== */

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 25px;
}

.teacher-profile-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce7ec;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teacher-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(16, 42, 67, 0.13);
}

.teacher-profile-photo {
    width: 124px;
    height: 124px;
    margin: 28px auto 15px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #d6a84f;
    background: #eaf3f5;
}

.teacher-profile-placeholder {
    width: 124px;
    height: 124px;
    margin: 28px auto 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 4px solid #d6a84f;
    background: #eaf3f5;
    color: #087e8b;
    font-size: 42px;
}

.teacher-profile-info {
    padding: 0 22px 25px;
}

.teacher-profile-role {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #d9eff0;
    color: #087e8b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.teacher-profile-info h3 {
    margin: 12px 0 6px;
    color: #102a43;
    font-family: 'Playfair Display', serif;
    font-size: 21px;
}

.teacher-profile-designation {
    color: #087e8b;
    font-size: 13px;
    font-weight: 700;
}

.teacher-profile-detail {
    margin-top: 9px;
    color: #647786;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.teacher-profile-bio {
    margin-top: 13px;
    color: #526777;
    font-size: 13px;
    line-height: 1.8;
}

.teacher-profile-email {
    display: inline-block;
    margin-top: 12px;
    color: #087e8b;
    font-size: 12px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.teachers-empty {
    grid-column: 1 / -1;
}

/* =====================================
   DEPARTMENT NAVIGATION - HIGH CONTRAST
===================================== */

.department-page .department-header .department-nav {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 14px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.department-page .department-header .department-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    color: #102a43;
    background: #ffffff;
    border: 1px solid #d8e4ec;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1px;
    text-decoration: none;
    opacity: 1;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.08);
    transition: color 0.22s ease, background 0.22s ease,
                border-color 0.22s ease, transform 0.22s ease,
                box-shadow 0.22s ease;
}

.department-page .department-header .department-nav a:hover,
.department-page .department-header .department-nav a:focus-visible {
    color: #ffffff;
    background: #087e8b;
    border-color: #42c3c0;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(8, 126, 139, 0.28);
    outline: none;
}

.department-page .department-header .department-nav a.library-nav-link {
    color: #102a43;
    background: linear-gradient(135deg, #f3d17b, #d6a84f);
    border-color: #e7bd62;
}

.department-page .department-header .department-nav a.library-nav-link:hover,
.department-page .department-header .department-nav a.library-nav-link:focus-visible {
    color: #102a43;
    background: linear-gradient(135deg, #ffe5a2, #e7bd62);
    border-color: #ffe5a2;
}

@media (max-width: 700px) {
    .department-page .department-header .department-nav {
        width: 100%;
        padding: 9px;
        gap: 8px;
    }

    .department-page .department-header .department-nav a {
        flex: 1 1 auto;
        min-height: 40px;
        padding: 9px 11px;
        font-size: 12px;
    }
}


/* =====================================
   DEPARTMENT WEBSITE FOOTER
===================================== */

.department-page .department-footer {
    margin-top: 0;
    padding: 58px 0 0;
    color: #eaf2f7;
    background: linear-gradient(135deg, #0b2238 0%, #123c52 58%, #0b3543 100%);
    border-top: 4px solid #d6a84f;
}

.department-page .department-footer .footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 42px;
    padding-bottom: 42px;
}

.department-page .department-footer .footer-content h3 {
    margin: 0 0 20px;
    color: #f5d58a;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 19px;
    letter-spacing: 0.2px;
}

.department-page .department-footer .footer-about h3 {
    color: #ffffff;
    font-size: 24px;
}

.department-page .department-footer .footer-about p {
    max-width: 340px;
    color: #c6d6e0;
    font-size: 14px;
    line-height: 1.9;
}

.department-page .department-footer .footer-links,
.department-page .department-footer .footer-portal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.department-page .department-footer .footer-links a,
.department-page .department-footer .footer-portal a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 13px;
    color: #e4edf3;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(214, 168, 79, 0.25);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.2s ease;
}

.department-page .department-footer .footer-links a:hover,
.department-page .department-footer .footer-portal a:hover {
    padding-left: 17px;
    color: #102a43;
    background: #f0c96f;
    border-color: #f0c96f;
    transform: translateX(3px);
}

.department-page .department-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 19px max(5%, calc((100% - 1200px) / 2));
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.department-page .department-footer .footer-bottom p {
    margin: 0;
    color: #c1d0da;
    font-size: 12px;
    line-height: 1.7;
}

.department-page .department-footer .footer-bottom .developer-credit strong {
    color: #f5d58a;
}

@media (max-width: 760px) {
    .department-page .department-footer {
        padding-top: 42px;
    }

    .department-page .department-footer .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .department-page .department-footer .footer-about {
        grid-column: 1 / -1;
    }

    .department-page .department-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .department-page .department-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .department-page .department-footer .footer-about {
        grid-column: auto;
    }
}

/* =====================================
   DEPARTMENT ACADEMIC NOTICE BOARD
===================================== */
.department-page .academic-notice-section{
    padding:76px 24px;
    background:linear-gradient(180deg,#f6fafb 0%,#eaf3f5 100%);
}
.department-page .academic-notice-container{max-width:1120px;margin:0 auto}
.department-page .academic-notice-heading{text-align:center;margin-bottom:34px}
.department-page .academic-notice-heading>span{
    display:inline-block;padding:7px 14px;border-radius:30px;
    background:#d9eff0;color:#087e8b;font-size:11px;font-weight:800;letter-spacing:1.5px
}
.department-page .academic-notice-heading h2{
    margin:14px 0 10px;color:#102a43;font:700 38px 'Playfair Display',Georgia,serif
}
.department-page .academic-notice-heading h2 strong{color:#087e8b}
.department-page .academic-notice-heading p{color:#647786;font-size:14px;line-height:1.7}
.department-page .public-notice-list{display:grid;gap:14px}
.department-page .public-notice-card{
    display:flex;align-items:center;gap:18px;padding:21px 23px;
    background:#fff;border:1px solid #dce8ed;border-left:4px solid #d6a84f;
    border-radius:13px;box-shadow:0 7px 22px rgba(16,42,67,.06);
    transition:transform .2s ease,box-shadow .2s ease
}
.department-page .public-notice-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,42,67,.10)}
.department-page .public-notice-icon{
    width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;
    border-radius:13px;background:#eaf4f5;font-size:23px
}
.department-page .public-notice-body{flex:1;min-width:0}
.department-page .public-notice-meta{display:flex;gap:13px;align-items:center;margin-bottom:7px}
.department-page .public-notice-meta span{
    padding:4px 9px;border-radius:20px;background:#d9eff0;color:#087e8b;
    font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px
}
.department-page .public-notice-meta time{color:#82919d;font-size:11px}
.department-page .public-notice-body h3{color:#102a43;font-size:17px;line-height:1.5;margin-bottom:4px}
.department-page .public-notice-body p{color:#647786;font-size:13px;line-height:1.65}
.department-page .public-notice-filename{display:block;margin-top:7px;color:#8796a2;font-size:11px}
.department-page .public-notice-file{
    flex:0 0 auto;padding:11px 15px;border:0;border-radius:8px;
    color:#fff;background:#102a43;font-size:12px;font-weight:700;cursor:pointer
}
.department-page .public-notice-file:hover{background:#087e8b}
.department-page .notice-empty-state{
    padding:38px 20px;text-align:center;background:#fff;border:1px dashed #b9cbd4;
    border-radius:13px;color:#647786
}
.department-page .notice-empty-state>span{font-size:30px}
.department-page .notice-empty-state h3{margin:10px 0;color:#102a43}
.department-page .notice-empty-state p{font-size:13px}
@media(max-width:650px){
    .department-page .academic-notice-section{padding:52px 16px}
    .department-page .academic-notice-heading h2{font-size:30px}
    .department-page .public-notice-card{align-items:flex-start;flex-wrap:wrap;padding:17px}
    .department-page .public-notice-body{flex-basis:calc(100% - 66px)}
    .department-page .public-notice-file{margin-left:66px}
}


/* =====================================
   PREMIUM ACADEMIC YEAR RESOURCE PAGES
===================================== */
.year-page,.resource-page{min-height:100vh;background:#f4f8f5;color:#24382d;font-family:'DM Sans',Arial,sans-serif}
.year-header{padding:34px 5% 72px;background:radial-gradient(circle at 80% 0%,rgba(220,178,91,.22),transparent 30%),linear-gradient(130deg,#103c2b,#17613d 58%,#0d4938);color:#fff;position:relative;overflow:hidden}
.year-header:after{content:"";position:absolute;width:380px;height:380px;border:1px solid rgba(255,255,255,.10);border-radius:50%;right:-110px;bottom:-240px;box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.02)}
.year-header-inner{max-width:1180px;margin:0 auto;position:relative;z-index:1}
.year-brand,.resource-brand{display:inline-flex;align-items:center;gap:12px;color:#fff;text-decoration:none}
.year-brand-mark{width:48px;height:48px;display:grid;place-items:center;border:1px solid #d9b45e;border-radius:14px;background:rgba(255,255,255,.10);font-size:25px}
.year-brand strong,.resource-brand strong{display:block;font-size:16px;letter-spacing:1.2px}
.year-brand small,.resource-brand small{display:block;margin-top:3px;font-size:9px;letter-spacing:1.7px;color:#d8e8dc}
.year-heading{max-width:760px;margin:48px auto 0;text-align:center}
.year-eyebrow,.year-section-label,.resource-kicker{font-size:10px;font-weight:800;letter-spacing:2px;color:#e9c875}
.year-heading h1{margin:12px 0 10px;font:700 clamp(34px,5vw,54px) 'Playfair Display',Georgia,serif;color:#fff}
.year-heading p{font-size:15px;line-height:1.7;color:#d6e5dc}
.year-header-actions{display:flex;justify-content:center;gap:12px;margin-top:25px;flex-wrap:wrap}
.year-header-actions a{padding:10px 17px;border:1px solid rgba(255,255,255,.32);border-radius:9px;color:#fff;text-decoration:none;font-size:12px;font-weight:700;background:rgba(255,255,255,.08);transition:.2s}
.year-header-actions a:hover{background:#e3bd68;color:#173b2b;border-color:#e3bd68;transform:translateY(-2px)}
.year-main{max-width:1180px;margin:-30px auto 0;padding:0 24px 55px;position:relative;z-index:2}
.year-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px 32px;background:#fff;border:1px solid #e0e9e2;border-radius:16px;box-shadow:0 12px 32px rgba(17,61,41,.08);margin-bottom:25px}
.year-intro h2{margin:8px 0;color:#173d2c;font:700 27px 'Playfair Display',Georgia,serif}
.year-intro h2 em{color:#21865a;font-style:normal}
.year-intro p{color:#708176;font-size:13px;line-height:1.7}
.year-section-label{color:#21865a;font-size:9px}
.year-intro-mark{width:62px;height:62px;flex:0 0 62px;display:grid;place-items:center;border-radius:18px;background:#edf6ee;color:#d3a94d;font-size:34px}
.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.resource-card{min-height:116px;display:flex;align-items:center;gap:16px;padding:21px;background:#fff;border:1px solid #e0e9e2;border-radius:14px;text-decoration:none;color:#203b2d;box-shadow:0 5px 18px rgba(20,69,43,.045);transition:transform .22s,border-color .22s,box-shadow .22s}
.resource-card:hover{transform:translateY(-4px);border-color:#c6a14f;box-shadow:0 13px 27px rgba(20,69,43,.11)}
.resource-icon{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#edf7ef,#e4f0e7);font-size:24px}
.resource-card-text{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.resource-card-text strong{font-size:15px;color:#174a32}
.resource-card-text small{font-size:11px;line-height:1.55;color:#7a8980}
.resource-arrow{font-size:19px;color:#bd9745;transition:transform .2s}
.resource-card:hover .resource-arrow{transform:translate(3px,-3px)}
.year-bottom-link{text-align:center;margin-top:30px}
.year-bottom-link a{color:#1b7147;text-decoration:none;font-size:13px;font-weight:700}
.year-bottom-link a:hover{text-decoration:underline}
.year-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:22px 5%;background:#103b2b;color:#c9dcd0;font-size:11px}

/* RESOURCE CATEGORY DETAIL PAGE */
.resource-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px max(5%,calc((100% - 1180px)/2));background:#103b2b;color:#fff}
.resource-brand>span{width:42px;height:42px;display:grid;place-items:center;border:1px solid #d9b45e;border-radius:12px;background:rgba(255,255,255,.1);font-size:23px}
.resource-header nav{display:flex;gap:10px;flex-wrap:wrap}
.resource-header nav a{padding:9px 13px;border-radius:8px;border:1px solid rgba(255,255,255,.22);color:#fff;text-decoration:none;font-size:11px;font-weight:700}
.resource-header nav a:hover{background:#dfba68;color:#173b2b}
.resource-main{max-width:1180px;margin:0 auto;padding:42px 24px 70px}
.resource-hero{padding:44px 30px;text-align:center;border-radius:18px;background:radial-gradient(circle at 80% 10%,rgba(226,191,112,.2),transparent 30%),linear-gradient(135deg,#e8f2e9,#f8fbf7);border:1px solid #dbe8dc}
.resource-kicker{color:#268354}
.resource-hero h1{margin:12px 0 7px;color:#173d2c;font:700 clamp(30px,4vw,43px) 'Playfair Display',Georgia,serif}
.resource-hero #academicYear{font-size:14px;font-weight:700;color:#b28a3e}
.resource-hero #categoryDescription{margin-top:12px;color:#718176;font-size:13px;line-height:1.7}
.resource-results-section{margin-top:38px}
.resource-results-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:20px}
.resource-results-heading span{font-size:9px;letter-spacing:1.8px;font-weight:800;color:#238354}
.resource-results-heading h2{margin-top:6px;color:#173d2c;font:700 27px 'Playfair Display',Georgia,serif}
.resource-results-heading>a{font-size:12px;color:#28764c;text-decoration:none;font-weight:700}
.resource-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.material-card{overflow:hidden;background:#fff;border:1px solid #e0e9e2;border-radius:14px;box-shadow:0 6px 20px rgba(20,69,43,.06)}
.material-card-preview{height:145px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#e9f4eb,#f6f8ed)}
.material-card-preview img{width:100%;height:100%;object-fit:contain;cursor:pointer}
.resource-file-icon{font-size:48px}
.material-card-content{padding:19px}
.material-category-tag{display:inline-block;padding:5px 9px;border-radius:20px;background:#eaf5ec;color:#28764c;font-size:9px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}
.material-card-content h3{margin:11px 0 8px;color:#1b4931;font-size:16px;line-height:1.5}
.material-card-content p{margin:5px 0;color:#758278;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.material-reading-text{max-height:220px;overflow:auto;margin:12px 0;padding:13px;border-radius:9px;background:#f6f9f6;color:#53645a;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.material-file-name{display:block;margin:10px 0;color:#87938a;font-size:10px;overflow-wrap:anywhere}
.material-open-btn{display:inline-flex;margin-top:12px;padding:10px 14px;border-radius:8px;background:#17613d;color:#fff;text-decoration:none;font-size:11px;font-weight:700}
.material-open-btn:hover{background:#d5ad5b;color:#163d2c}
.material-text-label{display:inline-block;margin-top:12px;color:#268354;font-size:11px;font-weight:700}
.resource-empty{grid-column:1/-1;padding:48px 20px;text-align:center;background:#fff;border:1px dashed #c9d9cc;border-radius:15px;color:#738178}
.resource-empty>span{font-size:34px}.resource-empty h3{margin:12px 0 7px;color:#214b34;font:700 20px 'Playfair Display',Georgia,serif}.resource-empty p{font-size:12px}
@media(max-width:850px){.resource-grid{grid-template-columns:1fr}.resource-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.year-header{padding:25px 20px 60px}.year-heading{margin-top:35px}.year-intro{padding:22px;align-items:flex-start}.year-intro h2{font-size:22px}.year-main{padding-left:15px;padding-right:15px}.resource-card{padding:16px;gap:12px}.resource-icon{width:44px;height:44px;flex-basis:44px;font-size:21px}.resource-card-text strong{font-size:13px}.resource-card-text small{font-size:10px}.resource-header{align-items:flex-start;flex-direction:column;padding:15px 18px}.resource-main{padding:25px 15px 50px}.resource-hero{padding:34px 18px}.resource-results-heading{align-items:flex-start;flex-direction:column}.resource-results-grid{grid-template-columns:1fr}.year-footer{flex-direction:column;text-align:center}}


/* =====================================
   LIBRARY HOMEPAGE: HERO + COMPACT FOOTER
===================================== */

/* Keep the hero text on the left and reserve a clear image area on the right. */
.home-page .hero-section {
    padding: 64px 0 72px;
}

.home-page .hero-content {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
}

.home-page .hero-image-wrapper {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.home-page .hero-image-placeholder {
    min-height: 390px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed #a9cbb1;
    border-radius: 20px;
    background:
        radial-gradient(circle at 78% 20%, rgba(39, 134, 83, .12), transparent 32%),
        linear-gradient(145deg, #eaf4eb, #f8fbf7 68%, #e4f0e6);
    color: #245a39;
    text-align: center;
    box-shadow: 0 18px 40px rgba(24, 69, 39, .08);
}

.home-page .hero-placeholder-leaf {
    font-size: 64px;
    line-height: 1;
}

.home-page .hero-image-placeholder strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 25px;
    color: #174b31;
}

.home-page .hero-image-placeholder small {
    color: #728579;
    font-size: 12px;
    letter-spacing: .5px;
}

/* Simple centered identity footer: no Quick Links and no Portals columns. */
.home-page .home-footer {
    padding: 25px 0 0;
    background: #102f20;
}

.home-page .home-footer .footer-content {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    text-align: center;
}

.home-page .home-footer .footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.home-page .footer-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 2px;
    border: 1px solid rgba(219, 190, 112, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-size: 23px;
}

.home-page .home-footer .footer-about h3 {
    margin: 0;
    color: #ffffff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px;
    letter-spacing: .3px;
}

.home-page .home-footer .footer-about p {
    max-width: none;
    margin: 0;
    color: #c5d8ca;
    font-size: 12px;
    letter-spacing: .4px;
}

.home-page .footer-bottom {
    min-height: 48px;
    padding: 11px 24px;
    gap: 8px 20px;
}

.home-page .footer-bottom p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 850px) {
    .home-page .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-page .hero-text {
        max-width: 650px;
    }

    .home-page .hero-image-placeholder {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .home-page .hero-section {
        padding: 48px 0 58px;
    }

    .home-page .hero-text h1 {
        font-size: clamp(34px, 9vw, 43px);
    }

    .home-page .hero-image-placeholder {
        min-height: 230px;
    }

    .home-page .hero-placeholder-leaf {
        font-size: 48px;
    }

    .home-page .home-footer {
        padding-top: 20px;
    }

    .home-page .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Year page header actions: three clear navigation buttons */
.year-header-actions a.my-profile-btn{
    background:linear-gradient(135deg,#e5c36f,#f1d995);
    border-color:#e5c36f;
    color:#173b2b;
    box-shadow:0 5px 14px rgba(0,0,0,.12);
}
.year-header-actions a.my-profile-btn:hover{
    background:#fff;
    border-color:#fff;
    color:#173b2b;
}
@media(max-width:600px){
    .year-header-actions{gap:8px}
    .year-header-actions a{padding:9px 11px;font-size:11px}
}


/* CATEGORY PAGE: restore clear botanical navigation button colors */
body.resource-page .resource-header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #dfba68 !important;
    border-radius: 9px;
    background: #dfba68 !important;
    color: #173b2b !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

body.resource-page .resource-header nav a:nth-child(2) {
    background: #f4f8f1 !important;
    border-color: #f4f8f1 !important;
    color: #17452f !important;
}

body.resource-page .resource-header nav a:hover {
    background: #fff0c9 !important;
    border-color: #fff0c9 !important;
    color: #103b2b !important;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    body.resource-page .resource-header nav {
        width: 100%;
        gap: 8px;
    }

    body.resource-page .resource-header nav a {
        flex: 1 1 auto;
        text-align: center;
    }
}



/* CATEGORY PAGE: remove the white rectangular panel behind header links */
body.resource-page .resource-header nav {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    body.resource-page .resource-header nav {
        background: transparent !important;
        padding: 0 !important;
    }
}


/* NAVIGATION BUTTONS: show accent color only while hovering */
body.resource-page .resource-header nav a,
body.resource-page .resource-header nav a:nth-child(2) {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .55) !important;
    color: #ffffff !important;
    box-shadow: none;
}

body.resource-page .resource-header nav a:hover,
body.resource-page .resource-header nav a:nth-child(2):hover {
    background: #dfba68 !important;
    border-color: #dfba68 !important;
    color: #173b2b !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.year-header-actions a.my-profile-btn {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .65) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.year-header-actions a.my-profile-btn:hover {
    background: linear-gradient(135deg, #e5c36f, #f1d995) !important;
    border-color: #e5c36f !important;
    color: #173b2b !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12) !important;
}


/* =====================================================
   BOTANY LIBRARY — YEAR CATEGORY CARD POLISH
   Visual-only hover, focus and touch feedback.
===================================================== */
.year-page .resource-card{
    position:relative;
    overflow:hidden;
    border:1px solid #e0ebe1;
    background:linear-gradient(145deg,#ffffff 0%,#f9fcf8 100%);
    box-shadow:0 7px 20px rgba(24,75,40,.045);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.year-page .resource-card::after{
    content:"";
    position:absolute;
    left:0;
    top:14px;
    bottom:14px;
    width:3px;
    border-radius:0 4px 4px 0;
    background:linear-gradient(180deg,#d7b66b,#3b9660);
    transform:scaleY(0);
    transform-origin:center;
    transition:transform .22s ease;
}
.year-page .resource-card:hover{
    transform:translateY(-4px);
    border-color:#c8ddca;
    background:linear-gradient(145deg,#ffffff,#f0f7ef);
    box-shadow:0 13px 28px rgba(24,75,40,.095);
}
.year-page .resource-card:hover::after,
.year-page .resource-card:focus-visible::after{transform:scaleY(1)}
.year-page .resource-icon{
    border:1px solid #e0ebdf;
    box-shadow:0 4px 12px rgba(24,75,40,.055);
    transition:transform .22s ease, background .22s ease;
}
.year-page .resource-card:hover .resource-icon{
    transform:scale(1.06) rotate(-3deg);
    background:#e8f3e8;
}
.year-page .resource-arrow{
    transition:transform .22s ease,color .22s ease;
}
.year-page .resource-card:hover .resource-arrow{
    transform:translate(3px,-3px);
    color:#24764a;
}
.year-page .resource-card:focus-visible{
    outline:3px solid rgba(215,182,107,.85);
    outline-offset:3px;
}
@media(prefers-reduced-motion:reduce){
    .year-page .resource-card,.year-page .resource-icon,.year-page .resource-arrow{transition:none}
}
