/* ============================================================
   THYOLO DISTRICT COUNCIL
   PROFESSIONAL TYPOGRAPHY AND RESPONSIVE UI
   Inspired by modern client portals and institutional websites

   File: assets/css/style.css
   Add at the END of the existing stylesheet.
   ============================================================ */

/* ------------------------------------------------------------
   1. TYPOGRAPHY
   ------------------------------------------------------------ */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    color: #263445;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    color: #0a1f43;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p,
li {
    font-size: 1rem;
    line-height: 1.8;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
}

small,
.small {
    font-size: 0.875rem;
    line-height: 1.6;
}

a {
    text-underline-offset: 3px;
}

a:hover {
    transition: color 160ms ease;
}


/* ------------------------------------------------------------
   2. NAVIGATION AND BRANDING
   ------------------------------------------------------------ */

.navbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand {
    gap: 10px;
}

.navbar-brand .brand-text strong {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
}

.navbar-brand .brand-text small {
    font-size: 0.78rem;
    line-height: 1.45;
}

.logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    gap: 2px;
}

.nav-link {
    padding: 0.7rem 0.8rem !important;
    border-radius: 6px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.5;
    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus {
    background-color: #f1f4f8;
}

.nav-link.active {
    background-color: #f7f1df;
}

.navbar .nav-link i,
.navbar .nav-link .bi {
    margin-right: 5px;
    font-size: 1.1rem;
    vertical-align: -0.1em;
}

.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    border-radius: 7px;
}

.navbar .dropdown-menu {
    padding: 0.5rem;
    border: 1px solid #dce2ea;
    border-radius: 9px;
    box-shadow: 0 8px 25px rgba(10, 31, 67, 0.1);
}

.navbar .dropdown-item {
    padding: 0.65rem 0.8rem;
    border-radius: 5px;
    font-size: 0.95rem;
}


/* ------------------------------------------------------------
   3. BUTTONS
   ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    min-height: 46px;
    padding: 0.7rem 1.2rem;

    font-family: "Inter", sans-serif;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.45;
    text-align: center;

    border-radius: 7px;
    cursor: pointer;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.btn i,
.btn .bi {
    flex-shrink: 0;
    font-size: 1.12rem;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 31, 67, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #ffffff;
    background-color: #0e2d5c;
    border-color: #0e2d5c;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff;
    background-color: #0a1f43;
    border-color: #0a1f43;
}

.btn-outline-primary {
    color: #0e2d5c;
    border-color: #0e2d5c;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff;
    background-color: #0e2d5c;
    border-color: #0e2d5c;
}

.btn-gold {
    color: #0a1f43;
    background-color: #c9a227;
    border-color: #c9a227;
}

.btn-gold:hover,
.btn-gold:focus {
    color: #0a1f43;
    background-color: #eadd8c;
    border-color: #eadd8c;
}

.btn-outline-gold {
    color: #0a1f43;
    border: 1px solid #c9a227;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    color: #0a1f43;
    background-color: #c9a227;
    border-color: #c9a227;
}

.btn-sm {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
}

.btn-sm i,
.btn-sm .bi {
    font-size: 1rem;
}

.btn-lg {
    min-height: 52px;
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ------------------------------------------------------------
   4. HERO AND PAGE BANNERS
   ------------------------------------------------------------ */

.hero {
    padding-top: 76px;
    padding-bottom: 76px;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.hero p,
.hero .lead {
    max-width: 760px;
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero .eyebrow,
.eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.page-banner {
    padding-top: 54px;
    padding-bottom: 54px;
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.page-banner p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.breadcrumb {
    font-size: 0.9rem;
}


/* ------------------------------------------------------------
   5. SECTIONS AND SPACING
   ------------------------------------------------------------ */

.section-pad {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 750;
    line-height: 1.3;
}

.section-heading {
    max-width: 820px;
}

.section-heading p {
    font-size: 1.05rem;
    line-height: 1.8;
}


/* ------------------------------------------------------------
   6. CARDS
   ------------------------------------------------------------ */

.card {
    border-radius: 9px;
    border-color: #dce2ea;
    box-shadow: 0 2px 8px rgba(10, 31, 67, 0.045);
}

.card-body {
    padding: 1.4rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
}

.card-text {
    font-size: 0.98rem;
    line-height: 1.8;
}

.quick-link {
    min-height: 78px;
    padding: 1rem;
    gap: 0.85rem;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
}

.quick-link:hover {
    transform: translateY(-2px);
}


/* ------------------------------------------------------------
   7. ICONS
   Bootstrap Icons must be loaded and used in the HTML.
   ------------------------------------------------------------ */

.bi {
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: -0.1em;
}

/* Quick-link icons */

.quick-link i,
.quick-link .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;

    font-size: 1.45rem;
    color: #0e2d5c;
    background: #f1f4f8;
    border-radius: 9px;

    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.quick-link:hover i,
.quick-link:hover .bi {
    color: #0a1f43;
    background-color: #f7f1df;
}

/* About icons */

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;
    margin-bottom: 1rem;

    font-size: 1.8rem;
    color: #0e2d5c;
    background-color: #f7f1df;
    border-radius: 12px;
}

/* General feature icons */

.tdc-icon-box,
.tdc-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    flex-shrink: 0;

    font-size: 1.7rem;
    color: #0e2d5c;
    background-color: #edf2f8;
    border-radius: 12px;
}

/* Values icons */

.value-card .value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin-bottom: 1rem;

    font-size: 1.65rem;
    color: #0e2d5c;
    background-color: #f7f1df;
    border-radius: 12px;
}

/* Council function icons */

.tdc-function-card > i,
.tdc-function-card > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin-bottom: 1rem;

    font-size: 1.7rem;
    color: #0e2d5c;
    background-color: #f7f1df;
    border-radius: 12px;
}

