/* =========================================================
   SEIHR — KASHINATHPUR EMPLOYEE SYSTEM
   RESPONSIVE CSS
   Mobile • Tablet • Desktop
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    font-family:
        Arial,
        "Noto Sans Bengali",
        "Noto Sans",
        sans-serif;

    color: #1b1b1b;
    background: #f5f7f6;

    line-height: 1.55;
}

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


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;
    max-width: 1400px;
    min-width: 0;

    margin: 0 auto;

    background: #ffffff;

    position: relative;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-wrap {
    width: 100%;
    max-width: 100%;

    overflow: hidden;

    background: #ffffff;
}

.site-logo {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: 230px;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   LIVE HEADLINE
   ========================================================= */

.live-ticker {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    min-height: 44px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;

    overflow: hidden;
}

.live-label {
    flex: 0 0 auto;

    padding: 8px 16px;

    background: #c62828;
    color: #ffffff;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: .5px;

    white-space: nowrap;
}

.ticker-window {
    flex: 1 1 auto;

    min-width: 0;
    max-width: 100%;

    overflow: hidden;

    white-space: nowrap;
}

.ticker-text {
    display: inline-block;

    padding-left: 100%;

    color: #164d2c;

    font-size: 16px;
    font-weight: 600;

    white-space: nowrap;

    animation: tickerMove 60s linear infinite;

    will-change: transform;
}

@keyframes tickerMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }

}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 50px;
    height: 44px;

    margin: 8px 12px 8px auto;
    padding: 8px;

    border: 0;
    border-radius: 6px;

    background: #08783d;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    position: relative;

    z-index: 1000;
}

.menu-toggle span {
    display: block;

    width: 30px;
    height: 4px;

    margin: 0;

    background: #ffffff;

    border-radius: 3px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-menu {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    background: #08783d;
}

.nav-menu ul {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    list-style: none;

    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;

    color: #ffffff;

    text-decoration: none;

    padding: 12px 13px;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background: #075f31;
}


/* =========================================================
   PAGE
   ========================================================= */

.employee-page,
.details-page {
    width: 100%;
    max-width: 1400px;
    min-width: 0;

    margin: 0 auto;

    padding: 28px 16px 45px;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.page-heading {
    width: 100%;

    text-align: center;

    margin: 0 0 24px;
}

.eyebrow {
    margin: 0 0 3px;

    color: #08783d;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 1px;
}

.page-heading h1 {
    margin: 0;

    color: #145c34;

    font-size: clamp(25px, 4vw, 40px);

    line-height: 1.3;

    overflow-wrap: anywhere;
}

.heading-subtitle {
    margin: 6px 0 0;

    color: #666666;

    font-size: 17px;
}


/* =========================================================
   EMPLOYEE TABLE CONTAINER
   ========================================================= */

.table-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 2px 14px rgba(0, 0, 0, .08);

    padding: 10px;

    overflow: hidden;
}


/*
   IMPORTANT:
   শুধু টেবিলের ভিতরে horizontal scroll হবে।
   পুরো website ডানদিকে বের হবে না।
*/

.table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}


/* =========================================================
   EMPLOYEE TABLE
   ========================================================= */

.employee-table {
    width: 100%;

    /*
       Desktop-এ পুরো জায়গা ব্যবহার করবে।
       ছোট স্ক্রিনে শুধু table-scroll scroll করবে।
    */

    min-width: 900px;

    border-collapse: collapse;

    background: #ffffff;
}

.employee-table th,
.employee-table td {
    border: 1px solid #d9e0dc;

    padding: 11px 10px;

    text-align: center;
    vertical-align: middle;
}

.employee-table thead th {
    background: #08783d;

    color: #ffffff;

    font-weight: 700;

    white-space: nowrap;
}

.employee-table tbody tr:nth-child(even) {
    background: #f7faf8;
}

.employee-table tbody tr:hover {
    background: #edf6f0;
}


/* =========================================================
   TABLE COLUMN CONTROL
   ========================================================= */

.employee-table th:nth-child(1),
.employee-table td:nth-child(1) {
    width: 75px;
}

.employee-table th:nth-child(2),
.employee-table td:nth-child(2) {
    width: 110px;
}

.employee-table th:nth-child(3),
.employee-table td:nth-child(3) {
    min-width: 210px;
}

.employee-table th:nth-child(4),
.employee-table td:nth-child(4) {
    min-width: 230px;
}

.employee-table th:nth-child(5),
.employee-table td:nth-child(5) {
    min-width: 150px;
}

.employee-table th:nth-child(6),
.employee-table td:nth-child(6) {
    width: 120px;
}


/* =========================================================
   EMPLOYEE PHOTO
   ========================================================= */

.employee-image {
    width: 70px;
    height: 88px;

    margin: 0 auto;

    object-fit: cover;

    border-radius: 6px;

    border: 1px solid #cfd8d2;

    background: #eeeeee;
}


/* =========================================================
   EMPLOYEE TEXT
   ========================================================= */

