
/* =========================================================
   TDCEA - PREMIUM CORPORATE DESIGN
   Theni District Civil Engineers Association
   Theme: Navy Blue | White | Gold
   ========================================================= */

/* 1. GLOBAL SETTINGS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --navy: #102b4e;
    --navy-dark: #091d35;
    --navy-light: #1c456b;
    --blue: #28648c;
    --gold: #d8ad58;
    --gold-light: #f5d68f;
    --white: #ffffff;
    --light: #f3f6fa;
    --text: #26384d;
    --muted: #718198;
    --border: #e1e8f0;
    --shadow: 0 12px 35px rgba(16,43,78,.09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.65;
}

img {
    max-width: 100%;
}

a {
    transition: .25s ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    min-height: 60vh;
}

/* 2. COMMON WIDTH */

.tdcea-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

/* 3. TOP BAR */

.tdcea-topbar {
    background: var(--navy-dark);
    color: #dce6f1;
    font-size: 12px;
}

.tdcea-topbar-inner {
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.tdcea-top-contact {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 4. MAIN HEADER */

.tdcea-header {
    position: relative;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(16,43,78,.055);
}

.tdcea-header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.tdcea-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: var(--navy);
    text-decoration: none;
}

.tdcea-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.tdcea-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tdcea-brand-copy strong {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--navy);
}

.tdcea-brand-copy small {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .25px;
}

/* 5. NAVIGATION */

.tdcea-nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.tdcea-nav a {
    position: relative;
    color: #263d59;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 0;
}

.tdcea-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .25s ease;
}

.tdcea-nav a:hover {
    color: var(--gold);
}

.tdcea-nav a:hover::after {
    width: 100%;
}

/* Mobile menu button */

.tdcea-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.tdcea-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
    border-radius: 5px;
}

/* 6. HOMEPAGE HERO */

.hero,
.home-hero,
.tdcea-hero {
    position: relative;
    overflow: hidden;
    width: min(1380px, calc(100% - 48px));
    margin: 36px auto 55px;
    padding: 75px 6%;
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 15%, rgba(216,173,88,.17), transparent 24%),
        linear-gradient(120deg, #0d2542 0%, #17446b 65%, #28688f 100%);
    color: #fff;
    box-shadow: 0 22px 55px rgba(16,43,78,.16);
}

.hero-content,
.home-hero-content,
.tdcea-hero-content {
    position: relative;
    z-index: 2;
}

.hero h1,
.home-hero h1,
.tdcea-hero h1 {
    max-width: 750px;
    margin: 15px 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
}

.hero p,
.home-hero p,
.tdcea-hero p {
    max-width: 680px;
    font-size: 19px;
    line-height: 1.8;
    color: #dce7f2;
}

.hero-kicker,
.hero-label,
.tdcea-kicker {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero buttons */

.hero-buttons,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn,
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn:hover,
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.btn-outline,
.hero-btn-outline {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

/* 7. LEADERSHIP TEAM - HOMEPAGE */

.leadership-panel {
    width: 100%;
    max-width: 620px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    background: rgba(8,31,55,.32);
    backdrop-filter: blur(10px);
}

.leadership-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.leadership-heading small {
    color: #d5e0eb;
    letter-spacing: 0;
}

.leader-grid,
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.leader-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 100px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px;
    background: rgba(255,255,255,.10);
    transition: .25s ease;
}

.leader-card:hover {
    background: rgba(255,255,255,.17);
    transform: translateY(-3px);
}

.leader-photo {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--gold-light);
    border-radius: 50%;
    background: #fff;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-photo span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
}

.leader-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #fff;
}

.leader-info .role-label {
    color: var(--gold-light);
    font-size: 12px;
}

/* 8. OFFICE BEARERS PAGE */

.office-hero {
    width: min(1280px, calc(100% - 40px));
    margin: 35px auto;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(120deg, #102b4e, #1e5277);
    color: #fff;
    box-shadow: var(--shadow);
}

.office-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.office-logos img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
}

.office-logos h1 {
    margin: 8px 0;
    font-size: 38px;
    color: #fff;
}

.office-logos p {
    margin: 5px 0;
    color: #dce6f1;
}

.office-kicker {
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: 2px;
}

.office-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: 13px;
    color: #e1eaf3;
}

.office-section {
    width: min(1280px, calc(100% - 40px));
    margin: 55px auto;
}

.section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.section-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #b68a3c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 32px;
    font-weight: 800;
}

.section-heading p {
    color: var(--muted);
}

/* Main office bearer cards */

.office-section .leader-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.office-section .leader-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    min-height: 260px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(16,43,78,.06);
}

.office-section .leader-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.office-section .leader-photo {
    width: 125px;
    height: 125px;
    border: 4px solid var(--gold);
    box-shadow: 0 5px 18px rgba(16,43,78,.13);
}

.office-section .leader-info h3 {
    color: var(--navy);
    font-size: 19px;
}

.office-section .leader-info .role-label {
    color: #a77b2e;
    font-weight: 800;
}

/* Secondary office bearers */

.official-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.official-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(16,43,78,.055);
    transition: .25s ease;
}

.official-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.official-avatar {
    display: flex;
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: #edf2f7;
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
}

.official-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-card h3 {
    margin: 5px 0 0;
    color: var(--navy);
    font-size: 16px;
}

.official-card .role-label {
    color: #a77b2e;
    font-size: 12px;
    font-weight: 800;
}

/* Committee members */

.name-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.name-chip {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(16,43,78,.04);
}

.name-chip small {
    display: block;
    margin-top: 5px;
    color: #a77b2e;
    font-size: 11px;
}

