/* ============================================
   WAR WIDOWS INDIA - INSTITUTIONAL STYLESHEET
   ============================================ */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm orange – valour, sacrifice */
    --primary-green: #B85C2B;        /* Burnt orange */
    --primary-green-dark: #8F4520;   /* Darker orange for hover/active */
    --primary-green-light: #C96B35;  /* Lighter orange for borders */
    --secondary-blue: #1C1C1C;       /* Charcoal – authority, dignity (Australian-style dark blue) */
    --secondary-blue-dark: #0A0A0A;  /* Near black */
    --secondary-blue-mid: #2D2D2D;   /* Dark grey for sections */
    --nav-blue: #1a365d;             /* Australian-style nav blue */
    --accent-saffron: #B8860B;       /* Gold – honour (minimal use) */
    --bg-off-white: #F8F6F3;         /* Warm off-white */
    --bg-light-grey: #EBE8E4;        /* Light warm grey */
    --bg-section-bar: #e8e8e8;       /* Light grey for news section bar */
    --text-dark: #2C2C2C;
    --text-black: #1A1A1A;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Merriweather', 'Georgia', serif;
    --font-body: 'Roboto', 'Arial', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --card-padding: 30px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-off-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-black);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue-dark);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light-grey);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== HEADER & NAVIGATION (Australian War Widows style) ===== */
.top-bar {
    background-color: var(--nav-blue);
    color: var(--white);
    padding: 0.35rem 0;
    font-size: 0.85rem;
}
.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar__phone {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.top-bar__phone:hover {
    color: var(--white);
}
.top-bar__btn {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-green);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.top-bar__btn:hover {
    background: var(--primary-green-dark);
    color: var(--white) !important;
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.3rem 0;
        font-size: 0.8rem;
    }
    .top-bar__btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}

.header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar {
    padding: 0.6rem 0;
}

.navbar-brand {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nav-blue) !important;
    display: flex;
    align-items: center;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.navbar-brand:hover {
    color: var(--secondary-blue-dark) !important;
}

.navbar-brand img {
    height: 48px;
    width: 48px;
    margin-right: 12px;
    object-fit: contain;
    border-radius: 50%;
}

/* Hide broken logo image but keep space; show only when image loads */
.navbar-brand img[src*="logo"] {
    min-height: 40px;
    min-width: 40px;
}

/* Space between nav items – clear separation, no crowding */
.navbar-nav {
    gap: 0.125rem;
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 0;
    }
    .navbar-nav .nav-item {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
    }
}

.navbar-nav .nav-item {
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--nav-blue) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 600;
}

.navbar-toggler {
    border: 1px solid var(--nav-blue);
    padding: 0.35rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a365d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Page header (blue bar on inner pages) */
.page-header-banner {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 3rem 0;
}
.page-header-banner h1 {
    color: var(--white);
    margin: 0;
    font-size: 2rem;
}

/* ===== HERO SECTION (inner pages) ===== */
.hero-section {
    background: url('../images/hero_defence_banner.jpg') center/cover no-repeat;
    background-color: var(--secondary-blue-mid);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 28, 0.85);
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--white);
}

/* ===== HOME HERO (carousel left background, content right) ===== */
.hero-home {
    position: relative;
    height: 520px;
    min-height: 520px;
    background: var(--secondary-blue);
    color: var(--white);
    overflow: hidden;
}
.hero-home__row {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}
.hero-home__left {
    flex: 0 0 48%;
    position: relative;
    height: 100%;
    overflow: hidden;
}
.hero-home__left .carousel,
.hero-home__left .carousel-inner,
.hero-home__left .carousel-item {
    height: 100%;
    width: 100%;
    min-height: 520px;
}
.hero-home__left .carousel-item {
    position: relative;
}
.hero-home__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-home__left .carousel-item .hero-home__slide--gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.hero-home__slide--gradient {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 40%, #3d5a80 70%, #2d2d2d 100%);
}
.hero-home__img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    min-height: 520px;
    max-height: 520px;
    display: block;
}
.hero-home__slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.5) 0%, rgba(26, 54, 93, 0.35) 50%, rgba(28, 28, 28, 0.5) 100%);
    pointer-events: none;
}
.hero-home__control {
    width: 44px;
    height: 44px;
    opacity: 0.7;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.hero-home__control:hover {
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.3);
}
.hero-home__control .carousel-control-prev-icon,
.hero-home__control .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
}
.hero-home__right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(26, 54, 93, 0.98) 0%, var(--secondary-blue) 15%, var(--secondary-blue) 100%);
    padding: 3rem 3.5rem;
    text-align: left;
}
.hero-home__inner {
    max-width: 540px;
}
.hero-home__title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    text-align: inherit;
    letter-spacing: -0.02em;
}
.hero-home__line {
    display: block;
}
.hero-home__tagline {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.35rem;
    letter-spacing: 0.01em;
}
.hero-home__quote {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
    font-weight: 400;
    margin: 1.5rem 0 1.75rem;
    max-width: 100%;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}