.employee-name {
    min-width: 170px;

    font-weight: 700;

    overflow-wrap: anywhere;
}

.employee-designation {
    min-width: 210px;

    overflow-wrap: anywhere;
}

.employee-phone {
    white-space: nowrap;
}


/* =========================================================
   READ MORE BUTTON
   ========================================================= */

.read-more {
    display: inline-block;

    padding: 7px 13px;

    border-radius: 5px;

    background: #08783d;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background .2s ease,
        transform .2s ease;
}

.read-more:hover,
.read-more:focus {
    background: #075f31;
}

.read-more:active {
    transform: scale(.97);
}


/* =========================================================
   STATUS
   ========================================================= */

.loading,
.no-data,
.error-message {
    padding: 25px !important;

    color: #666666;

    text-align: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    max-width: 100%;

    margin-top: 20px;

    padding: 22px 15px;

    text-align: center;

    color: #ffffff;

    background: #075f31;
}

.site-footer p {
    margin: 0;

    font-size: 16px;
}


/* =========================================================
   DETAILS PAGE
   ========================================================= */

.back-link {
    display: inline-block;

    margin-bottom: 14px;

    color: #08783d;

    text-decoration: none;

    font-weight: 700;
}

.back-link:hover,
.back-link:focus {
    text-decoration: underline;
}

.employee-details-card {
    width: 100%;
    max-width: 900px;
    min-width: 0;

    margin: 0 auto;

    background: #ffffff;

    padding: 22px;

    border-radius: 10px;

    box-shadow:
        0 2px 14px rgba(0, 0, 0, .08);

    overflow: hidden;
}


/* =========================================================
   DETAIL PHOTO
   ========================================================= */

.detail-photo-wrap {
    width: 100%;

    text-align: center;

    margin-bottom: 20px;
}

.detail-photo {
    display: block;

    width: 260px;
    height: 325px;

    max-width: 100%;

    margin: 0 auto;

    object-fit: cover;

    border: 1px solid #d4ddd7;

    border-radius: 7px;

    background: #eeeeee;
}


/* =========================================================
   DETAIL NAME
   ========================================================= */

.detail-name {
    margin: 0 0 6px;

    text-align: center;

    color: #145c34;

    font-size: clamp(22px, 4vw, 30px);

    line-height: 1.35;

    overflow-wrap: anywhere;
}

.detail-designation {
    margin: 0 0 20px;

    text-align: center;

    color: #666666;

    font-weight: 600;

    overflow-wrap: anywhere;
}


/* =========================================================
   INFORMATION TABLE
   ========================================================= */

.info-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.info-table {
    width: 100%;

    border-collapse: collapse;
}

.info-table th,
.info-table td {
    border: 1px solid #d7ded9;

    padding: 11px 12px;

    text-align: left;

    vertical-align: top;

    overflow-wrap: anywhere;
}

.info-table th {
    width: 34%;

    background: #f0f5f2;

    color: #174c2e;

    white-space: nowrap;
}

.info-table td {
    color: #222222;
}


/* =========================================================
   DETAIL DESCRIPTION
   ========================================================= */

.detail-description {
    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid #dddddd;

    overflow-wrap: anywhere;
}

.detail-description h3 {
    margin-top: 0;

    color: #145c34;
}


/* =========================================================
   LARGE DESKTOP
   1201px+
   ========================================================= */

