/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-red: #b3132b;
    --brand-yellow: #f2b01e;
    --brand-navy: #e91111;
    --brand-navy-2: #f2b01e;
    --brand-gradient: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-yellow) 100%);
    --brand-gradient-diag: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-yellow) 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
header {
    background: white;
    color: var(--brand-red);
    padding: 0.55rem 0;
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}

header .container.header-container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 18px;
}

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

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

.logo-icon {
    background-color: rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title {
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--brand-red);
    font-size: 1.8rem;
    cursor: pointer;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 0.85rem;
}

.navbar a {
    background: var(--brand-red);
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.65rem 1.05rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
    border-radius: 999px;
    transition: color 0.3s;
}

.navbar a:hover {
    filter: brightness(0.95);
}

/* Navbar dropdown (About Us) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    background: var(--brand-red);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.65rem 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.15;
    border-radius: 999px;
    transition: color 0.3s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    filter: brightness(0.95);
}

.navbar .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 260px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    padding: 0.5rem 0;
    z-index: 1100;
}

.navbar .nav-dropdown.open > .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--brand-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(242, 176, 30, 0.12);
}

/* Hero Section */
/* Hero Slider */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.8);
    color: white;
    padding: 2rem;
    text-align: center;
}

.hero-slide h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Simple centered content pages (About dropdown pages) */
.info-hero {
    position: relative;
    padding: 5.5rem 0 3.25rem;
    background:
        radial-gradient(1200px 500px at 20% 20%, rgba(242, 176, 30, 0.25) 0%, rgba(242, 176, 30, 0.00) 55%),
        radial-gradient(900px 400px at 80% 10%, rgba(179, 19, 43, 0.22) 0%, rgba(179, 19, 43, 0.00) 60%),
        linear-gradient(180deg, rgba(179, 19, 43, 0.12) 0%, rgba(242, 176, 30, 0.08) 100%);
    overflow: hidden;
}

.info-hero .container {
    text-align: center;
}

.info-hero h1 {
    color: var(--brand-navy);
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.info-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: #555;
    font-size: 1.15rem;
}

.info-content {
    padding: 2.5rem 0 4rem;
}

.info-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 14px;
    padding: 2.75rem 2.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
    text-align: left;
}

.info-card h2 {
    color: var(--brand-navy);
    font-size: 1.75rem;
    margin: 2.25rem 0 0.75rem;
    letter-spacing: -0.015em;
}

.info-card h2:first-child {
    margin-top: 0;
}

.info-card h3 {
    color: var(--brand-navy);
    font-size: 1.25rem;
    margin: 1.75rem 0 0.5rem;
}

.info-card p {
    font-size: 1.08rem;
    color: #333;
    margin-bottom: 0.9rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem auto;
    max-width: 780px;
    text-align: left;
}

.info-card li {
    position: relative;
    padding: 0.6rem 0;
    padding-left: 1.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.info-card li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand-gradient);
    box-shadow: 0 8px 18px rgba(179, 19, 43, 0.18);
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(180deg, rgba(179, 19, 43, 0.08) 0%, rgba(242, 176, 30, 0.10) 100%);
    border-left: 5px solid rgba(179, 19, 43, 0.65);
    border-radius: 12px;
    color: #2b2b2b;
}

.hero-slide p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-control.active {
    background: white;
}

/* Posts Grid */
.featured-posts {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    color: #1a365d;
    font-size: 2rem;
    margin: 0;
}