.hero-home__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
}
.hero-home__right .hero-home__cta .btn {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--white);
    background: transparent;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
}

/* ===== WELCOME / TEXT SECTIONS ===== */
.section--light {
    background: var(--bg-off-white);
}
.container--text {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.heading-main {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}
.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}
.link-arrow {
    font-weight: 500;
    color: var(--primary-green);
}
.link-arrow:hover {
    color: var(--primary-green-dark);
}

/* ===== PILLAR CARDS (UK-style three pillars) ===== */
.pillar-card {
    background: var(--white);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--bg-light-grey);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-green-light);
}
.pillar-card__icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.pillar-card__title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.pillar-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.pillar-card__link {
    font-weight: 500;
    color: var(--primary-green);
    font-size: 0.95rem;
}
.pillar-card__link:hover {
    color: var(--primary-green-dark);
}

/* ===== FOUNDER CHAIRPERSON (photo left, writeup right) ===== */
.founder-chairman {
    background: #f0ebe6;
    padding: 4rem 0;
}
.founder-chairman__photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
    max-width: 280px;
}
.founder-chairman__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.founder-chairman__role {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--nav-blue);
    margin-bottom: 0.35rem;
}
.founder-chairman__name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.founder-chairman__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-green);
    background: rgba(184, 92, 43, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}
.founder-chairman__text {
    margin-bottom: 1.25rem;
}
.founder-chairman__text p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.founder-chairman__text p:last-child {
    margin-bottom: 0;
}
.founder-chairman__cta {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-green);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-green);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.founder-chairman__cta:hover {
    color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

@media (max-width: 767.98px) {
    .founder-chairman__photo {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }
    .founder-chairman .row {
        text-align: center;
    }
    .founder-chairman__role,
    .founder-chairman__name,
    .founder-chairman__badge {
        text-align: center;
    }
    .founder-chairman__text {
        text-align: left;
    }
}

/* ===== NEWS CARD (Latest) ===== */
.news-card {
    display: flex;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--bg-light-grey);
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}

/* Latest section: stacked layout so image is full-width and centered */
.section--light .news-card {
    flex-direction: column;
    max-width: none;
}
.section--light .news-card__image {
    flex: 0 0 auto;
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}
.section--light .news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.section--light .news-card__body {
    flex: 1 1 auto;
    padding: 1.75rem 2rem;
}

.news-card__image {
    flex: 0 0 280px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.news-card__image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: center;
}
.news-card__image-placeholder {
    width: 100%;
    min-height: 220px;
    background: var(--section--light-bg, #f8f9fa);
}
.news-card__body {
    flex: 1 1 280px;
    padding: 1.75rem 2rem;
}
.news-card__date {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.news-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.news-card__body p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ===== GET INVOLVED (dark CTA block) ===== */
.get-involved {
    background: var(--secondary-blue);
    color: var(--white);
}
.get-involved .section-title {
    color: var(--white);
}
.get-involved__item {
    text-align: center;
    padding: 1.5rem;
}
.get-involved__title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}
.get-involved__item p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

/* ===== FOOTER LINKS ===== */
.footer-links li {
    margin-bottom: 0.35rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-blue);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-green);
}