@media (min-width: 1201px) {

    .site-logo {
        max-height: 230px;
    }

    .nav-menu a {
        padding: 13px 14px;

        font-size: 15px;
    }

    .employee-page,
    .details-page {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =========================================================
   DESKTOP
   901px – 1200px
   ========================================================= */

@media (min-width: 901px) and (max-width: 1200px) {

    .site-logo {
        max-height: 210px;
    }

    .nav-menu a {
        padding: 11px 10px;

        font-size: 14px;
    }

    .employee-page,
    .details-page {
        padding-left: 14px;
        padding-right: 14px;
    }

}


/* =========================================================
   TABLET
   701px – 900px
   ========================================================= */

@media (min-width: 701px) and (max-width: 900px) {

    .site-logo {
        max-height: 190px;
    }

    .live-ticker {
        min-height: 42px;
    }

    .live-label {
        padding: 8px 13px;

        font-size: 15px;
    }

    .ticker-text {
        font-size: 15px;

        animation-duration: 23s;
    }

    .nav-menu a {
        padding: 10px 9px;

        font-size: 14px;
    }

    .employee-page,
    .details-page {
        padding: 22px 12px 35px;
    }

    .page-heading {
        margin-bottom: 20px;
    }

    .page-heading h1 {
        font-size: 32px;
    }

    .table-section {
        padding: 8px;
    }

    .employee-image {
        width: 68px;
        height: 85px;
    }

    .employee-details-card {
        padding: 18px;
    }

}


/* =========================================================
   MOBILE
   481px – 700px
   ========================================================= */

@media (min-width: 481px) and (max-width: 700px) {

    .site-logo {
        max-height: 165px;
    }

    /*
       গুরুত্বপূর্ণ:
       Menu আর absolute নয়।
       তাই logo-এর উপর উঠবে না।
    */

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        display: block;

        width: 100%;
    }

    .nav-menu a {
        width: 100%;

        padding: 11px 15px;

        border-top: 1px solid rgba(255, 255, 255, .15);

        font-size: 15px;

        white-space: normal;
    }

    .live-ticker {
        min-height: 40px;
    }

    .live-label {
        padding: 7px 11px;

        font-size: 14px;
    }

    .ticker-text {
        font-size: 14px;

        animation-duration: 21s;
    }

    .employee-page,
    .details-page {
        padding: 19px 10px 32px;
    }

    .page-heading {
        margin-bottom: 20px;
    }

    .eyebrow {
        font-size: 16px;
    }

    .page-heading h1 {
        font-size: clamp(25px, 6vw, 32px);
    }

    .heading-subtitle {
        font-size: 15px;
    }

    .table-section {
        padding: 5px;

        border-radius: 8px;
    }

    .employee-details-card {
        padding: 15px;
    }

    .detail-photo {
        width: 220px;
        height: 275px;
    }

    .info-table th,
    .info-table td {
        padding: 10px;

        font-size: 15px;
    }

    .site-footer {
        padding: 20px 12px;
    }

    .site-footer p {
        font-size: 15px;
    }

}


/* =========================================================
   SMALL MOBILE
   351px – 480px
   ========================================================= */

@media (min-width: 351px) and (max-width: 480px) {

    .site-logo {
        max-height: 145px;
    }

    .menu-toggle {
        display: flex;

        width: 48px;
        height: 42px;

        margin-top: 7px;
        margin-right: 10px;
        margin-bottom: 7px;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        display: block;
    }

    .nav-menu a {
        padding: 10px 13px;

        font-size: 14px;

        white-space: normal;
    }

    .live-ticker {
        min-height: 38px;
    }

    .live-label {
        padding: 7px 10px;

        font-size: 13px;
    }

    .ticker-text {
        font-size: 13px;

        animation-duration: 20s;
    }

    .employee-page,
    .details-page {
        padding: 17px 8px 28px;
    }

    .page-heading {
        margin-bottom: 17px;
    }

    .eyebrow {
        font-size: 15px;
    }

    .page-heading h1 {
        font-size: 26px;

        line-height: 1.35;
    }

    .heading-subtitle {
        font-size: 14px;
    }

    .table-section {
        padding: 4px;

        border-radius: 8px;
    }

    .employee-table {
        min-width: 850px;
    }

    .employee-table th,
    .employee-table td {
        padding: 9px 8px;
    }

    .employee-image {
        width: 65px;
        height: 82px;
    }

    .employee-details-card {
        padding: 12px;
    }

    .detail-photo {
        width: 200px;
        height: 250px;
    }

    .detail-name {
        font-size: 22px;
    }

    .info-table th,
    .info-table td {
        padding: 9px;

        font-size: 14px;
    }

    .info-table th {
        width: 40%;
    }

    .site-footer {
        padding: 18px 10px;
    }

    .site-footer p {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   350px AND BELOW
   ========================================================= */

@media (max-width: 350px) {

    .site-logo {
        max-height: 125px;
    }

    .menu-toggle {
        display: flex;

        width: 46px;
        height: 40px;

        margin-top: 6px;
        margin-right: 8px;
        margin-bottom: 6px;

        gap: 4px;
    }

    .menu-toggle span {
        width: 26px;
        height: 3px;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        display: block;
    }

    .nav-menu a {
        padding: 9px 11px;

        font-size: 13px;

        white-space: normal;
    }

    .live-ticker {
        min-height: 36px;
    }

    .live-label {
        padding: 6px 8px;

        font-size: 12px;
    }

    .ticker-text {
        font-size: 12px;

        animation-duration: 19s;
    }

    .employee-page,
    .details-page {
        padding: 15px 6px 25px;
    }

    .page-heading h1 {
        font-size: 23px;
    }

    .heading-subtitle {
        font-size: 13px;
    }

    .table-section {
        padding: 3px;
    }

    .employee-table {
        min-width: 820px;
    }

    .employee-table th,
    .employee-table td {
        padding: 8px 7px;

        font-size: 13px;
    }

    .employee-image {
        width: 60px;
        height: 76px;
    }

    .employee-details-card {
        padding: 10px;
    }

    .detail-photo {
        width: 180px;
        height: 225px;
    }

    .detail-name {
        font-size: 20px;
    }

    .detail-designation {
        font-size: 14px;
    }

    .info-table th,
    .info-table td {
        padding: 8px;

        font-size: 13px;
    }

    .site-footer {
        padding: 16px 8px;
    }

    .site-footer p {
        font-size: 13px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ticker-text {
        animation: none;
        padding-left: 10px;
    }

}
