/* =========================================================
   Rotary Club of Changanacherry Town
   Theme based on Rotary International's brand palette:
   Royal Blue, Azure, Gold, and clean sans-serif typography.
   ========================================================= */

:root {
    --rotary-royal-blue: #17458f;
    --rotary-blue-dark: #0b2f63;
    --rotary-azure: #0067c8;
    --rotary-sky: #00a2e0;
    --rotary-gold: #f7a81b;
    --rotary-gold-dark: #d98e00;
    --rotary-cardinal: #b71234;
    --text-dark: #1a1a1a;
    --text-muted: #5b6671;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --border-light: #e2e6ea;
    /* Rotary's licensed brand fonts are Frutiger (primary) and Sentinel (secondary).
       Per Rotary's own brand guidelines, the free/digital substitutes are
       Open Sans (for Frutiger) and Georgia (for Sentinel). If your club has a
       Frutiger/Sentinel license, swap them in below instead. */
    --font-heading: 'Open Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-base: 'Open Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
    /* --font-base: Georgia, 'Times New Roman', serif; */
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--rotary-blue-dark);
    margin-top: 0;
}

/* Rotary's guideline: headlines and nav labels in Open Sans (Frutiger
   substitute), set in ALL CAPS, condensed tracking */
h1, h2, .eyebrow, nav.main-nav a, .club-name, .card-tag, .stat-label,
.section-head .eyebrow, .position, .pillar h4 {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

a { color: var(--rotary-azure); text-decoration: none; }
a:hover { color: var(--rotary-gold-dark); }

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

.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top utility bar ---------- */
.topbar {
    background: var(--rotary-blue-dark);
    color: var(--white);
    font-size: 0.82rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar a { color: var(--white); opacity: 0.9; }
.topbar a:hover { color: var(--rotary-gold); opacity: 1; }
.topbar .social a { margin-left: 12px; }

/* ---------- Header / Navigation ---------- */
header.site-header {
    background: var(--white);
    border-bottom: 4px solid var(--rotary-gold);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand .wheel {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.brand-text .club-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--rotary-royal-blue);
    line-height: 1.2;
}
.brand-text .club-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
nav.main-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
    background: var(--rotary-royal-blue);
    color: var(--white);
}
.nav-cta {
    background: var(--rotary-gold) !important;
    color: var(--rotary-blue-dark) !important;
}
.nav-cta:hover {
    background: var(--rotary-gold-dark) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--rotary-royal-blue);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(120deg, var(--rotary-royal-blue) 0%, var(--rotary-azure) 60%, var(--rotary-sky) 100%);
    color: var(--white);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    border: 18px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--rotary-gold);
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.hero h1 {
    color: var(--white);
    font-size: 2.6rem;
    margin-bottom: 18px;
}
.hero p {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 28px;
}
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
}
.btn-gold {
    background: var(--rotary-gold);
    color: var(--rotary-blue-dark);
}
.btn-gold:hover { background: var(--rotary-gold-dark); color: var(--white); }
.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--rotary-royal-blue); }
.btn-primary {
    background:#005daa;
    color: var(--white);
}
.btn-primary:hover { background: var(--rotary-blue-dark); }
.hero .btn { margin-right: 12px; margin-top: 6px; }

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--rotary-blue-dark);
    color: var(--white);
    padding: 30px 0;
}
.stats-strip .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stats-strip .stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--rotary-gold);
}
.stats-strip .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}
.section-head .eyebrow {
    color: var(--rotary-gold-dark);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
/* .card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(23,69,143,0.12); } */
.card-media {
    height: 170px;
    background: linear-gradient(135deg, var(--rotary-azure), var(--rotary-royal-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.card-body { padding: 20px; }
.card-tag {
    display: inline-block;
    background: rgba(0,103,200,0.1);
    color: var(--rotary-azure);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0; }

.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--rotary-gold);
    color: var(--rotary-blue-dark);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    min-width: 64px;
}
.date-badge .day { font-size: 1.3rem; }
.date-badge .mon { font-size: 0.72rem; text-transform: uppercase; }

.event-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
}
.event-row:last-child { border-bottom: none; }

.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.pillar {
    text-align: center;
    padding: 26px 16px;
    background: var(--white);
    border-top: 4px solid var(--rotary-gold);
    border-radius: 4px;
}
.pillar .icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--rotary-royal-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
}
.pillar h4 { font-size: 1rem; margin-bottom: 6px; }
.pillar p { font-size: 0.88rem; color: var(--text-muted); }