/* ===== NEWS / EVENTS SECTION BAR (Australian style) ===== */
.news-section-bar {
    background-color: var(--bg-section-bar);
    padding: 1.25rem 0;
    margin-bottom: 0;
}
.news-section-bar .section-title-bar {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #555;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

/* ===== EVENT CARDS (Australian news-style: image, title, date, excerpt) ===== */
.events-news-grid .card {
    border: 1px solid var(--bg-light-grey);
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s ease;
}
.events-news-grid .card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.events-news-grid .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}
.events-news-grid .card-body {
    padding: 1.25rem 1.5rem;
}
.events-news-grid .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-black);
    line-height: 1.3;
}
.events-news-grid .card-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}
.events-news-grid .card-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-dark);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem 1.5rem;
    border: none;
    font-weight: 600;
}

.card-body {
    padding: var(--card-padding);
}

.card-title {
    color: var(--secondary-blue);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

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

/* ===== TEAM SECTION (About page) ===== */
.team-section .team-card {
    border: 1px solid var(--bg-light-grey);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.team-section .team-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.team-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light-grey);
}
.team-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.team-card__img-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-blue-mid);
}
.team-card__initial {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
}
.team-card__body {
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.team-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-black);
    line-height: 1.3;
}
.team-card__role {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.team-card__bio {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-blue-dark);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-green);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    z-index: 1;
}

.timeline-content {
    background-color: var(--white);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2.5rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    max-width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    max-width: 45%;
}

/* ===== HISTORY PAGE – MINIMAL TIMELINE ===== */
.container--narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.history-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--bg-light-grey);
}

.history-timeline__item {
    position: relative;
    padding-bottom: 2.25rem;
}

.history-timeline__item:last-child {
    padding-bottom: 0;
}

.history-timeline__item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.35rem;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-green);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--bg-light-grey);
}

.history-timeline__year {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.history-timeline__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-black);
}

.history-timeline__content p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .container--narrow {
        max-width: 100%;
    }
    .history-timeline {
        padding-left: 1.25rem;
    }
    .history-timeline__item::before {
        left: -1.25rem;
        width: 8px;
        height: 8px;
    }
    .hero-home {
        height: auto;
        min-height: 380px;
    }
    .hero-home__row {
        flex-direction: column;
    }
    .hero-home__left {
        flex: 0 0 260px;
        min-height: 260px;
    }
    .hero-home__left .carousel-inner,
    .hero-home__left .carousel-item {
        min-height: 260px;
    }
    .hero-home__left .carousel-item .hero-home__img {
        min-height: 260px;
        max-height: 260px;
    }
    .hero-home__right {
        padding: 2.25rem 1.5rem 3rem;
        text-align: center;
    }
    .hero-home__inner {
        max-width: 100%;
    }
    .hero-home__cta {
        justify-content: center;
        flex-direction: column;
    }
    .hero-home__cta .btn {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    .news-card {
        flex-direction: column;
    }
    .news-card__image {
        flex: 0 0 auto;
        min-height: 200px;
    }
    .news-card__body {
        padding: 1.5rem;
    }
    .get-involved__item {
        padding: 1.25rem 0.5rem;
    }
    .team-card__body {
        padding: 1.25rem 1rem;
    }
    .team-card__name {
        font-size: 1rem;
    }
    /* Touch-friendly nav links when collapsed */
    .navbar-collapse .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    /* Modal carousel slightly smaller on tablets */
    .modal .carousel,
    .modal .carousel-inner,
    .modal .carousel-item {
        max-height: 320px;
    }
    .modal .carousel-item img {
        height: 320px;
    }
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid var(--bg-light-grey);
    margin-bottom: 1rem;
    background-color: var(--white);
}

.accordion-button {
    background-color: var(--bg-off-white);
    color: var(--text-black);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-green);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-green);
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--white);
}

