/* ==========================================================================
   HOBSESA - XYZ School Ex-Student Association
   Custom Stylesheet (style.css)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables for Premium Design System */
:root {
    /* Color Palette */
    --color-primary: #0f2b5c;
    /* Deep Navy */
    --color-primary-dark: #071735;
    /* Rich Dark Navy */
    --color-primary-light: #1e3f7a;
    /* Medium Navy */
    --color-accent: #d4af37;
    /* Classic Alumni Gold */
    --color-accent-hover: #bda030;
    /* Darker Gold */
    --color-secondary: #800020;
    /* Elegant Maroon Accent */
    --color-secondary-light: #a31d3d;
    --color-bg-light: #f8fafc;
    /* Soft Light Gray for Sections */
    --color-bg-card: #ffffff;
    /* Pure White Cards */
    --color-text-dark: #1e293b;
    /* Dark Charcoal for high readability */
    --color-text-muted: #64748b;
    /* Slate Gray for secondary text */
    --color-border: #e2e8f0;
    /* Light Border Color */

    /* Layout Details */
    --navbar-height: 80px;
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 6px;

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 43, 92, 0.1), 0 4px 6px -2px rgba(15, 43, 92, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 43, 92, 0.15), 0 10px 10px -5px rgba(15, 43, 92, 0.04);
}

/* ==========================================================================
   1. Base & Reset Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style-type: none;
}

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

iframe {
    border: none;
}

/* ==========================================================================
   2. Reusable Utility Classes
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-navy {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-navy:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   3. Header & Sticky Navigation
   ========================================================================== */
.header {
    background-color: rgba(15, 43, 92, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-normal);
}

.header.scrolled {
    background-color: var(--color-primary-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    border: 2px solid var(--color-accent);
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--color-accent);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Hamburger animation */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   4. Hero / Home Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('../info/img/back_front_img.png') no-repeat center center/cover;
    color: #ffffff;
    padding-top: var(--navbar-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 23, 53, 0.55) 0%, rgba(15, 43, 92, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   5. About Section (History, Vision/Mission, President Message)
   ========================================================================== */
.about-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 2px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
}

.tab-content {
    background-color: var(--color-bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-height: 250px;
}

.tab-pane {
    display: none;
    animation: fadeIn var(--transition-normal) ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* About sub-sections design */
.about-history h3 {
    margin-bottom: 20px;
}

/* Read More Button & Collapsible Container (Mobile Only) */
.read-more-wrapper {
    display: none; /* Hidden on PC / Desktop screens */
    margin-top: 18px;
    justify-content: flex-start;
}

.history-more-content,
.activities-more-content {
    display: block; /* Always visible on PC / Desktop screens */
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    min-height: 48px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
    background: rgba(15, 43, 92, 0.06);
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-read-more:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-read-more .btn-read-icon {
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
    display: inline-block;
}

.btn-read-more.active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}

.about-vision ul {
    margin-top: 15px;
}

.about-vision li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.about-vision li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.president-message {
    display: flex;
    gap: 40px;
    align-items: center;
}

.president-photo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-accent);
    box-shadow: var(--shadow-md);
}

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

.message-quote blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--color-accent);
}

.message-quote cite {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--color-primary);
}

.message-quote span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 4px;
}

/* ==========================================================================
   6. Members Section
   ========================================================================== */
.members-search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-md);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-card, #ffffff);
    padding: 0 18px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.15);
}

.search-icon {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-right: 10px;
    user-select: none;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 14px 10px 14px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Executive Committee Search Mode */
.members-grid-track.is-searching {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-columns: auto !important;
    transform: none !important;
    width: 100% !important;
}

.member-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--color-border);
    transition: border-color var(--transition-fast);
}

.member-card:hover .member-avatar {
    border-color: var(--color-accent);
}

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

.member-avatar.duo-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: auto;
    height: 100px;
    border-radius: 0;
    border: none;
    overflow: visible;
    margin: 0 auto 20px;
}

.member-avatar.duo-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast);
}

