/* =====================================================
   RUSTIC Official Theme — 1:1 Shushilan Clone Stylesheet
   Color tokens: Deep forest green + Warm brass accent + Navy primary
===================================================== */

@import url('https://fonts.maateen.me/adorsho-lipi/font.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --nav-link-color: #1f5c3f;
    --nav-link-hover-color: #12402a;
    --nav-link-hover-bg: rgba(31, 92, 63, .08);
    --nav-active-color: #12402a;
    --nav-accent: #c8933f;
    --dropdown-hover-bg: rgba(31, 92, 63, .06);
    --brand-primary: rgb(30, 79, 124);
    --brand-dark-blue: #15395b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2b2b2b;
    background-color: #fcfcfc;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: inherit;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.bangla_font {
    font-family: 'AdorshoLipi', Arial, sans-serif;
}

.display-7 {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
}

.display-8 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.text-justify {
    text-align: justify;
}

/* =====================================================
   Top Address & Contact Header
===================================================== */
.address {
    font-size: 13.5px;
    line-height: 1.4;
}

.phone {
    text-decoration: none;
}

/* =====================================================
   Sticky Navigation Bar & Hover Dropdowns
===================================================== */
.navbar.stickly {
    position: relative;
    z-index: 1020;
    transition: all 0.3s ease;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    animation: slideDown 0.35s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar .navbar-nav {
    gap: 2px;
}

@media (min-width: 768px) {
    .navbar .navbar-nav.ms-auto {
        margin-right: -14px;
    }
}

.navbar-brand img {
    max-height: 52px;
    width: auto;
    transition: transform .2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.03);
}

.navbar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1a1a1a !important;
    font-weight: 500;
    font-size: .90rem;
    padding: .6rem .8rem !important;
    border-radius: 6px;
    transition: color .2s ease, background-color .2s ease;
}

.navbar .nav-link i {
    font-size: .95rem;
    line-height: 1;
    color: var(--nav-link-color);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--nav-link-hover-color) !important;
    background-color: var(--nav-link-hover-bg);
}

.navbar .nav-link.active {
    color: var(--nav-active-color) !important;
    font-weight: 700;
    font-size: .90rem;
    background-color: var(--nav-link-hover-bg);
}

/* Animated accent underline */
.navbar .nav-link.active::before,
.navbar .nav-link:hover::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--nav-accent);
}

/* Dropdown items */
.navbar .dropdown-item {
    color: #1e4f7c;
    font-size: .88rem;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color .15s ease, padding-left .15s ease, color .15s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--dropdown-hover-bg);
    color: var(--nav-active-color);
    padding-left: 20px;
}

.navbar .dropdown-item.active {
    background-color: var(--nav-link-hover-bg);
    color: var(--nav-active-color);
    font-weight: 600;
}

@media (min-width: 768px) {
    .navbar .dropdown-menu {
        border: none;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
        padding: 8px;
        margin-top: 10px;
        min-width: 240px;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }

    .navbar .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .navbar .dropdown-menu {
        border-left: 2px solid var(--nav-link-hover-bg);
        margin-left: 8px;
    }
}

/* =====================================================
   Ticker & Typewriter Bar
===================================================== */
.bg-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.bg-date-time {
    background-color: #9fbfd5;
}

#text {
    display: inline-block;
    white-space: nowrap;
    border-right: 3px solid #000;
    overflow: hidden;
    text-shadow: 1px 1px 6px rgba(0, 70, 20, 0.6);
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =====================================================
   Corner Headers (Shushilan brand headers)
===================================================== */
.corner {
    border-radius: 4px;
    letter-spacing: 0.3px;
    font-size: 1.15rem;
    font-weight: 600;
}

/* Color overrides identical to Shushilan */
.bg-primary,
.bg-success,
.bg-danger,
.bg-dark {
    background-color: rgb(30, 79, 124) !important;
}

.bg-info {
    background-color: rgb(30, 79, 124) !important;
    line-height: 1.2;
    font-size: 1.25rem;
    color: white;
}

/* =====================================================
   Human Resource Stats
===================================================== */
.hr-stat-block {
    transition: transform 0.2s ease;
}

.hr-stat-block:hover {
    transform: translateY(-2px);
}

.hr-stat-icon {
    object-fit: contain;
}

.hr-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e4f7c;
    margin-bottom: 0;
}

.hr-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b4b4b;
    margin-top: 0;
}

/* =====================================================
   Contact Cards (Admin, HR, Complaint)
===================================================== */
.contact-card {
    border-radius: 12px;
    padding: 1.2rem 0.9rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.contact-card p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.35;
    margin-bottom: 3px;
    word-break: break-word;
}

.contact-icon {
    font-size: 38px;
    margin-bottom: 6px;
    display: inline-block;
}

