html { scroll-behavior: smooth; }

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;  
    line-height: 1.5;  
    font-weight: 900;
    
}

h2 { 
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    line-height: 1.5;
}


h3 { 
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}


body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    
}

p {
    color: #8f8f8f;
}


#title {
    /* background-color: #ff4c68; */
    background-color: #D73F09;
    color: #fff;
}

.container-fluid {
    padding: 3% 15%;
}

/* Nav-bar styles */
.navbar {
    padding: 0.75rem 0 4rem;
}

.nav-item {
    padding: 0 18px;
}

.navbar-brand {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
}

.nav-link {
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.nav-link-highlight {
    font-weight: 700;
    color: #fff !important;
}

.nav-link-highlight:hover,
.nav-link-highlight:focus {
    color: #ffe1d5 !important;
}

/* Mobile navbar collapse dropdown */
@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 0 2rem;
    }
    .navbar-toggler {
        border: 1.5px solid rgba(255,255,255,0.45);
        border-radius: 8px;
        padding: 0.45rem 0.7rem;
        transition: border-color 0.2s, background-color 0.2s;
    }
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(215, 63, 9, 0.45);
        border-color: rgba(255,255,255,0.8);
    }
    .navbar-collapse {
        background: rgba(18, 12, 10, 0.96);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
        padding: 0.25rem 0.75rem 0.6rem;
        margin-top: 0.5rem;
    }
    .navbar-nav .nav-item {
        padding: 0;
    }
    .navbar-nav .nav-link {
        padding: 0.9rem 1.4rem;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(215, 63, 9, 0.14);
        color: #ff9974 !important;
        padding-left: 1.85rem;
    }
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}
 /* Download-button  */

.download-button {
    margin: 5% 3% 5% 0;
}

/* Social button group */
.social-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.social-btn-group .download-button {
    margin: 0;
}

/* Title row */
.title-row { padding: 1rem 0; }
.title-img-col { text-align: center; }
.title-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join-game-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: fit-content;
}
.join-game-cta:hover,
.join-game-cta:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

.hero-lead {
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 640px;
    margin: 1rem 0 1.35rem;
}

/* img-Title  */

.title-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}
 
.coloms {
    width: 10px;

}

.featuers-icon {
    /* color: #ff4c68; */
    color: #D73F09;
    padding-bottom: 1rem;
   

}

.featuers-icon:hover {
    /* color: #f31d3e; */
    color: #fa4b0c;
}

#features {
    
    padding: 7% 15%;
}

.featuers-box {
    text-align: center;
    padding: 5%;
}

/* Stats Bar (replaces testimonials carousel) */

#testimonials {
    background-color: #D73F09;
    color: #fff;
    padding: 0;
}

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 3rem 8%;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 3rem;
    flex: 1;
    min-width: 140px;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .stat-divider { display: none; }
    .stat-item { padding: 1rem 1.5rem; min-width: 120px; }
    .stat-number { font-size: 2rem; }
}

/* Press */

#press {
    background-color: #D73F09;
    padding: 2.5rem 1rem;
}

.press-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.press-img {
    width: 90px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    margin: 0;
}

.press-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.4);
}

.press-text-block { text-align: center; }

.press-org-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
}

.press-org-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Resources / Pricing */

#pricing {
    padding: 5% 8%;
    text-align: center;
}

/* Resource cards — tile layout */
.resource-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
    color: inherit;
    text-decoration: none;
}

.rc-thumb {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    background-color: #e8dbd6;
}

.rc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(183,53,8,0.75) 0%, rgba(215,63,9,0.55) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-icon {
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.rc-body {
    padding: 0.95rem 1.05rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.rc-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.35rem;
}

.rc-desc {
    font-size: 0.79rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.rc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #D73F09;
    transition: gap 0.2s ease;
}

.resource-card:hover .rc-btn {
    gap: 0.65rem;
}

/* keep old btn-resource so nothing else breaks */
.btn-resource {
    background-color: #D73F09;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 1rem;
    transition: background-color 0.2s;
}

.btn-resource:hover {
    background-color: #b33207;
    color: #fff;
}

.card-img-top {
    width: 100%;
    object-fit: cover;
    border-radius: 0;
}

#events .card {
    border-radius: 12px;
    overflow: hidden;
}


#cta {
    background-color: #D73F09;

}