.board-member {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 26px 18px;
}
.board-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--rotary-sky), var(--rotary-royal-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.4rem;
    font-family: var(--font-heading);
}
.board-member h4 { margin-bottom: 4px; font-size: 1.05rem; }
.board-member .position {
    color: var(--rotary-azure);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.board-member p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--rotary-gold);
    padding: 50px 0;
    text-align: center;
}
.cta-band h2 { color: var(--rotary-blue-dark); margin-bottom: 10px; }
.cta-band p { color: rgba(11,47,99,0.85); margin-bottom: 24px; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--rotary-blue-dark);
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: var(--font-base);
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--rotary-azure);
    box-shadow: 0 0 0 3px rgba(0,103,200,0.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.alert-success {
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #1e7e34;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.error-text { color: var(--rotary-cardinal); font-size: 0.82rem; margin-top: 4px; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.info-list .label { font-weight: 700; color: var(--rotary-blue-dark); min-width: 110px; }

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--rotary-blue-dark);
    color: rgba(255,255,255,0.85);
    padding: 56px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h5 {
    color: var(--white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.footer-grid p, .footer-grid a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--rotary-gold); }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.8); }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--rotary-royal-blue), var(--rotary-azure));
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 8px; }
.page-banner .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#fff;
    opacity:.9;
}
.page-banner .breadcrumb a { color: rgba(255,255,255,0.9); }


/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid-3, .pillars, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {

    header .site-header{
        position:relative;
    }

    .nav-toggle{
        display:block;
    }

    nav.main-nav{
        display:none;
        width:100%;
        order:3;
        margin-top:15px;
    }

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

    /* Main navigation */
    nav.main-nav > ul{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        width:100%;
        gap:0;
    }

    nav.main-nav > ul > li{
        width:100%;
    }

    nav.main-nav > ul > li > a{
        display:block;
        width:100%;
        text-align:left;
        padding:14px 18px;
    }

    /* User menu */
    .user-menu{
        width:100%;
    }

    .user-toggle{
        display:flex;
        align-items:center;
        justify-content:flex-start;
        width:100%;
        padding:14px 18px;
    }

    .site-header .container{
        flex-wrap:wrap;
    }

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

    .grid-2,
    .grid-3,
    .pillars,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .stats-strip .grid{
        grid-template-columns:repeat(2,1fr);
    }

}


