/* Waitara Volunteer Fire Brigade - Modern Professional Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fire and Emergency NZ Colors */
    --fenz-red: #D52B1E;
    --fenz-red-dark: #A01A0F;
    --fenz-red-light: #E63946;
    --fenz-gold: #FFC72C;
    --fenz-gold-dark: #E6A500;
    --fenz-navy: #003366;
    --fenz-navy-dark: #001F3F;
    
    /* Clean Color Palette */
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-accent: #F1F3F5;
    --bg-dark: #212529;
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6C757D;
    --text-light: #FFFFFF;
    
    --border-light: #E9ECEF;
    --border-medium: #DEE2E6;
    --border-dark: #ADB5BD;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background: var(--fenz-navy);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    padding: 0;
    width: 100%;
}

.navbar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.nav-brand {
    width: 100%;
    text-align: center;
    padding: 1rem 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
    margin: 0;
}

.nav-brand h1::after {
    content: ' | Fire and Emergency NZ';
    font-size: 0.65em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.5rem;
}

.nav-menu-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.75rem 24px;
    background: var(--fenz-navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-toggle {
    display: none !important;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle:hover {
    opacity: 0.8;
}

.nav-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    padding: 0;
    margin: 0 0.5rem;
    pointer-events: none;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    opacity: 0.9;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fenz-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--text-light);
    opacity: 1;
}

.nav-cta {
    background: var(--fenz-red);
    color: var(--text-light) !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    opacity: 1 !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--fenz-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-cta:hover {
    background: var(--fenz-red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-light) !important;
}

/* Hero Section */
.hero {
    position: relative;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(213, 43, 30, 0.85) 0%, rgba(160, 26, 15, 0.85) 100%);
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-hero.btn-primary {
    background: var(--fenz-gold);
    color: var(--text-primary);
}

.btn-hero.btn-primary:hover {
    background: var(--fenz-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--text-light);
    backdrop-filter: blur(10px);
}

.btn-hero.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Page Header */
.page-header {
    position: relative;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.page-header-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.page-header-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.page-header-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(213, 43, 30, 0.85) 0%, rgba(160, 26, 15, 0.85) 100%);
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
}

.honours-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2C3E50 100%);
}

/* Content Sections */
.content-section {
    background: var(--bg-secondary);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.content-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.content-section h2 {
    color: var(--fenz-red);
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    border-bottom: 3px solid var(--fenz-gold);
    padding-bottom: 0.75rem;
}

.content-section h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* Mission Section */
.mission-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    border: 2px solid var(--fenz-red);
}

.mission-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.mission-text h2 {
    margin-top: 0;
}

.mission-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-light);
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenz-red);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--fenz-red);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenz-gold);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: var(--fenz-red);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenz-red);
}

.service-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3.5rem;
    font-weight: 700;
}

.service-content {
    padding: 2rem;
}

.service-card h3 {
    color: var(--fenz-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Values List */
.values-header-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.values-header-wrapper h2 {
    flex: 1;
    margin: 0;
}

.values-image {
    width: 400px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.values-image img {
    width: 100%;
    height: auto;
    display: block;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 4px solid var(--fenz-red);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--fenz-gold);
}

.value-item h3 {
    color: var(--fenz-red);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenz-red);
}

.news-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 700;
}

.news-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    color: var(--fenz-red);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 0;
}

/* Members Page */
.members-filters {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--fenz-red);
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.1);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.member-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenz-red);
}

.member-photo {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.member-photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="20" fill="rgba(255,255,255,0.3)"/><path d="M20 85 Q20 65 50 65 Q80 65 80 85" fill="rgba(255,255,255,0.3)"/></svg>') center/60% no-repeat;
    opacity: 0.5;
}