.donation-btn {
    background: var(--brand-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donation-btn:hover { filter: brightness(0.95); }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: rgba(242, 176, 30, 0.18);
    color: var(--brand-red);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

.post-summary {
    color: inherit;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more {
    background: var(--brand-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.read-more:hover { filter: brightness(0.95); }

.share-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-link:hover {
    color: var(--brand-navy);
}

/* Footer */
footer {
    background: var(--brand-gradient-diag);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo .logo-icon {
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-address h4,
.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-address p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Admin Login Page */
.admin-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--brand-gradient-diag);
}

.login-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #1a365d;
    margin: 1rem 0 0.5rem;
}

.login-header h2 {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-red);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    width: 100%;
}

.btn-primary:hover { filter: brightness(0.95); }

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    color: #1a365d;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Dashboard Styles */
.dashboard-header {
    background: var(--brand-gradient-diag);
    color: white;
    padding: 1rem 0;
}

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

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

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: 250px;
    background-color: var(--brand-navy);
    color: white;
    padding: 2rem 0;
}

.dashboard-sidebar nav ul {
    list-style: none;
}

.dashboard-sidebar nav li {
    margin-bottom: 0.5rem;
}

.dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav li.active a {
    background-color: rgba(255,255,255,0.1);
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    background-color: #f5f7fa;
}

.dashboard-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-section h2 {
    color: #1a365d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.post-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.post-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.posts-list {
    display: grid;
    gap: 1.5rem;
}

.admin-post-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #1a365d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-post-info h3 {
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.admin-post-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-edit {
    background-color: #17a2b8;
    color: white;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

/* Article Page Image Styles */
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    display: block;
    
    /* Limit maximum size */
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* For responsive design */
@media (max-width: 768px) {
    .article-image {
        max-height: 300px;
    }
}

/* Container for article images */
.article-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin: 2rem 0;
    background-color: #f5f7fa;
}

.article-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

/* Article body image styling */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    
    /* Set maximum dimensions */
    max-height: 400px;
    object-fit: contain;
}

/* If images are in the content itself */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
    
    /* Control the size */
    max-height: 400px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Small screens */
@media (max-width: 768px) {
    .article-body img,
    .article-content img {
        max-height: 250px;
    }
}
/* Article Page */
.article-container {
    padding: 3rem 0;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: white;
    transition: opacity 0.3s;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.facebook {
    background-color: #1877F2;
}

.share-btn.twitter {
    background-color: #1DA1F2;
}

.share-btn.copy-link {
    background-color: #6c757d;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    opacity: 0.9;
    color: white;
}

/* About Page */
.about-hero {
    background-color: #1a365d;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #1a365d;
    width: 0%;
    transition: width 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--brand-gradient-diag);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1000;
    }
    
    .navbar.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 0;
    }
    
    .navbar li {
        width: 100%;
    }
    
    .navbar a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Override desktop selector `.navbar .nav-dropdown-menu` */
    .navbar .nav-dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        min-width: 100%;
        background: rgba(255,255,255,0.95);
        box-shadow: none;
        margin: 0.25rem 0 0.75rem;
        border-radius: 10px;
        overflow: hidden;
    }

    .navbar .nav-dropdown-menu a {
        color: var(--brand-navy);
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .navbar .nav-dropdown-menu a:hover {
        background: rgba(242, 176, 30, 0.12);
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        padding: 0;
    }
    
    .dashboard-sidebar nav ul {
        display: flex;
        overflow-x: auto;
    }
    
    .dashboard-sidebar nav li {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .dashboard-sidebar nav a {
        padding: 1rem;
        white-space: nowrap;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .logo-section h1 {
        font-size: 1.2rem;
    }
}

/* ====== LOGO IMAGE STYLES ====== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.logo-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Update logo-icon to work with images */
.logo-icon {
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden; /* Ensure image stays within bounds */
    padding: 6px; /* Add some padding for the image */
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header logo - slightly larger */
header .logo-icon {
    width: clamp(220px, 42vw, 460px);
    height: 66px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Join Page Styles */
.join-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(179, 19, 43, 0.82), rgba(26, 54, 93, 0.82)),
        url('images/hero1.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5.25rem 0 4.5rem;
    text-align: center;
    overflow: hidden;
}

.join-hero:before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 30% 30%, rgba(242, 176, 30, 0.55) 0%, rgba(242, 176, 30, 0) 60%);
    transform: rotate(12deg);
    pointer-events: none;
}

.join-hero h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.join-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
}

.join-content {
    padding: 4rem 0;
    background:
        radial-gradient(1200px 600px at 20% 0%, rgba(242, 176, 30, 0.10) 0%, rgba(242, 176, 30, 0) 55%),
        linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
}

.join-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.join-intro h2 {
    color: #1a365d;
    margin-bottom: 1.5rem;
}

.join-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.join-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.join-form-container h2 {
    text-align: center;
    color: #1a365d;
    margin-bottom: 2rem;
}

.join-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.join-form .form-row .form-group {
    flex: 1;
}

.join-form .form-group {
    margin-bottom: 1.5rem;
}

.join-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.join-form input,
.join-form select,
.join-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.05rem;
    transition: border-color 0.3s;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
    outline: none;
    border-color: #1a365d;
}

.join-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-actions .message {
    margin-top: 1rem;
}

/* Responsive Design for Join Form */
@media (max-width: 768px) {
    .join-hero {
        padding: 4.25rem 0 3.75rem;
    }

    .join-hero h1 {
        font-size: 2.35rem;
    }

    .join-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Footer logo */
footer .logo-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Admin login logo */
.admin-page .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

/* Dashboard logo */
.dashboard-header .logo-icon {
    width: 40px;
    height: 40px;
}

/* Logo hover effect */
.logo-icon:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Logo for social sharing meta tags */
meta[property="og:image"] {
    content: url('../images/logo.jpg');
}

/* ====== FAVICON FALLBACK STYLES ====== */

/* If logo.png is not found, show fallback */
.logo-icon:not(:has(img[src])) {
    background-color: #2c5282;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon:not(:has(img[src])):before {
    content: "\f207"; /* Bus icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 24px;
    color: white;
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header .logo-icon {
        width: min(360px, 78vw);
        height: 56px;
    }
    
    .logo-section h1 {
        font-size: 1.2rem;
    }
    
    .admin-page .logo-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    header .logo-icon {
        width: min(320px, 86vw);
        height: 52px;
    }
    
    .logo-section h1 {
        font-size: 1rem;
    }
}