.contact-admin { background-color: #EAF2FB; }
.contact-admin .contact-icon, .contact-admin h5 { color: #2471A3; }

.contact-hr { background-color: #EAF7EE; }
.contact-hr .contact-icon, .contact-hr h5 { color: #1E8449; }

.contact-complain { background-color: #FDEDEC; }
.contact-complain .contact-icon, .contact-complain h5 { color: #C0392B; }

/* =====================================================
   Quick Access & Programs
===================================================== */
.qa-img {
    width: 100%;
    max-width: 90px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.qa-item:hover .qa-img {
    transform: scale(1.08);
}

.qa-item h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #222;
    margin-top: 6px;
    line-height: 1.2;
}

.qa-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.25s ease;
}

.current_project:hover .program-img {
    transform: scale(1.04);
}

.current_project h5 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 6px;
    color: #222;
}

.current_project a {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   Our Cell 12-Box Grid (Exact Shushilan HSL Colors)
===================================================== */
.cell-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    background-color: hsl(80, 55%, 92%);
    border-radius: 8px;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.8rem;
}

.cell-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.cell-box a, .cell-box h2 {
    text-decoration: none;
}

.cell-box h2 {
    color: hsl(80, 55%, 26%);
    font-size: 1.02rem;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 0;
}

.cell-box i.fa-big {
    font-size: 52px;
    color: hsl(80, 55%, 28%);
}

/* Individual Cell Variations */
.cell-1 i, .cell-1 h2 { color: hsl(80, 55%, 28%); }
.cell-2 i, .cell-2 h2 { color: hsl(150, 55%, 28%); }
.cell-3 i, .cell-3 h2 { color: hsl(200, 55%, 28%); }
.cell-4 i, .cell-4 h2 { color: hsl(220, 55%, 28%); }
.cell-5 i, .cell-5 h2 { color: hsl(260, 55%, 28%); }
.cell-6 i, .cell-6 h2 { color: hsl(120, 55%, 28%); }
.cell-7 i, .cell-7 h2 { color: hsl(180, 55%, 28%); }
.cell-8 i, .cell-8 h2 { color: hsl(30, 65%, 28%); }
.cell-9 i, .cell-9 h2 { color: hsl(210, 55%, 28%); }
.cell-10 i, .cell-10 h2 { color: hsl(350, 55%, 28%); }
.cell-11 i, .cell-11 h2 { color: hsl(160, 55%, 28%); }
.cell-12 i, .cell-12 h2 { color: hsl(45, 65%, 28%); }

/* =====================================================
   Footer
===================================================== */
.bg-footer {
    background-color: #15395b;
    color: #e9ecef;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    border-top: 4px solid var(--nav-accent);
}

.bg-footer h5 {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.bg-footer address p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.bg-footer .social ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.bg-footer .social ul li a img {
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.bg-footer .social ul li a:hover img {
    transform: scale(1.1);
}

.copyright {
    background-color: #0f2740 !important;
    font-size: 0.88rem;
    padding: 10px 0;
}

/* =====================================================
   Mobile Media Query Optimizations
===================================================== */
@media (max-width: 575.98px) {
    .hr-stat-block > .row {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        row-gap: 1px;
    }
    .hr-stat-block > .row > div {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
    .hr-stat-icon {
        width: 40px !important;
        height: 40px !important;
        object-fit: contain;
        margin-top: 2px;
    }
    .hr-stat-num {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        margin: 4px 0 0 0 !important;
        color: #1e4f7c;
    }
    .hr-stat-label {
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        color: #5b5b5b;
    }

    .complain_area {
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
    .complain_area .row {
        --bs-gutter-x: 0.4rem;
        --bs-gutter-y: 0.4rem;
    }
    .contact-card {
        padding: 0.6rem 0.35rem !important;
        border-radius: 10px;
    }
    .contact-icon {
        font-size: 24px !important;
        margin-bottom: 2px !important;
    }
    .contact-card h5 {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }
    .contact-card p {
        font-size: 0.62rem !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .quickAccess .qa-img {
        height: 55px;
        max-width: 55px;
    }
    .qa-item {
        padding: 0.35rem !important;
    }
    .qa-item h5 {
        font-size: 0.7rem;
        line-height: 1.15;
        margin-top: 4px;
    }

    .program-img {
        height: 65px;
    }
    .current_project {
        padding: 0.35rem !important;
    }
    .current_project h5 {
        font-size: 0.65rem;
        line-height: 1.15;
    }

    .cell-box {
        padding: 0.8rem 0.5rem !important;
        min-height: 110px;
    }
    .cell-box .fa-big {
        font-size: 36px !important;
    }
    .cell-box h2.display-7 {
        font-size: 0.82rem !important;
        line-height: 1.15;
    }
}