.member-photo-placeholder span {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.member-info {
    padding: 2rem;
}

.member-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.member-rank {
    color: var(--fenz-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-position {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.member-join-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.view-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-medium);
    transition: var(--transition);
}

.view-btn:hover {
    background: var(--bg-accent);
    border-color: var(--fenz-red);
    color: var(--fenz-red);
}

.view-btn.active {
    background: var(--fenz-red);
    color: var(--text-light);
    border-color: var(--fenz-red);
}

/* Members Table View */
.members-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    font-size: 0.95rem;
}

.members-table thead {
    background: var(--bg-accent);
    border-bottom: 2px solid var(--fenz-red);
}

.members-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.members-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.members-table tbody tr:hover {
    background: var(--bg-accent);
}

.members-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-header-row {
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
}

.rank-header {
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rank-header-row .rank-header {
    color: #FFFFFF !important;
}

.rank-section-header {
    grid-column: 1 / -1;
    margin: 2rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--fenz-red);
}

.rank-section-header h3 {
    color: var(--fenz-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Member Category Sections */
.member-category-section {
    margin-bottom: 3rem;
}

.member-category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 4px solid;
    color: var(--text-primary);
}

.operational-header {
    border-bottom-color: var(--fenz-red);
    color: var(--fenz-red);
}

.support-header {
    border-bottom-color: var(--fenz-gold);
    color: var(--fenz-gold);
}

.brigade-header {
    border-bottom-color: var(--text-secondary);
    color: var(--text-secondary);
}

.member-name {
    font-weight: 600;
    color: var(--text-primary);
}

.member-rank-cell {
    min-width: 150px;
}

.rank-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-accent);
    color: var(--fenz-red);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--border-medium);
}

.text-muted {
    color: var(--text-muted);
    font-style: italic;
}

/* Honours Page */
.honours-section {
    margin-bottom: 3rem;
}

.honour-type-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}

.honour-type-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--fenz-red);
}

.honour-icon {
    font-size: 2.5rem;
}

.honour-type-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.honours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.honour-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.honour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenz-gold);
}

.honour-photo {
    width: 100%;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    position: relative;
}

.honour-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.honour-card:hover .honour-photo img {
    transform: scale(1.1);
}

.honour-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2C3E50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 700;
}

.honour-content {
    padding: 2rem;
}

.honour-content h3 {
    color: var(--fenz-red);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.honour-title {
    color: var(--fenz-gold);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.honour-year {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.honour-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Honours Sections */
.honours-section-wrapper {
    margin-bottom: 4rem;
}

.honours-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fenz-red);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--fenz-gold);
}

/* Honours Tabs */
.honours-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0;
}

.honour-tab {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-bottom: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px 8px 0 0;
    position: relative;
    bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.honour-tab:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--fenz-gold);
}

.honour-tab.active {
    background: var(--bg-secondary);
    color: var(--fenz-red);
    border-color: var(--fenz-red);
    border-bottom-color: var(--bg-secondary);
    z-index: 1;
}

.honour-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-secondary);
}

.tab-count {
    background: var(--bg-accent);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.honour-tab.active .tab-count {
    background: var(--fenz-red);
    color: var(--text-light);
}

.honour-tab-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 0 10px 10px 10px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.honour-category-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

/* Honours Table View */
.honours-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.honours-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    font-size: 0.95rem;
}

.honours-table thead {
    background: var(--bg-accent);
    border-bottom: 2px solid var(--fenz-gold);
}

.honours-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.honours-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: top;
}

.honours-table tbody tr:hover {
    background: var(--bg-accent);
}

.honours-table tbody tr:last-child td {
    border-bottom: none;
}

.honour-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 180px;
}

.honour-year-cell {
    min-width: 140px;
}

.year-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--fenz-gold);
    color: var(--text-primary);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
}

.honour-description-cell {
    max-width: 400px;
    line-height: 1.6;
}

/* Join Page */
.join-intro {
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--fenz-gold);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