#about {
    background-color: #f4f4f4;
    padding: 4% 15%;
    text-align: center;
}

#officers {
    background-color: #f8f8f8;
    padding: 5% 8%;
    text-align: center;
}

/* Year tabs */
.tabs-scroll-wrap {
    position: relative;
}

.year-tabs {
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
}

.year-tab-btn {
    background: #fff !important;
    border: 2px solid #D73F09 !important;
    color: #D73F09 !important;
    font-weight: 700;
    border-radius: 14px;
    padding: 0.55rem 1.35rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(215,63,9,0.1);
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.year-tab-btn:hover {
    background: #fdf0eb !important;
    color: #b33207 !important;
    box-shadow: 0 2px 10px rgba(215,63,9,0.18);
    transform: translateY(-1px);
}

.year-tab-btn.active {
    background: #D73F09 !important;
    border-color: #D73F09 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(215,63,9,0.35);
    transform: translateY(-1px);
}

.current-badge {
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.4);
}

.year-tab-btn:not(.active) .current-badge {
    background: #D73F09;
    color: #fff;
    border-color: transparent;
}

.year-tab-btn.active .current-badge {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.team-swipe-hint {
    display: none;
    margin: -0.8rem 0 1.25rem;
    text-align: center;
    color: #8b6d61;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.officers-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.25rem;
}

.officer-photo,
.dept-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1rem;
    border: 3px solid #f0f0f0;
    background: #fff;
}

.officer-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.officer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.department-card {
    border-top: 4px solid #D73F09;
}

/* Department card — horizontal layout */
.dept-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
}

.dept-photo-wrap {
    flex-shrink: 0;
}

.dept-photo { margin-bottom: 0; }

.dept-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dept-officer-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dept-officer-title {
    font-size: 0.78rem;
    color: #888;
    margin: 0 0 0.4rem 0;
}

.dept-badge {
    display: inline-block;
    background-color: #fff3ee;
    color: #D73F09;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-see-team {
    background-color: transparent;
    border: 1.5px solid #D73F09;
    color: #D73F09;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    transition: background-color 0.2s, color 0.2s;
}

.btn-see-team:hover,
.btn-see-team[aria-expanded="true"] {
    background-color: #D73F09;
    color: #fff;
}

.team-members-list {
    background-color: #fff9f7;
    border-top: 1px solid #fde8df;
    padding: 0.85rem 1.2rem;
    text-align: left;
}

.team-members-list p {
    color: #555;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

#events {
    background-color: #f4f4f4;
    padding: 4% 15%;
    text-align: center;
}

.container {
    padding: 2% 15%;
}

/* ── Events ── */

/* Section header */
.events-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.events-section-header h2 {
    margin-bottom: 0.25rem;
}
.events-section-sub {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* Group labels: Today / This Week / Upcoming */
.events-group-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    margin-bottom: 1rem;
}
.events-group-label i { color: #D73F09; font-size: 0.85rem; }
.events-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ede5e1;
}
.events-group-count {
    background: #fff4f0;
    color: #D73F09;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid #fad9cc;
}

/* Date badge */
.event-date {
    display: inline-block;
    background: rgba(215, 63, 9, 0.1);
    color: #D73F09;
    border: 1px solid rgba(215, 63, 9, 0.22);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.event-date-past {
    background: rgba(0,0,0,0.06);
    color: #999;
    border-color: rgba(0,0,0,0.1);
}

/* Countdown badges */
.event-countdown {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.event-countdown.today {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}
.event-countdown.soon {
    background: #fff4f0;
    color: #D73F09;
    border: 1px solid #fad9cc;
}

/* Media wrapper */
.event-media-wrap {
    position: relative;
    overflow: hidden;
}
.event-media-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.event-card-upcoming:hover .event-media-img {
    transform: scale(1.04);
}
.event-media-fallback {
    height: 180px;
    background: linear-gradient(135deg, #ff7a38 0%, #D73F09 55%, #7e1e00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 3rem;
    transition: transform 0.35s ease;
}
.event-card-upcoming:hover .event-media-fallback {
    transform: scale(1.04);
}
.event-media-fallback i {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
/* Bottom gradient overlay on media */
.event-media-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(20,12,8,0.38) 0%, transparent 100%);
    pointer-events: none;
}

/* Card shell */
.event-card-upcoming {
    border: 1px solid #ead9d2;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(31, 37, 58, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.event-card-upcoming:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(31, 37, 58, 0.13);
}

/* Card body */
.event-card-upcoming .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.6rem;
    padding: 1.1rem 1.2rem 1.2rem;
}
.event-card-upcoming .card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e1812;
    letter-spacing: -0.01em;
}