/* CUSTOM CSS */

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-right {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {

    .topbar .container {
        display: block;
        padding: 10px 15px;
    }

    .topbar-left {
        margin-bottom: 8px;
    }

    .topbar-right {
        display: flex;
        justify-content: flex-start;
        gap: 20px;

        margin: 0;
        padding: 0;
    }

    .topbar-right a {
        margin: 0;
        padding: 0;
    }
}

/* ==========================================
   FOUR WAY TEST
========================================== */

.four-way-timeline{
    max-width:850px;
    margin:50px auto 0;
    position:relative;
}

.four-way-timeline::before{
    content:"";
    position:absolute;
    left:30px;
    top:0;
    bottom:0;
    width:3px;
    background:#f7a81b;
}

.test-item{
    position:relative;
    display:flex;
    align-items:flex-start;
    gap:25px;
    margin-bottom:35px;
}

.test-item:last-child{
    margin-bottom:0;
}

.test-number{
    width:60px;
    height:60px;
    min-width:60px;

    border-radius:50%;
    background:#005daa;
    color:#fff;

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

    font-size:1.4rem;
    font-weight:700;

    border:5px solid #fff;
    box-shadow:0 5px 20px rgba(0,0,0,.15);

    z-index:2;
}

.test-content{
    flex:1;
    background:#fff;
    border-radius:12px;
    padding:22px 28px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.test-content:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.test-content h3{
    margin:0;
    color:#005daa;
    font-size:1.25rem;
    line-height:1.5;
    font-weight:600;
}

/* Mobile */

@media(max-width:768px){

    .four-way-timeline::before{
        left:25px;
    }

    .test-item{
        gap:18px;
    }

    .test-number{
        width:50px;
        height:50px;
        min-width:50px;
        font-size:1.1rem;
    }

    .test-content{
        padding:18px;
    }

    .test-content h3{
        font-size:1rem;
    }

}

.rotary-divider{
    width:100%;
    height:2px;
    background:#F7A81B;
}

.navbar .dropdown-toggle::after {
    margin-left: 8px;
}

.dropdown-menu {
    min-width: 220px;
}

.dropdown-item i {
    width: 20px;
}

.dropdown-item {
    padding: 10px 16px;
}

.main-nav > ul{
    display:flex;
    align-items:center;
}

.user-menu{
    position:relative;
}

.user-dropdown-menu{
    position:absolute;
    top:110%;
    right:0;

    width:240px;

    background:#fff;
    border-radius:12px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);

    padding:8px 0;
    margin:0;
    list-style:none;

    display:none;

    z-index:9999;
}

.user-menu.show .user-dropdown-menu{
    display:block;
}

.user-dropdown-menu li{
    width:100%;
}

.user-dropdown-menu a,
.user-dropdown-menu button{
    display:flex;
    align-items:center;
    gap:10px;

    width:100%;
    padding:12px 18px;

    border:none;
    background:none;

    color:#333;
    text-decoration:none;
    cursor:pointer;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover{
    background:#f5f5f5;
}

.main-nav .user-dropdown-menu {
    display: none !important;

    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 240px;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);

    padding: 8px 0;
    margin: 0;

    list-style: none;

    z-index: 9999;
}

.main-nav .user-menu.show > .user-dropdown-menu {
    display: block !important;
}

.user-toggle{
    display:flex !important;
    align-items:center;
    gap:10px;

    text-decoration:none;
    color:#222;

    white-space:nowrap;
}

.user-toggle img{
    width:30px;
    height:30px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
}

.user-toggle span{
    font-size:15px;
    font-weight:600;
    line-height:1;
}

/*=========================================================
ADMIN DASHBOARD
=========================================================*/

.admin-dashboard{

    max-width:1400px;
    margin:40px auto;
    padding:0 20px;

}

.admin-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;

}

.admin-header h1{

    font-size:34px;
    color:#003865;
    margin-bottom:8px;

}

.admin-header p{

    color:#666;
    margin:0;

}

.dashboard-stats{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:35px;

}

.stat-card{

    background:#fff;
    border-radius:14px;
    padding:25px;

    display:flex;
    align-items:center;
    gap:18px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

    transition:.25s;

}

.stat-card:hover{

    transform:translateY(-5px);

}

.stat-card i{

    width:70px;
    height:70px;

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

    background:#003865;
    color:#fff;

    border-radius:16px;

    font-size:28px;

}

.stat-card h2{

    margin:0;
    font-size:32px;

}

.stat-card span{

    color:#777;

}

.section-title{

    margin-bottom:20px;
    color:#003865;

}

.dashboard-grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:35px;

}

.module-card{

    background:#fff;
    border-radius:14px;
    padding:28px;

    text-align:center;

    text-decoration:none;

    color:#222;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

    transition:.25s;

}

.module-card:hover{

    transform:translateY(-5px);

    color:#003865;

}

.module-card i{

    font-size:42px;

    color:#F7A81B;

    margin-bottom:15px;

}

.module-card h4{

    margin-bottom:8px;

}

.module-card p{

    color:#666;

    margin:0;

}

.dashboard-bottom{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;

}