.member-card:hover .member-avatar.duo-avatar img {
    border-color: var(--color-accent);
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-batch {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(15, 43, 92, 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
}

.member-occupation {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.member-connect {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1);
}

/* ==========================================================================
   7. Notice Board Section
   ========================================================================== */
.notice-board {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

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

.notice-item {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    transition: padding var(--transition-fast);
}

.notice-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-item:hover {
    padding-left: 10px;
}

.notice-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.notice-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.notice-date .month-year {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

.notice-content {
    flex-grow: 1;
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-title a {
    color: var(--color-primary);
}

.notice-title a:hover {
    color: var(--color-accent);
}

.notice-desc {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.notice-download {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notice-download:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Empty Notice State */
.notice-empty {
    text-align: center;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.notice-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px dashed var(--color-border);
}

.notice-empty h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.notice-empty p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   8. Events (Reports) Section
   ========================================================================== */
.events-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Empty Events State */
.events-empty {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 45px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.events-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px dashed var(--color-border);
}

.events-empty h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.events-empty p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Empty Gallery State */
.gallery-empty {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 45px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px dashed var(--color-border);
}

.gallery-empty h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-empty p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dynamic Photo Gallery Grid */
.gallery-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.gallery-pill {
    padding: 8px 18px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-pill:hover,
.gallery-pill.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.15);
}

.dynamic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f1f5f9;
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #ffffff;
}

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

.gallery-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.event-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.event-card:hover .event-img img {
    transform: scale(1.05);
}

.event-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.event-report {
    font-size: 0.95rem;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Events Footer Action & More Button */
.events-footer-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 32px;
}

.btn-more-events {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(15, 43, 92, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.btn-more-events:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--color-accent) 100%);
    color: #0f2b5c !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(15, 43, 92, 0.3);
}

.btn-more-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-more-events:hover .btn-more-arrow {
    transform: translateX(4px);
}

/* Upcoming Events section */
.upcoming-events-box {
    margin-top: 40px;
    background-color: rgba(212, 175, 55, 0.08);
    border-left: 5px solid var(--color-accent);
    padding: 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.upcoming-events-box h3 {
    margin-bottom: 20px;
}

.upcoming-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.upcoming-item {
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.upcoming-item .date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary-light);
    margin-bottom: 5px;
}

.upcoming-item h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upcoming-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   9. Gallery Section
   ========================================================================== */
.gallery-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.gallery-slider-container {
    overflow: hidden;
    width: 100%;
}

.gallery-grid-track {
    display: grid;
    grid-template-rows: repeat(2, 200px);
    grid-auto-flow: column;
    grid-auto-columns: calc(25% - 15px);
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: #ffffff;
    border: 2px solid transparent;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.gallery-slide-btn.prev-btn {
    left: 0;
}

.gallery-slide-btn.next-btn {
    right: 0;
}

.gallery-slide-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments for columns */
@media (max-width: 992px) {
    .gallery-grid-track {
        grid-auto-columns: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .gallery-slider-wrapper {
        padding: 0 40px;
    }
    .gallery-grid-track {
        grid-auto-columns: calc(50% - 10px);
    }
    .gallery-slide-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-slider-wrapper {
        padding: 0;
    }
    .gallery-grid-track {
        grid-auto-columns: 100%;
    }
    .gallery-slide-btn {
        display: none;
    }
    .gallery-slider-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .gallery-item {
        scroll-snap-align: start;
    }
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 43, 92, 0.8);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 23, 53, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn var(--transition-fast) ease;
}

.lightbox-wrapper {
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
}

.lightbox-content {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xl);
    border: 3px solid #ffffff;
    object-fit: contain;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    line-height: 1;
    transition: color var(--transition-fast);
    z-index: 2010;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 43, 92, 0.5);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2010;
    user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ==========================================================================
   10. Video Section
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-caption {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   11. Subscription / Donation Section
   ========================================================================== */
.donate-wrapper {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.donate-qr-box {
    flex-shrink: 0;
    text-align: center;
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px dashed var(--color-accent);
}

.donate-qr-box img {
    margin: 0 auto 10px;
    width: 180px;
    height: 180px;
}

.donate-qr-box p {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.donate-info {
    flex-grow: 1;
}

.donate-info h3 {
    margin-bottom: 15px;
}

.donate-info p {
    font-size: 1rem;
    margin-bottom: 25px;
}

.bank-details {
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}

.bank-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.bank-row:last-child {
    margin-bottom: 0;
}

.bank-label {
    width: 140px;
    font-weight: 600;
    color: var(--color-primary);
}

.bank-val {
    color: var(--color-text-dark);
}

/* ==========================================================================
   12. Contact Section & Footer
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.contact-info-panel {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-panel h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: #e2e8f0;
}

.contact-details {
    margin: 40px 0;
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail-item .icon {
    font-weight: 700;
    color: var(--color-accent);
}

.contact-detail-item .text {
    font-size: 0.95rem;
    color: #f1f5f9;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.contact-socials .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-socials .social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}

.contact-form-panel {
    padding: 50px;
}

.contact-form-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.1);
}

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

.form-feedback {
    display: none;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.form-feedback.error {
    display: block;
    color: var(--color-secondary-light);
}

.form-feedback.success {
    display: block;
    color: #10b981;
    font-size: 1rem;
    margin-top: 15px;
}

/* Footer Section */
.footer {
    background-color: var(--color-primary-dark);
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0;
}

.footer p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.footer-socials a {
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--color-accent);
}

.pab-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.pab-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   14. Real Data Presentation Additions (Footer Image, Activities, Roles)
   ========================================================================== */

/* Hero badges */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.hero-badge {
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Major Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.activity-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 22px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.activity-icon {
    font-size: 1.6rem;
    background: rgba(15, 43, 92, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.activity-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.activity-info p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.45;
}

.member-role {
    display: inline-block;
    background-color: rgba(15, 43, 92, 0.1);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(15, 43, 92, 0.2);
}

/* Footer Banner Image & Logo */
.footer-banner-container {
    max-width: 1000px;
    margin: 0 auto 35px auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.35);
    position: relative;
    background-color: var(--color-primary-dark);
}

.footer-banner-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: transform var(--transition-slow);
}

.footer-banner-container:hover .footer-banner-img {
    transform: scale(1.03);
}

.footer-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7, 23, 53, 0.95), rgba(7, 23, 53, 0.4), transparent);
    padding: 25px 30px 20px;
    text-align: center;
    color: #ffffff;
}

.footer-banner-overlay h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.footer-banner-overlay p {
    color: var(--color-accent);
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 500;
}

.footer-logo-img {
    height: 64px;
    width: 64px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.6);
    border: 2px solid var(--color-accent);
}

/* ==========================================================================
   15. Executive Committee Slidable Slider & QR Code Styling
   ========================================================================== */

/* QR Code styling */
.qr-code-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--color-accent);
    display: block;
    margin: 0 auto;
    transition: transform var(--transition-normal);
}