.office-note {
    width: min(1280px, calc(100% - 40px));
    margin: 50px auto;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    background: #e8eef5;
    color: var(--navy);
}

.office-note p {
    margin-bottom: 0;
    color: var(--muted);
}

/* 9. COMMON PAGE SECTIONS */

.page-section {
    width: min(1200px, calc(100% - 40px));
    margin: 45px auto;
}

.page-title {
    margin-bottom: 30px;
    color: var(--navy);
    font-size: 34px;
    font-weight: 800;
}

.content-card,
.info-card {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(16,43,78,.05);
}

/* 10. MEMBERS */

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.member-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(16,43,78,.05);
}

.member-card h3 {
    margin-top: 0;
    color: var(--navy);
}

.member-card p {
    color: var(--muted);
}

/* 11. EVENTS */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.event-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.event-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.event-card-content {
    padding: 20px;
}

.event-card h3 {
    margin-top: 0;
    color: var(--navy);
}

/* 12. NOTICES */

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notice-card {
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(16,43,78,.045);
}

.notice-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
}

/* 13. FORMS */

.form-card {
    max-width: 750px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--text);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(40,100,140,.10);
}

/* 14. BUTTONS */

button,
.btn-primary {
    cursor: pointer;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border: none;
    border-radius: 9px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

/* 15. TABLES */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th {
    padding: 14px;
    background: var(--navy);
    color: #fff;
    text-align: left;
    font-size: 13px;
}

td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

tr:hover td {
    background: #f7f9fc;
}

/* 16. FOOTER */

.tdcea-footer {
    margin-top: 65px;
    padding: 45px 0 20px;
    background: var(--navy-dark);
    color: #dce6f1;
}

.tdcea-footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.tdcea-footer h3,
.tdcea-footer h4 {
    color: #fff;
}

.tdcea-footer a {
    display: block;
    margin: 8px 0;
    color: #c4d2e1;
    text-decoration: none;
    font-size: 13px;
}

.tdcea-footer a:hover {
    color: var(--gold-light);
}

.tdcea-footer-bottom {
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    color: #aebed0;
    font-size: 12px;
}

/* 17. ALERTS */

.alert {
    padding: 14px 18px;
    margin: 15px 0;
    border-radius: 9px;
    font-size: 14px;
}

.alert-success {
    background: #e6f5eb;
    color: #176b38;
}

.alert-danger {
    background: #fbe9e9;
    color: #a32929;
}

.alert-info {
    background: #e8f1fa;
    color: #24577f;
}

/* 18. RESPONSIVE TABLET */

@media (max-width: 1000px) {
    .tdcea-nav {
        gap: 16px;
    }

    .tdcea-brand-copy strong {
        font-size: 17px;
    }

    .official-grid,
    .members-grid,
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .office-section .leader-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

/* 19. MOBILE */

@media (max-width: 760px) {

    .tdcea-shell {
        width: calc(100% - 28px);
    }

    .tdcea-topbar-inner {
        padding: 8px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .tdcea-top-contact {
        flex-wrap: wrap;
        gap: 5px 15px;
    }

    .tdcea-header-inner {
        min-height: 78px;
    }

    .tdcea-logo {
        width: 53px;
        height: 53px;
    }

    .tdcea-brand {
        gap: 9px;
    }

    .tdcea-brand-copy strong {
        font-size: 13px;
    }

    .tdcea-brand-copy small {
        font-size: 9px;
    }

    .tdcea-menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .tdcea-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 20px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 12px 20px rgba(0,0,0,.10);
    }

    .tdcea-nav.is-open {
        display: flex;
    }

    .tdcea-nav a {
        padding: 13px 5px;
        border-bottom: 1px solid var(--border);
    }

    .hero,
    .home-hero,
    .tdcea-hero {
        width: calc(100% - 24px);
        margin: 18px auto 35px;
        padding: 38px 24px;
        border-radius: 17px;
    }

    .hero h1,
    .home-hero h1,
    .tdcea-hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero p,
    .home-hero p,
    .tdcea-hero p {
        font-size: 15px;
    }

    .hero-buttons,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .leadership-panel {
        padding: 15px;
        margin-top: 30px;
    }

    .leader-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .office-hero {
        width: calc(100% - 24px);
        padding: 22px 15px;
    }

    .office-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .office-logos img {
        width: 65px;
        height: 65px;
    }

    .office-logos h1 {
        font-size: 26px;
    }

    .office-contact {
        font-size: 11px;
    }

    .office-section {
        width: calc(100% - 24px);
        margin: 38px auto;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .office-section .leader-grid,
    .official-grid,
    .members-grid,
    .events-grid,
    .name-grid {
        grid-template-columns: 1fr;
    }

    .office-section .leader-card {
        min-height: 230px;
    }

    .office-section .leader-photo {
        width: 115px;
        height: 115px;
    }

    .official-card {
        padding: 16px;
    }

    .tdcea-footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-card {
        padding: 20px;
    }
}

/* 20. SMALL MOBILE */

@media (max-width: 380px) {
    .tdcea-brand-copy strong {
        font-size: 11px;
    }

    .tdcea-brand-copy small {
        font-size: 8px;
    }

    .tdcea-logo {
        width: 45px;
        height: 45px;
    }

    .hero h1,
    .home-hero h1,
    .tdcea-hero h1 {
        font-size: 32px;
    }
}

/* 21. ACCESSIBILITY */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* 22. PRINT */

@media print {
    .tdcea-topbar,
    .tdcea-header,
    .tdcea-menu-toggle,
    .tdcea-footer {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .office-section,
    .office-hero {
        box-shadow: none;
        break-inside: avoid;
    }
}