.dashboard-panel{

    background:#fff;

    border-radius:14px;

    padding:25px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

.dashboard-panel h4{

    margin-bottom:20px;

    color:#003865;

}

.dashboard-panel ul{

    padding-left:18px;

}

.dashboard-panel li{

    margin-bottom:10px;

}

@media(max-width:992px){

    .dashboard-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .dashboard-stats{

        grid-template-columns:repeat(2,1fr);

    }

    .dashboard-bottom{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .admin-header{

        flex-direction:column;
        align-items:flex-start;
        gap:20px;

    }

    .dashboard-grid{

        grid-template-columns:1fr;

    }

    .dashboard-stats{

        grid-template-columns:1fr;

    }

}

/*=========================================================
ADMIN PAGE HEADER
=========================================================*/

.admin-page-header{
    padding:22px 0;
    background:#fff;
    border-bottom:1px solid #edf2f7;
}

.admin-page-header-content{

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    gap:20px;

}

.admin-page-header h1{

    font-size:34px;

    color:#003865;

    margin:0;

    text-transform:none;

}

.admin-page-header p{

    margin-top:8px;

    color:#6c757d;

    font-size:15px;

}

.admin-breadcrumb{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:14px;

}

.admin-breadcrumb a{

    color:#003865;

    text-decoration:none;

}

.admin-breadcrumb a:hover{

    color:#F7A81B;

}

.admin-breadcrumb span{

    color:#999;

}

@media(max-width:768px){

    .admin-page-header-content{

        flex-direction:column;

        align-items:flex-start;

    }

}


/*=========================================================
SEARCH TOOL BAR
=========================================================*/

.search-toolbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:#fff;

    border-radius:10px;

    padding:16px 18px;

    margin-bottom:25px;

    box-shadow:0 5px 18px rgba(0,0,0,.05);

}

.toolbar-left{

    flex:1;

}

.toolbar-left input{

    max-width:350px;

}

.toolbar-right{

    display:flex;

    gap:10px;

    align-items:center;

}


/*=========================================================
TABLE CARD
=========================================================*/

.table-card{

    background:#fff;

    border-radius:12px;

    padding:0;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

/*=========================================================
TABLE ACTION BUTTONS
=========================================================*/

.action-group{
    display:inline-flex;
    border-radius:8px;
    overflow:hidden;
    box-shadow:none;
}

.action-group .btn{

    width:30px;
    height:30px;

    padding:0;

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

    font-size:13px;
    line-height:1;

    border-width:1px;

}

.action-group .btn i{
    font-size:13px;
}

.action-group .btn:not(:last-child){
    border-right:0;
}

/* Hover */

.action-group .btn-outline-primary:hover{
    background:#0d6efd;
    color:#fff;
}

.action-group .btn-outline-warning:hover{
    background:#ffc107;
    color:#212529;
}

.action-group .btn-outline-danger:hover{
    background:#dc3545;
    color:#fff;
}


/* Board Page Style */

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

.top-officers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.officer-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
}
.officer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(23,69,143,0.12);
}
.officer-card--president {
    border-top: 5px solid var(--rotary-gold);
}
.officer-card:not(.officer-card--president) {
    border-top: 5px solid var(--rotary-royal-blue);
}

.officer-badge {
    display: inline-block;
    background: var(--rotary-gold);
    color: var(--rotary-blue-dark);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 16px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 18px;
}
.officer-badge--blue {
    background: var(--rotary-royal-blue);
    color: var(--white);
}

.officer-photo-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.officer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.officer-photo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rotary-azure), var(--rotary-royal-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.officer-info {
    padding: 0 22px 24px;
}
.officer-name {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--rotary-blue-dark);
}
.officer-title {
    font-size: 0.8rem;
    color: var(--rotary-azure);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.officer-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Board members list */
.board-list {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}
.board-list-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.12s;
}
.board-list-item:last-child { border-bottom: none; }
.board-list-item:hover { background: var(--bg-light); }

.board-list-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
    background: linear-gradient(135deg, var(--rotary-sky), var(--rotary-royal-blue));
}
.board-list-photo--fallback {
    background: linear-gradient(135deg, var(--rotary-sky), var(--rotary-royal-blue));
}

.board-list-detail { flex: 1; }
.board-list-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--rotary-blue-dark);
    font-size: 0.98rem;
    margin-bottom: 2px;
}
.board-list-role {
    font-size: 0.84rem;
    color: var(--rotary-azure);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.board-list-years {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: right;
}

/* Responsive */
@media (max-width: 860px) {
    .top-officers { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .board-list-years { display: none; }
}

/* ===== GALLERY ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--rotary-blue-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 69, 143, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox #lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 2.8rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}


@media (max-width: 768px) {
    .logo {
        width: 270px !important;
    }
}