.benefit-card h3 {
    color: var(--fenz-red);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.requirements-list {
    list-style: none;
    margin-top: 2rem;
}

.requirements-list li {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--fenz-red);
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.requirements-list li:hover {
    background: var(--bg-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--fenz-gold);
}

.requirements-list li::before {
    content: '✓';
    color: var(--fenz-gold);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.expectations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.expectation-item {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 4px solid var(--fenz-red);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.expectation-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--fenz-gold);
}

.expectation-item h3 {
    color: var(--fenz-red);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.expectation-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.join-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--fenz-red);
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.contact-info-box h3 {
    color: var(--fenz-red);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.contact-info-box a {
    color: var(--fenz-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-info-box a:hover {
    text-decoration: underline;
    color: var(--fenz-red-dark);
}

.contact-details {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-details p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.contact-details a {
    color: var(--fenz-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--fenz-red-dark);
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.cta-section h2 {
    color: var(--text-light);
    border-bottom: 3px solid var(--fenz-gold);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--text-light);
}

.cta-inline {
    text-align: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--fenz-red);
    color: var(--text-light);
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--fenz-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-filter {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--fenz-red);
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-left-color: #28A745;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border-left-color: #DC3545;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--fenz-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--fenz-gold);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-section p {
    margin: 0.75rem 0;
    opacity: 0.9;
    line-height: 1.8;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
    font-weight: 400;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--fenz-gold);
    padding-left: 4px;
}

footer a {
    color: var(--fenz-gold);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    text-decoration: underline;
    color: var(--fenz-gold-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.85;
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fenz-red) 0%, var(--fenz-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar .container {
        padding: 0;
        gap: 0;
        position: relative;
    }
    
    .nav-brand {
        padding: 1rem 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-brand h1 {
        font-size: 1.125rem;
    }
    
    .nav-brand h1::after {
        display: block;
        font-size: 0.6em;
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .nav-toggle {
        display: block !important;
    }
    
    .nav-brand {
        justify-content: center;
        position: relative;
    }
    
    .nav-menu-wrapper {
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background: var(--fenz-navy-dark);
    }
    
    .nav-menu-wrapper.active {
        max-height: 1000px;
        padding: 0.75rem 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.875rem 16px;
        font-size: 0.9375rem;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-separator {
        display: none;
    }
    
    .nav-cta {
        padding: 0.875rem 16px !important;
        font-size: 0.9375rem !important;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .hero-image img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .hero-content {
        padding: 3rem 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-header-image {
        height: 250px;
    }
    
    .page-header-image img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Image scaling fixes - Override inline styles */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .member-photo img,
    .service-image img,
    .news-image img,
    .honour-photo img,
    .hero-image img,
    .page-header-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    
    /* Vehicle and rank images - override inline styles */
    .vehicle-image img,
    .rank-image img,
    .vehicle-card img,
    .rank-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    
    /* Fix image containers to allow proper scaling */
    .vehicle-image,
    .member-photo,
    .service-image,
    .hero-image,
    .page-header-image {
        height: auto !important;
        max-height: 300px;
    }
    
    .hero-image {
        max-height: 350px;
    }
    
    .page-header-image {
        max-height: 250px;
    }
    
    .page-header-content {
        padding: 3rem 1.5rem;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .mission-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .values-header-wrapper {
        flex-direction: column;
    }
    
    .values-image {
        width: 100%;
        max-width: 400px;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.875rem;
    }
    
    .members-grid,
    .honours-grid,
    .news-grid,
    .features-grid,
    .benefits-grid,
    .values-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .members-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
    
    .honours-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .honour-tab {
        flex: 1 1 auto;
        min-width: calc(50% - 0.25rem);
        border: 2px solid var(--border-light);
        border-radius: 6px;
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .honour-tab.active {
        border-color: var(--fenz-red);
        background: var(--fenz-red);
        color: var(--text-light);
    }
    
    .honour-tab.active::after {
        display: none;
    }
    
    .honour-tab-content {
        border-radius: 10px;
        padding: 1.5rem;
    }
    
    .honours-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
    
    .members-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
    
    .members-table,
    .honours-table {
        font-size: 0.875rem;
        min-width: 600px;
    }
    
    .members-table th,
    .members-table td,
    .honours-table th,
    .honours-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-brand {
        padding: 0.75rem 12px;
    }
    
    .nav-brand h1 {
        font-size: 1rem;
    }
    
    .nav-menu-wrapper {
        padding: 0.5rem 12px;
    }
    
    .nav-menu a {
        padding: 0.75rem 12px;
        font-size: 0.875rem;
    }
    
    .nav-cta {
        padding: 0.75rem 12px !important;
        font-size: 0.875rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-image {
        height: 280px;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-header-image {
        height: 180px;
    }
    
    .page-header-content {
        padding: 2rem 1rem;
    }
    
    .page-header-content h1 {
        font-size: 1.75rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 1.25rem 1rem;
        margin: 1.5rem 0;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
    
    .members-table,
    .honours-table {
        font-size: 0.8125rem;
        min-width: 500px;
    }
    
    .honours-table-container,
    .members-table-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .honour-tab {
        min-width: 100%;
        font-size: 0.8125rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
}