.qr-code-img:hover {
    transform: scale(1.04);
}

.qr-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 12px;
    font-size: 0.95rem;
    text-align: center;
}

/* Executive Committee Slider */
.members-slider-wrapper {
    position: relative;
    padding: 0 50px;
    margin-top: 25px;
}

.members-slider-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.members-grid-track {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.members-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-accent);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.members-slide-btn.prev-btn {
    left: 0;
}

.members-slide-btn.next-btn {
    right: 0;
}

.members-slide-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.members-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.members-pagination .pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.members-pagination .pagination-dot.active {
    background-color: var(--color-accent);
    width: 28px;
    border-radius: 10px;
}

/* ==========================================================================
   16. Members Directory Page Styles & Footer Button
   ========================================================================== */

.members-footer-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.directory-section {
    padding: 120px 0 100px;
    background-color: var(--color-bg-light);
    min-height: 80vh;
}

.directory-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
}

.directory-search-box {
    flex: 1;
    min-width: 280px;
}

.directory-search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.directory-search-box input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.1);
}

.directory-filter-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.directory-select {
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-dark);
    outline: none;
    background-color: #ffffff;
    cursor: pointer;
}

.directory-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.directory-table-container {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    border: 1px solid var(--color-border);
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.directory-table th {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.directory-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-dark);
    vertical-align: middle;
}

.directory-table tr:hover {
    background-color: rgba(212, 175, 55, 0.08);
}

.directory-table tr:last-child td {
    border-bottom: none;
}

.badge-mem-no {
    display: inline-block;
    background: rgba(15, 43, 92, 0.08);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.directory-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}