.tdc-function-card h3 {
    font-size: 1.2rem;
}

.tdc-function-card p {
    font-size: 0.98rem;
    line-height: 1.8;
}

/* Leadership icons */

.tdc-leadership-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;

    font-size: 1.7rem;
    border-radius: 10px;
}

/* Notice icons */

.tdc-note > i,
.tdc-note > .bi {
    font-size: 1.45rem;
}

/* Footer social icons */

.footer .social-links {
    gap: 0.6rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    font-size: 1.25rem;
    border-radius: 50%;
}

.footer .social-links a i,
.footer .social-links a .bi {
    font-size: 1.25rem;
}


/* ------------------------------------------------------------
   8. FORMS AND INPUTS
   ------------------------------------------------------------ */

.form-label {
    margin-bottom: 0.4rem;
    font-size: 0.98rem;
    font-weight: 650;
}

.form-control,
.form-select {
    min-height: 46px;
    padding: 0.65rem 0.85rem;

    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.5;

    border-radius: 7px;
    border-color: #cbd5e1;
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0e2d5c;
    box-shadow: 0 0 0 3px rgba(14, 45, 92, 0.12);
}

.form-text,
.invalid-feedback {
    font-size: 0.875rem;
}


/* ------------------------------------------------------------
   9. TABLES AND LISTINGS
   ------------------------------------------------------------ */

.table {
    font-size: 0.95rem;
    vertical-align: middle;
}

.table thead th {
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.5;
}

.table td,
.table th {
    padding: 0.8rem;
    line-height: 1.65;
}

.news-item h3,
.news-item h4,
.document-item h3,
.document-item h4 {
    font-size: 1.12rem;
    line-height: 1.5;
}

.news-item p,
.document-item p {
    font-size: 0.97rem;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */

.footer {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.08rem;
    font-weight: 700;
}

.footer .list-unstyled li {
    margin-bottom: 0.55rem;
}


/* ------------------------------------------------------------
   11. ADMINISTRATION PANEL
   ------------------------------------------------------------ */

.admin-sidebar a {
    padding: 0.75rem 1.1rem;
    font-size: 0.97rem;
}

.admin-sidebar .brand {
    font-size: 1.12rem;
}

.admin-content {
    font-size: 0.98rem;
}

.admin-card {
    padding: 1.25rem;
}

.admin-card h3 {
    font-size: 1.15rem;
}

.admin-stat-number {
    font-size: 2rem;
}


/* ------------------------------------------------------------
   12. TABLET RESPONSIVENESS
   ------------------------------------------------------------ */

@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: stretch;
        padding-top: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 0.9rem !important;
        font-size: 1rem;
    }

    .navbar .nav-link i,
    .navbar .nav-link .bi {
        font-size: 1.15rem;
    }

    .hero {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .section-pad {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .tdc-leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tdc-leadership-icon {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        font-size: 1.55rem;
    }
}


/* ------------------------------------------------------------
   13. MOBILE PHONES
   ------------------------------------------------------------ */

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
        line-height: 1.75;
    }

    h1 {
        font-size: clamp(1.9rem, 7vw, 2.45rem);
    }

    h2 {
        font-size: clamp(1.65rem, 5.5vw, 2rem);
    }

    h3 {
        font-size: 1.35rem;
    }

    .navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo-img {
        height: 46px;
    }

    .navbar-brand .brand-text strong {
        font-size: 0.98rem;
    }

    .navbar-brand .brand-text small {
        font-size: 0.72rem;
    }

    .hero {
        min-height: 300px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.5rem);
    }

    .hero p,
    .hero .lead {
        font-size: 1rem;
    }

    .page-banner {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .page-banner h1 {
        font-size: clamp(1.8rem, 6.5vw, 2.3rem);
    }

    .section-pad {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-heading p {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.15rem;
    }

    .card-title {
        font-size: 1.12rem;
    }

    .quick-link {
        min-height: 72px;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .quick-link i,
    .quick-link .bi {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }

    .about-icon,
    .tdc-icon-box,
    .tdc-feature-icon,
    .value-card .value-icon,
    .tdc-function-card > i,
    .tdc-function-card > .bi {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .btn {
        min-height: 44px;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }

    .btn-sm {
        min-height: 38px;
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }

    .table {
        font-size: 0.88rem;
    }

    .table td,
    .table th {
        padding: 0.65rem;
    }

    .tdc-leadership-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 460px;
        margin-right: auto;
        margin-left: auto;
    }

    .footer {
        font-size: 0.92rem;
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}


/* ------------------------------------------------------------
   14. VERY SMALL PHONES
   ------------------------------------------------------------ */

@media (max-width: 399.98px) {
    body {
        font-size: 15.5px;
    }

    .navbar-brand {
        gap: 6px;
    }

    .navbar-brand .brand-text strong {
        font-size: 0.85rem;
    }

    .navbar-brand .brand-text small {
        font-size: 0.65rem;
    }

    .logo-img {
        height: 38px;
    }

    .navbar-toggler {
        min-width: 40px;
        min-height: 40px;
        padding: 0.3rem 0.45rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .quick-link {
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .quick-link i,
    .quick-link .bi {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}


/* ------------------------------------------------------------
   15. LARGE LAPTOPS AND DESKTOPS
   ------------------------------------------------------------ */

@media (min-width: 1400px) {
    body {
        font-size: 17px;
    }

    .section-pad {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .hero {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .card-body {
        padding: 1.6rem;
    }
}


/* ------------------------------------------------------------
   16. ACCESSIBILITY
   ------------------------------------------------------------ */

:focus-visible {
    outline: 3px solid #c9a227;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* END OF RESPONSIVE STYLE UPGRADE */