/* Description — clamp to 2 lines */
.event-desc {
    margin: 0;
    color: #7b7f89;
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-desc.expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}
.event-desc-toggle {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #D73F09;
    cursor: pointer;
    margin-top: 0.1rem;
}
.event-desc-toggle:hover { text-decoration: underline; }

.event-location {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.event-location a {
    color: #70757f !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.event-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.event-signup-count {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #fff5ef 0%, #ffe2d4 100%);
    color: #D73F09;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* CTA button */
@keyframes ctaGlow {
    0%   { box-shadow: 0 8px 20px rgba(215,63,9,0.25); }
    50%  { box-shadow: 0 8px 28px rgba(215,63,9,0.45); }
    100% { box-shadow: 0 8px 20px rgba(215,63,9,0.25); }
}
.event-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    background: linear-gradient(135deg, #ff6a1a 0%, #d73f09 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.72rem 1rem;
    margin-top: auto;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(215, 63, 9, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-action-link:hover,
.event-action-link:focus {
    color: #fff;
    transform: translateY(-2px);
    animation: ctaGlow 1.4s ease-in-out infinite;
}

/* Add to Calendar button */
.event-cal-dropdown { margin-top: auto; }
.event-cal-btn {
    background: #fff6f2;
    border: 1.5px solid #f5c5ab;
    color: #D73F09;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.42rem 0.85rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.event-cal-btn:hover {
    border-color: #D73F09;
    color: #fff;
    background: #D73F09;
    box-shadow: 0 4px 14px rgba(215,63,9,0.25);
}

/* Mobile overrides for upcoming cards */
@media (max-width: 576px) {
    .event-media-img, .event-media-fallback { height: 150px; }
    .event-card-upcoming { border-radius: 16px; }
    .event-card-upcoming .card-title { font-size: 1rem; }
    .event-card-upcoming .card-body { padding: 0.9rem 1rem 1rem; gap: 0.5rem; }
}

/* Form Section */

#form-section {
    background-color: #f8f8f8;
    padding: 5% 8%;
}

.kwsa-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.kwsa-form-wrap h2 {
    margin-bottom: 0.4rem;
}

.form-subtitle {
    color: #8f8f8f;
    margin-bottom: 2rem;
}

.kwsa-custom-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 2.5rem;
    text-align: left;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kwsa-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.kwsa-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.req { color: #D73F09; }

.kwsa-input {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    width: 100%;
    outline: none;
    resize: vertical;
}

.kwsa-input:focus {
    border-color: #D73F09;
    background: #fff;
}

.kwsa-submit-btn {
    display: inline-block;
    background-color: #D73F09;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.kwsa-submit-btn:hover:not(:disabled) { background-color: #b33207; }
.kwsa-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.kwsa-form-status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.kwsa-form-success { background-color: #e8f5e9; color: #2e7d32; }
.kwsa-form-error   { background-color: #fdecea; color: #c62828; }

@media (max-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .kwsa-custom-form { padding: 1.5rem 1.25rem; }
    .press-inner { flex-direction: column; gap: 0.75rem; }
    .press-divider { display: none; }
    .press-text-block { text-align: center; }
}

/* ── Past events strip ── */

/* Filter chips */
.past-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.past-filter-chip {
    background: #fff;
    border: 1.5px solid #e0d5d0;
    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
    display: inline-flex;
    align-items: center;
}
.past-filter-chip:hover {
    border-color: #D73F09;
    color: #D73F09;
    background: #fff4f0;
}
.past-filter-chip.active {
    background: #D73F09;
    border-color: #D73F09;
    color: #fff;
}

/* Toggle button */
.past-events-header {
    margin-top: 0.25rem;
    margin-bottom: 0;
}
.past-events-toggle-btn {
    background: none;
    border: 1.5px solid #e0d5d0;
    color: #888;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.past-events-toggle-btn:hover,
.past-events-toggle-btn.active {
    border-color: #D73F09;
    color: #D73F09;
    background: #fff4f0;
}

/* Carousel wrapper */
#past-events-carousel-wrap {
    margin-top: 0.85rem;
}
.past-carousel-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Scrollable container with snap */
#past-events-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #D73F09 #f0f0f0;
}
#past-events-container::-webkit-scrollbar { height: 4px; }
#past-events-container::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
#past-events-container::-webkit-scrollbar-thumb { background: #D73F09; border-radius: 4px; }

/* Past mini card */
.past-mini-card {
    flex: 0 0 190px;
    width: 190px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0e8e4;
    border-left: 3px solid #D73F09;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: default;
    scroll-snap-align: start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.past-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Media wrapper inside mini card */
.past-mini-media {
    position: relative;
    overflow: hidden;
}
.past-mini-img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    display: block;
    filter: grayscale(40%);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.past-mini-card:hover .past-mini-img {
    filter: grayscale(20%);
    transform: scale(1.04);
}
.past-mini-icon {
    width: 100%;
    height: 112px;
    background: linear-gradient(135deg, #e8e0dc 0%, #d4ccc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #bbb;
}
/* Bottom gradient overlay on mini card media */
.past-mini-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(20,10,6,0.32) 0%, transparent 100%);
    pointer-events: none;
}

.past-mini-body {
    padding: 0.6rem 0.75rem 0.7rem;
}
.past-mini-date {
    font-size: 0.62rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.2rem;
}
.past-mini-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3a2e2a;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Circle "More" button */
.past-more-circle {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0.65rem;
}
.past-more-text {
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.past-more-circle:hover {
    background: #d4d4d4;
    color: #333;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
    .past-mini-card { flex: 0 0 160px; width: 160px; }
    .past-mini-img, .past-mini-icon { height: 95px; }
    .past-more-circle { width: 46px; height: 46px; font-size: 1rem; }
    .past-filter-chip { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
}

/* Footer */

#footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 2rem 1rem;
}

#footer p {
    color: #ccc;
    margin-bottom: 0.75rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #D73F09;
}

/* ── Tablet & small laptop (≤992px) ── */
@media (max-width: 992px) {
    .container-fluid { padding: 3% 8%; }
    #features, #events { padding: 5% 8%; }
    .container { padding: 2% 8%; }
    .navbar-brand { font-size: 1.8rem; }
}

/* ── Title section mobile (≤991px) ── */
@media (max-width: 991px) {
    .title-text-col { text-align: center; align-items: center; }
    .social-btn-group { justify-content: center; }
    .title-row {
        row-gap: 1rem;
    }
    .title-img-col {
        display: flex;
        justify-content: center;
    }
    .title-img {
        max-width: 260px;
        margin: 1rem auto 0;
        display: block;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Tablet portrait / large phone (≤768px) ── */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.1rem; }

    .container-fluid { padding: 3% 5%; }
    .container { padding: 5% 5%; }
    #about, #officers, #events, #features { padding: 6% 5%; }
    #pricing { padding: 5% 5%; }
    #form-section { padding: 8% 5%; }

    .navbar { padding: 0.5rem 0 1.5rem; }
    .navbar-brand { font-size: 1.6rem; }

    .title-img {
        max-width: 210px;
        max-height: 200px;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }

    .download-button { margin-bottom: 0.75rem; margin-right: 0; }
    .social-btn-group .download-button { display: inline-block; width: auto; }

    .stats-bar { padding: 2rem 5%; }

    /* .press-img width handled by base rule */

    .officer-photo,
    .dept-photo { width: 84px; height: 84px; }

    .year-tab-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

    /* Department cards — stack vertically for 2×2 mobile grid */
    .dept-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
        padding: 0.9rem 0.75rem;
    }

    .dept-info {
        align-items: center;
    }

    .dept-officer-name {
        white-space: normal;
        text-align: center;
        font-size: 0.82rem;
    }

    .dept-officer-title {
        font-size: 0.72rem;
    }

    .dept-badge {
        font-size: 0.62rem;
    }

    .btn-see-team {
        font-size: 0.72rem;
        padding: 0.25rem 0.6rem;
    }
}

/* ── Landscape phones / large phones (≤640px) ── */
@media (max-width: 640px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1rem; }

    .navbar-brand { font-size: 1.4rem; }

    .container-fluid { padding: 3% 4%; }
    .container { padding: 5% 4%; }
    #about, #officers, #events, #features, #pricing { padding: 6% 4%; }
    #form-section { padding: 7% 4%; }

    .title-row {
        padding: 0;
        row-gap: 0.75rem;
    }
    .title-img-col {
        display: flex;
        justify-content: center;
        order: 3;
    }
    .title-img {
        max-width: 160px;
        max-height: 150px;
        margin: 0.5rem auto 0;
        opacity: 0.98;
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
    }
    .social-btn-group { margin-top: 1rem; }
    #title .container-fluid { padding-top: 0.5rem; padding-bottom: 1rem; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.75rem; }

    /* Team: compact card padding */
    .officer-card .card-body { padding: 1.25rem 0.75rem; }
    .officer-photo,
    .dept-photo { width: 72px; height: 72px; }

    /* Year tabs: compact horizontal scroller on mobile */
    .year-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        gap: 0.45rem;
        overflow-x: auto;
        padding: 0 0.15rem 0.35rem;
        scrollbar-width: none;
    }
    .year-tabs::-webkit-scrollbar { display: none; }
    .year-tab-btn {
        flex: 0 0 auto;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.52rem 0.72rem;
        border-radius: 12px;
        white-space: nowrap;
        gap: 0.3rem;
    }
    .year-tab-btn i {
        font-size: 0.72rem !important;
        margin-right: 0.1rem !important;
    }
    .current-badge {
        font-size: 0.54rem;
        padding: 2px 6px;
    }
    .team-swipe-hint {
        display: block;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1rem; }

    .navbar-brand { font-size: 1.3rem; }

    .title-img {
        max-width: 140px;
        max-height: 132px;
        margin-top: 0.35rem;
    }

    /* .press-img width handled by base rule */

    /* Stats: wrap into 2×2 grid */
    .stat-item { max-width: 50%; flex: 0 0 50%; }
    .stat-divider { display: none; }
    .stat-number { font-size: 1.7rem; }

    /* Team: very compact 2-column cards */
    .officer-card .card-body { padding: 0.9rem 0.4rem; }
    .officer-photo,
    .dept-photo { width: 60px; height: 60px; }
    .officer-photo { margin-bottom: 0.5rem; }
    .officer-card h3 { font-size: 0.8rem; margin-bottom: 0.2rem; }
    .officer-card .text-muted { font-size: 0.72rem; }
    .dept-badge { font-size: 0.65rem; padding: 2px 6px; }
    .btn-see-team { font-size: 0.75rem; padding: 0.3rem 0.4rem; }
    .officers-section-label { font-size: 0.7rem; margin-bottom: 0.75rem; }

    /* Tighter row gaps for 2-column team grid */
    #officers .row { --bs-gutter-x: 0.6rem; --bs-gutter-y: 0.6rem; }

    .year-tab-btn { font-size: 0.76rem; padding: 0.48rem 0.62rem; }

    /* Past events: don't let cards be wider than 82% of screen */
    .past-event-col { flex: 0 0 min(260px, 82vw); width: min(260px, 82vw); }

    /* Resource cards: tighter on small phones */
    #resources-container { --bs-gutter-x: 0.65rem; --bs-gutter-y: 0.65rem; }
    .rc-thumb { height: 90px; }
    .rc-body { padding: 0.7rem 0.75rem 0.8rem; }
    .rc-title { font-size: 0.8rem; }
    .rc-desc { font-size: 0.72rem; -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 0.55rem; }
    .rc-btn { font-size: 0.74rem; }
}

/* ── Back to Top button ── */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #D73F09;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(215,63,9,0.35);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: #b53307; }

@media (max-width: 600px) {
  .org-sep { display: none; }
  .org-uni { display: block; margin-top: 0.15rem; }
}

/* ── Instagram Feed Section ── */
#instagram-feed {
  background: #fff;
  padding: 0;
  overflow: hidden;
}

/* Hide CommonNinja free-tier branding badge */
#instagram-feed a[href*="commoninja"],
#instagram-feed [class*="ninja-branding"],
#instagram-feed [class*="cn-branding"],
#instagram-feed [class*="powered-by"],
#instagram-feed [class*="commonninja-branding"] {
  display: none !important;
}