/* ==========================================================================
   13. Responsive Media Queries (Mobile-First Touch & Layout Adaptations)
   ========================================================================== */

/* Glassmorphism Backdrop Overlay for Mobile Drawer */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 23, 53, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Touch Target Minimum Sizing Standardizations */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-control,
.directory-select,
.directory-search-box input,
.search-input {
    font-size: 16px !important; /* Disables browser auto-zoom on iOS on focus */
    min-height: 48px;
}

.footer-socials a,
.contact-socials .social-icon,
.member-connect .social-icon {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Large Tablets & Laptops (992px and below) */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .president-message {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .president-photo {
        width: 150px;
        height: 150px;
    }

    .message-quote blockquote {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--color-accent);
        border-bottom: 3px solid var(--color-accent);
        padding: 20px 0;
    }

    .donate-wrapper {
        flex-direction: column;
        padding: 35px 25px;
        gap: 30px;
    }

    .donate-qr-box {
        width: 100%;
        max-width: 280px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        gap: 30px;
    }

    .members-grid-track {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

/* Medium Tablets & Mobile Drawer (768px and below) */
@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }

    .section {
        padding: 65px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 5vw, 2.2rem);
    }

    /* Mobile Hamburger Menu Drawer */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 44px;
        height: 44px;
        padding: 10px 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        z-index: 1010;
    }

    .nav-toggle span {
        height: 2.5px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: transform var(--transition-normal), opacity var(--transition-normal);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - var(--navbar-height));
        background: rgba(7, 23, 53, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 25px 15px;
        gap: 6px;
        transition: left var(--transition-normal);
        z-index: 999;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        border-right: 1px solid rgba(212, 175, 55, 0.25);
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 14px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        color: #f8fafc;
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }

    .nav-link:hover, .nav-link.active {
        background-color: rgba(212, 175, 55, 0.15);
        color: var(--color-accent);
    }

    .nav-link::after {
        display: none;
    }

    .hero-content h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .about-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        flex-grow: 1;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    /* Collapsible About & History / Major Activities content on mobile & tablet viewports */
    .read-more-wrapper {
        display: flex; /* Display Read More button on mobile devices */
    }

    .history-more-content,
    .activities-more-content {
        display: none; /* Collapse extended content on mobile by default */
        margin-top: 15px;
    }

    .history-more-content.expanded,
    .activities-more-content.expanded {
        display: block;
        animation: fadeIn var(--transition-normal) ease;
    }

    .notice-item {
        flex-direction: column;
        gap: 15px;
    }

    .notice-date {
        width: 70px;
        height: 70px;
    }

    .upcoming-events-list {
        grid-template-columns: 1fr;
    }

    .gallery-slider-wrapper,
    .members-slider-wrapper {
        padding: 0 10px;
    }

    .members-slide-btn,
    .gallery-slide-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .members-slide-btn.prev-btn,
    .gallery-slide-btn.prev-btn {
        left: -5px;
    }

    .members-slide-btn.next-btn,
    .gallery-slide-btn.next-btn {
        right: -5px;
    }
}