/* ===== SHAHEED BHAWAN (Contact page) ===== */
.shaheed-bhawan-section {
    background: var(--bg-off-white);
    padding: 3rem 0;
}
.shaheed-bhawan-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}
.shaheed-bhawan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}
.shaheed-bhawan__heading {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-black);
    text-align: left;
    margin-bottom: 1.25rem;
}
.shaheed-bhawan__writeup {
    padding-right: 1.5rem;
}
.shaheed-bhawan-section .col-lg-6 {
    display: flex;
    flex-direction: column;
}
.shaheed-bhawan-section .col-lg-6.order-lg-2 {
    align-items: stretch;
}
.shaheed-bhawan-carousel {
    width: 100%;
    flex: 0 0 auto;
}
.shaheed-bhawan__writeup p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}
.shaheed-bhawan__writeup p:last-child {
    margin-bottom: 0;
}
.shaheed-bhawan__signoff {
    margin-top: 1.25rem !important;
    font-style: italic;
    opacity: 0.95;
}
.shaheed-bhawan-carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
}
.shaheed-bhawan-carousel .carousel-inner {
    border-radius: 10px;
}
.shaheed-bhawan-carousel .carousel-item {
    aspect-ratio: 4/3;
    background: var(--bg-light-grey);
}
.shaheed-bhawan-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shaheed-bhawan-carousel .carousel-control-prev,
.shaheed-bhawan-carousel .carousel-control-next {
    width: 3rem;
    opacity: 0.9;
}
.shaheed-bhawan-carousel .carousel-control-prev-icon,
.shaheed-bhawan-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 0.5rem;
}
.shaheed-bhawan-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-green);
}
@media (max-width: 991.98px) {
    .shaheed-bhawan__writeup {
        padding-right: 0;
        padding-top: 0;
    }
    .shaheed-bhawan__heading {
        text-align: center;
    }
}
@media (max-width: 576px) {
    .shaheed-bhawan-section {
        padding: 2rem 0;
    }
    .shaheed-bhawan-card {
        padding: 1.75rem 1.25rem;
    }
    .shaheed-bhawan__heading {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    .shaheed-bhawan-carousel .carousel-item {
        aspect-ratio: 16/10;
    }
}

/* ===== ACTIVITIES PAGE – GRID CARDS WITH PHOTOS / CAROUSEL ON TOP ===== */
.activities-grid .activity-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--bg-light-grey);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}
.activities-grid .activity-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
/* Photo / carousel on top of card */
.activities-grid .activity-card__media {
    order: -1;
    padding: 0;
    flex: 0 0 auto;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-light-grey);
}
.activities-grid .activity-card__media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.activities-grid .activity-card__media .activity-carousel {
    border-radius: 0;
    box-shadow: none;
    height: 100%;
}
.activities-grid .activity-card__media .activity-carousel .carousel-inner,
.activities-grid .activity-card__media .activity-carousel .carousel-item {
    height: 100%;
    background: var(--bg-light-grey);
}
.activities-grid .activity-card__media .activity-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.activities-grid .activity-card__header {
    padding: 1rem 1.25rem;
    background: var(--bg-section-bar);
    border-bottom: 3px solid var(--primary-green);
    flex: 0 0 auto;
}
.activities-grid .activity-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 0;
    line-height: 1.35;
}
.activities-grid .activity-card__date {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    margin-bottom: 0;
}
.activities-grid .activity-card__body {
    padding: 1rem 1.25rem 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.activities-grid .activity-card__body p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.activities-grid .activity-card__body p:last-of-type {
    margin-bottom: 0;
}
.activities-grid .activity-card__read-more {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
}
.activities-grid .activity-card__read-more-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-green);
    text-decoration: none;
}
.activities-grid .activity-card__read-more-link:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}

/* Activity detail modal – full text popup */
#activityDetailModal .activity-modal__body {
    font-size: 1rem;
    line-height: 1.65;
}
#activityDetailModal .activity-modal__body .activity-card__body {
    display: block;
    padding: 0;
    -webkit-line-clamp: unset;
    overflow: visible;
}
#activityDetailModal .activity-modal__body p {
    margin-bottom: 1rem;
    font-size: inherit;
}
#activityDetailModal .activity-modal__body p:last-child {
    margin-bottom: 0;
}