/* Mobile Cards Transformation for Members Directory (< 600px) */
@media (max-width: 600px) {
    .members-slider-wrapper {
        padding: 0 38px;
    }

    .members-grid-track {
        grid-auto-columns: 100% !important;
        grid-template-rows: repeat(2, 1fr) !important;
        grid-auto-flow: column !important;
        gap: 15px !important;
    }

    .members-grid-track.is-searching {
        display: grid !important;
        grid-auto-flow: row !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        grid-auto-columns: auto !important;
        transform: none !important;
        width: 100% !important;
        gap: 16px !important;
    }

    .members-slide-btn {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .members-slide-btn.prev-btn {
        left: 0 !important;
    }

    .members-slide-btn.next-btn {
        right: 0 !important;
    }

    /* Executive Committee Square Cards Mobile Design (< 600px) */
    .member-card {
        width: 100% !important;
        max-width: 320px !important;
        min-height: 315px !important;
        aspect-ratio: auto !important;
        margin: 0 auto !important;
        display: flex;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 12px !important;
        box-shadow: var(--shadow-md) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        background-color: var(--color-bg-card) !important;
    }

    .member-avatar {
        width: 66px !important;
        height: 66px !important;
        margin: 0 auto 4px !important;
        flex-shrink: 0 !important;
    }

    .member-avatar.duo-avatar {
        height: 66px !important;
        margin: 0 auto 4px !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    .member-avatar.duo-avatar img {
        width: 56px !important;
        height: 56px !important;
    }

    .member-role {
        font-size: 0.72rem !important;
        padding: 3px 10px !important;
        margin-bottom: 4px !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        letter-spacing: 0.4px !important;
        flex-shrink: 0 !important;
    }

    .member-name {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 2.5em !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        word-break: break-word !important;
        color: var(--color-primary) !important;
    }

    .member-batch {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
        color: var(--color-accent) !important;
        font-weight: 600 !important;
        flex-shrink: 0 !important;
    }

    .member-occupation {
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        color: var(--color-text-muted) !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }

    .member-connect {
        flex-shrink: 0 !important;
    }

    .member-connect .social-icon {
        min-width: 36px !important;
        min-height: 36px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 0.88rem !important;
    }

    .directory-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }

    .directory-search-box {
        width: 100%;
        min-width: 100%;
    }

    .directory-filter-box {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 12px;
    }

    .directory-select {
        width: 100%;
    }

    .directory-count {
        text-align: center;
        margin-top: 4px;
    }

    /* Convert wide table to clean touch card list on phones */
    .directory-table-container {
        border: none;
        background: transparent;
        box-shadow: none;
        overflow-x: visible;
    }

    .directory-table,
    .directory-table tbody,
    .directory-table tr,
    .directory-table td {
        display: block;
        width: 100%;
    }

    .directory-table thead {
        display: none;
    }

    .directory-table tr {
        background: #ffffff;
        border-radius: var(--border-radius);
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--color-border);
    }

    .directory-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px dashed var(--color-border);
        text-align: right;
    }

    .directory-table td:last-child {
        border-bottom: none;
    }

    .directory-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-primary);
        font-size: 0.85rem;
        margin-right: 15px;
        text-align: left;
        flex-shrink: 0;
    }

    .directory-pagination {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small Smartphone Viewports (480px and below) */
@media (max-width: 480px) {
    .container {
        width: 94%;
        padding: 0 12px;
    }

    .section {
        padding: 50px 0;
    }

    .logo-text h1 {
        font-size: 1.15rem;
    }

    .logo-text p {
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }

    .nav-logo-img {
        width: 44px;
        height: 44px;
    }

    .hero-content h2 {
        font-size: 1.7rem;
    }

    .hero-badges {
        gap: 8px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .notice-board {
        padding: 18px 15px;
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .bank-label {
        width: 100%;
        font-weight: 700;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 24px 16px;
    }

    .footer-socials {
        gap: 10px;
    }

    .footer-socials a {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
}

/* Extra Small Phones (320px - 360px width) */
@media (max-width: 360px) {
    .logo-text p {
        display: none; /* Simplify logo header text on ultra-compact devices */
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   DYNAMIC SUPERADMIN & MODAL STYLES (HOBSESA SYSTEM)
   ========================================================================== */

/* Superadmin Admin Top Bar */
.admin-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f2b5c 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 10px 20px;
    z-index: 99999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid var(--color-accent);
    animation: slideDownBar 0.3s ease-out;
}

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

body.admin-mode-active {
    padding-top: 45px;
}

body.admin-mode-active .header {
    top: 45px;
}

.admin-top-bar {
    height: 45px;
    box-sizing: border-box;
}

.admin-top-bar .admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-top-bar .admin-badge {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-top-bar .btn-admin-logout {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-top-bar .btn-admin-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Section Header Admin Flex Container */
.section-header-admin {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-header-admin .section-title-box {
    flex-grow: 1;
}

.section-header-admin .section-title-box h2 {
    margin-bottom: 8px;
}

.btn-admin-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: #ffffff;
    border: 2px solid var(--color-accent);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.25);
    transition: all 0.25s ease;
}

.btn-admin-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 43, 92, 0.35);
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-admin-login-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 43, 92, 0.06);
    color: var(--color-primary);
    border: 1px solid rgba(15, 43, 92, 0.25);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-admin-login-trigger:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 43, 92, 0.15);
}

.btn-admin-delete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-admin-delete:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Modals Overlay & Backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-card,
form.modal-content-card {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--color-border);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal-content-card > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-overlay.active .modal-content-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--color-accent);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--color-border, #e2e8f0);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.form-label-bold {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 6px;
    display: block;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.file-upload-zone:hover, .file-upload-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(15, 43, 92, 0.04);
}

.file-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-zone .upload-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.file-preview-item {
    position: relative;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220, 38, 38, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-file-info {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 8px;
    word-break: break-all;
}

.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Event Card Photo Slider Preview Bar */
.event-photos-preview {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.event-photos-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-photos-preview img:hover {
    transform: scale(1.08);
    border-color: var(--color-accent);
}

/* Dynamic Gallery Styles */
.gallery-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-pill {
    padding: 8px 18px;
    border-radius: 25px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-pill:hover, .gallery-pill.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(15, 43, 92, 0.2);
}

.dynamic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background: #0f172a;
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

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

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 43, 92, 0.85) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #ffffff;
}

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

.gallery-card-overlay h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.gallery-card-overlay span {
    font-size: 0.75rem;
    color: var(--color-accent);
}

/* Fullscreen Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(10px);
    z-index: 200000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 15px;
    color: #ffffff;
    text-align: center;
}

.lightbox-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #ffffff;
}

.lightbox-caption p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.lightbox-nav-btn.prev { left: -70px; }
.lightbox-nav-btn.next { right: -70px; }

@media (max-width: 768px) {
    .lightbox-nav-btn.prev { left: 10px; }
    .lightbox-nav-btn.next { right: 10px; }
    body.admin-mode-active { padding-top: 60px; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 300000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--color-accent);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
}

.toast-msg.error {
    border-left-color: #ef4444;
}

.toast-msg.success {
    border-left-color: #10b981;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* All Events / Notices / Photos Page Hero Styles */
.all-events-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1e3a8a 100%);
    color: #ffffff;
    padding-top: calc(var(--navbar-height) + 50px);
    padding-bottom: 45px;
    text-align: center;
    border-bottom: 4px solid var(--color-accent);
}

body.admin-mode-active .all-events-hero {
    padding-top: calc(var(--navbar-height) + 90px);
}

.directory-section {
    padding-top: calc(var(--navbar-height) + 50px);
    padding-bottom: 80px;
}

body.admin-mode-active .directory-section {
    padding-top: calc(var(--navbar-height) + 90px);
}

.all-events-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.all-events-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto;
}

.all-events-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 35px;
}

.all-events-search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.all-events-search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.all-events-search-box input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.12);
}

.all-events-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
}

.all-events-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
}

/* ==========================================================================
   Section Footer Action "More" Buttons (Aligned Bottom-Right)
   ========================================================================== */
.notices-footer-action,
.events-footer-action,
.gallery-footer-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-more-notices,
.btn-more-events,
.btn-more-gallery {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: #ffffff !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: all 0.25s ease;
}

.btn-more-notices:hover,
.btn-more-events:hover,
.btn-more-gallery:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--color-primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    color: #ffffff !important;
}

.btn-more-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-more-notices:hover .btn-more-arrow,
.btn-more-events:hover .btn-more-arrow,
.btn-more-gallery:hover .btn-more-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Homepage Photo Gallery Grid (8 latest photos in row 2 column 4 grid)
   ========================================================================== */
/* ==========================================================================
   Homepage Photo Gallery Grid & Mobile 2x2 Slider
   ========================================================================== */
.homepage-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
}

.gallery-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
    color: #ffffff;
    border: 2px solid var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gallery-nav-btn:hover,
.gallery-nav-btn:active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: scale(1.05);
}