/* Activity carousel inside card – compact controls */
.activities-grid .activity-carousel {
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.activities-grid .activity-carousel .carousel-inner {
    border-radius: 0;
}
.activities-grid .activity-carousel .carousel-control-prev,
.activities-grid .activity-carousel .carousel-control-next {
    width: 2.25rem;
    opacity: 0.85;
}
.activities-grid .activity-carousel .carousel-control-prev-icon,
.activities-grid .activity-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 0.35rem;
}
.activities-grid .activity-carousel .carousel-indicators {
    margin-bottom: 0.25rem;
}
.activities-grid .activity-carousel .carousel-indicators button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-green);
}
@media (max-width: 991.98px) {
    .activities-grid .activity-card__title {
        font-size: 1.05rem;
    }
}
@media (max-width: 576px) {
    .activities-grid .activity-card__header,
    .activities-grid .activity-card__body,
    .activities-grid .activity-card__read-more {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .activities-grid .activity-card__title {
        font-size: 1rem;
    }
    .activities-grid .activity-carousel .carousel-item {
        aspect-ratio: 16/10;
    }
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid var(--bg-light-grey);
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 43, 0.2);
}

.form-label {
    font-weight: 500;
    color: var(--text-black);
    margin-bottom: 0.5rem;
}

/* ===== DEFENCE PARTNERS (proud to work with them) ===== */
.defence-partners {
    background: var(--white);
    padding: 3rem 0;
    border-top: 1px solid var(--bg-light-grey);
    text-align: center;
}
.defence-partners__title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 0.35rem;
    width: 100%;
}
.defence-partners__tagline {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    width: 100%;
}
.defence-partners__logos {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    width: 100%;
}
.defence-partners__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 0 0 auto;
    width: 140px;
}
.defence-partners__item .defence-partners__img-wrap {
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.defence-partners__item img {
    max-height: 70px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: grayscale(0.2);
    opacity: 0.9;
    transition: opacity 0.2s ease, filter 0.2s ease;
}
.defence-partners__item img:hover {
    opacity: 1;
    filter: grayscale(0);
}
.defence-partners__item img[src=""],
.defence-partners__item img:not([src]) {
    display: none;
}
.defence-partners__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .defence-partners {
        padding: 2rem 0;
    }
    .defence-partners__title {
        font-size: 1.3rem;
    }
    .defence-partners__logos {
        gap: 1.25rem 1.5rem;
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 0.5rem;
    }
    .defence-partners__item {
        width: 110px;
    }
    .defence-partners__item .defence-partners__img-wrap {
        width: 90px;
        height: 52px;
    }
    .defence-partners__item img {
        max-height: 52px;
        max-width: 90px;
    }
    .defence-partners__name {
        font-size: 0.75rem;
    }
}

/* ===== FOOTER (Australian War Widows style) ===== */
.footer {
    background-color: var(--nav-blue);
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

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

.footer-links li {
    margin-bottom: 0.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}
.footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
}
.footer-brand span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Scroll to top button (Australian style) */
#scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #4a5568;
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}
#scroll-to-top:hover {
    background: #2d3748;
    opacity: 1;
}
#scroll-to-top svg {
    width: 24px;
    height: 24px;
}
#scroll-to-top.hidden {
    display: none;
}

/* ===== MODAL CAROUSEL ===== */
.modal .carousel {
    max-height: 400px;
    background: var(--bg-light-grey);
}
.modal .carousel-inner {
    max-height: 400px;
}
.modal .carousel-item {
    max-height: 400px;
}
.modal .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: var(--bg-off-white);
}
.modal .carousel-control-prev,
.modal .carousel-control-next {
    width: 45px;
    opacity: 0.9;
}
.modal .carousel-control-prev { left: 0; }
.modal .carousel-control-next { right: 0; }

/* ===== UTILITY CLASSES ===== */
.text-primary-green {
    color: var(--primary-green);
}

.text-secondary-blue {
    color: var(--secondary-blue);
}

.bg-primary-green {
    background-color: var(--primary-green);
}

.bg-secondary-blue {
    background-color: var(--secondary-blue);
}