.gallery-slider-indicator {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

@media (min-width: 601px) {
    .gallery-slider-controls {
        display: none !important;
    }
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness (5-inch mobile, tablet)
   ========================================================================== */
@media (max-width: 992px) {
    .homepage-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .all-events-hero h1 {
        font-size: 2rem;
    }
    .all-events-controls {
        padding: 16px 20px;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .all-events-hero {
        padding-top: calc(var(--navbar-height) + 35px);
        padding-bottom: 30px;
    }

    body.admin-mode-active .all-events-hero {
        padding-top: calc(var(--navbar-height) + 75px);
    }

    .all-events-hero h1 {
        font-size: 1.55rem;
        padding: 0 10px;
    }

    .all-events-hero p {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .all-events-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .all-events-search-box {
        min-width: 100%;
    }

    .all-events-search-box input {
        font-size: 0.88rem;
        padding: 10px 14px 10px 38px;
    }

    .all-events-count {
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
        display: block;
    }

    /* Mobile 2-Column Grid Fix for Homepage Gallery & All Photos Page */
    .homepage-gallery-grid,
    .dynamic-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .homepage-gallery-grid .gallery-card,
    .dynamic-gallery-grid .gallery-card {
        height: 145px !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        isolation: isolate !important;
        -webkit-backface-visibility: hidden !important;
        transform: translateZ(0) !important;
    }

    .homepage-gallery-grid .gallery-card img,
    .dynamic-gallery-grid .gallery-card img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .homepage-gallery-grid .gallery-card-overlay,
    .dynamic-gallery-grid .gallery-card-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.45) 70%, transparent 100%) !important;
        padding: 8px 10px !important;
        justify-content: flex-end !important;
    }

    .homepage-gallery-grid .gallery-card-overlay h4,
    .dynamic-gallery-grid .gallery-card-overlay h4 {
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 2px !important;
        color: #ffffff !important;
    }

    .homepage-gallery-grid .gallery-card-overlay span,
    .dynamic-gallery-grid .gallery-card-overlay span {
        font-size: 0.65rem !important;
        color: var(--color-accent) !important;
    }

    .gallery-filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-pill {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

/* ==========================================================================
   Events List Row Layout (Screenshot Style) & Single Event Page
   ========================================================================== */
.events-board {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    transition: padding var(--transition-fast);
    align-items: center;
}

.event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-item:hover {
    padding-left: 10px;
}

.event-item-photo {
    flex-shrink: 0;
    width: 110px;
    height: 85px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.event-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

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

.event-item-photo-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 43, 92, 0.85);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.event-item-content {
    flex-grow: 1;
}

.event-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.event-item-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.event-item-title a:hover {
    color: var(--color-accent);
}

.event-item-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.event-item-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-secondary-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.event-item-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Single Event Page Hero & Detail Card */
.single-event-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #ffffff;
    padding: 45px 0 40px;
    border-bottom: 3px solid var(--color-accent);
}

.single-event-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.single-event-breadcrumbs a {
    color: var(--color-accent);
    text-decoration: none;
}

.single-event-breadcrumbs a:hover {
    text-decoration: underline;
}

.single-event-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    max-width: 900px;
    margin: 0 auto;
}

.single-event-header {
    margin-bottom: 25px;
}

.single-event-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.single-event-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.single-event-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.single-event-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 0;
}

.single-event-cover {
    width: 100%;
    max-height: 440px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background: var(--color-bg-light);
}

.single-event-cover img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.single-event-cover:hover img {
    transform: scale(1.03);
}

.single-event-cover-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.single-event-body {
    margin-bottom: 40px;
    line-height: 1.75;
}

.single-event-body-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 6px;
    display: inline-block;
}

.single-event-paragraph {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.single-event-photos-section {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.single-event-photos-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.single-event-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.single-event-photo-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    background: #f1f5f9;
}

.single-event-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.single-event-photo-card:hover img {
    transform: scale(1.08);
}

.single-event-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 43, 92, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-weight: 600;
    font-size: 0.85rem;
}

.single-event-photo-card:hover .single-event-photo-overlay {
    opacity: 1;
}

.single-event-footer-actions {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

@media (max-width: 768px) {
    .events-board {
        padding: 20px 16px;
    }
    .event-item {
        gap: 15px;
    }
    .event-item-photo {
        width: 85px;
        height: 70px;
    }
    .event-item-title {
        font-size: 1.05rem;
    }
    .single-event-card {
        padding: 24px 18px;
    }
    .single-event-title {
        font-size: 1.6rem;
    }
    .single-event-cover {
        max-height: 280px;
    }
    .single-event-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}