.bg-off-white {
    background-color: var(--bg-off-white);
}

/* Prevent overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}
iframe {
    max-width: 100%;
}

/* Call-to-action and page headers */
.section.bg-secondary-blue {
    background-color: var(--secondary-blue) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Container padding on small screens */
.container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .page-header-banner {
        padding: 2.5rem 0;
    }
    
    .page-header-banner h1 {
        font-size: 1.75rem;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        padding-left: 0;
        padding-right: 1rem;
    }
    
    .timeline-year {
        left: 25px;
        transform: translateX(-50%);
        padding: 0.4rem 1rem;
        font-size: 0.95rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        max-width: calc(100% - 50px);
        margin-top: 3rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.25rem;
        margin-top: 3rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .hero-section {
        padding: 60px 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 1.75rem;
        font-size: 1.5rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .page-header-banner {
        padding: 2rem 0;
    }
    
    .page-header-banner h1 {
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
    
    .card-header {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 14px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .navbar-collapse {
        padding: 0.5rem 0;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
        font-size: 16px;
        min-height: 48px;
    }
    
    .form-label {
        margin-bottom: 0.35rem;
    }
    
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .accordion-body {
        padding: 1.25rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2.5rem;
    }
    
    .footer .row > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        font-size: 0.9rem;
    }
    
    .timeline {
        padding: 1.5rem 0;
    }
    
    .timeline::before {
        left: 20px;
        width: 3px;
    }
    
    .timeline-item {
        padding-left: 0;
        padding-right: 0.5rem;
        margin-bottom: 2.5rem;
    }
    
    .timeline-year {
        left: 20px;
        transform: translateX(-50%);
        padding: 0.4rem 0.9rem;
        font-size: 0.9rem;
        white-space: nowrap;
        min-width: 60px;
        text-align: center;
    }
    
    .timeline-content {
        padding: 1.25rem;
        margin-top: 2.5rem;
        margin-left: 45px !important;
        margin-right: 0 !important;
        max-width: calc(100% - 45px) !important;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .timeline-content .img-fluid {
        margin-top: 0.75rem;
        border: 1px solid var(--bg-light-grey);
    }
    
    .d-flex.gap-3 {
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }
    
    .d-flex.gap-3 .btn {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 38px;
        margin-right: 8px;
    }
    
    .navbar-toggler {
        padding: 0.35rem 0.5rem;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 0.75rem;
    }
    
    .hero-section h1 {
        font-size: 1.45rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 50px;
    }
    
    .page-header-banner {
        padding: 1.5rem 0;
    }
    
    .page-header-banner h1 {
        font-size: 1.35rem;
    }
    
    .card-header h4 {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-body p {
        font-size: 0.95rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 13px;
        min-height: 44px;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer p, .footer a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    .timeline::before {
        left: 18px;
        width: 3px;
    }
    
    .timeline-year {
        left: 18px;
        transform: translateX(-50%);
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
        min-width: 55px;
        text-align: center;
    }
    
    .timeline-content {
        padding: 1rem;
        margin-top: 2rem;
        margin-left: 40px !important;
        max-width: calc(100% - 40px) !important;
    }
    
    .timeline-content h3 {
        font-size: 1.15rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
        padding-left: 0;
        padding-right: 0.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .modal-body, .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.15rem;
    }
    
    /* Modal carousel fits viewport; touch-friendly controls */
    .modal .carousel,
    .modal .carousel-inner,
    .modal .carousel-item {
        max-height: 260px;
    }
    .modal .carousel-item img {
        height: 260px;
    }
    .modal .carousel-control-prev,
    .modal .carousel-control-next {
        width: 48px;
        min-height: 48px;
    }
    
    /* Activities grid cards: readable titles, no overflow */
    .card-title {
        word-wrap: break-word;
        font-size: 1.05rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 34px;
    }
    
    .hero-section h1 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .timeline-content {
        margin-left: 38px !important;
        max-width: calc(100% - 38px) !important;
    }
    
    .timeline-year {
        min-width: 50px;
        font-size: 0.8rem;
    }
}

