/* ============================================
   AREPP - Association of Religion Practitioners Professionals
   Modern Professional CSS
   Brand Colors: Blue (#1e3a5f) and Gold (#ffd700)
   ============================================ */

:root {
    --primary-blue: #1e3a5f;
    --primary-dark: #0f2c48;
    --primary-light: #2c5282;
    --accent-gold: #ffd700;
    --accent-dark: #e6c200;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: #ffffff !important;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white) !important;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Header Styles
   ============================================ */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.transparent-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: var(--transition);
}

.transparent-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.7rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo .tagline {
    font-size: 0.7rem;
    opacity: 0.8;
    margin: 0;
}

.transparent-header .logo h1,
.transparent-header .tagline {
    color: white;
}

.main-header .logo h1 {
    color: var(--primary-blue);
}

.main-header .tagline {
    color: var(--text-light);
}

/* Navigation – desktop */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
}

.transparent-header .nav-menu li a {
    color: white;
}

.transparent-header .nav-menu li a:hover,
.transparent-header .nav-menu li a.active {
    color: var(--accent-gold);
}

.main-header .nav-menu li a {
    color: var(--text-dark);
}

.main-header .nav-menu li a:hover,
.main-header .nav-menu li a.active {
    color: var(--accent-gold);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* Join Us Button */
.join-nav-btn {
    background: var(--accent-gold) !important;
    color: var(--primary-blue) !important;
    padding: 8px 24px !important;
    border-radius: 40px;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.join-nav-btn:hover {
    background: var(--primary-blue) !important;
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Search Form */
.search-form {
    display: flex;
    margin-left: 10px;
}

.search-form input {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 40px 0 0 40px;
    outline: none;
    font-size: 0.85rem;
    width: 140px;
    background: white;
    color: #1e293b;
}

.search-form input::placeholder {
    color: #94a3b8;
}

.search-form input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.search-form button {
    padding: 8px 18px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.search-form button:hover {
    background: white;
    color: var(--primary-blue);
}

.transparent-header .search-form input {
    background: white;
    color: #1e293b;
    border-color: #e2e8f0;
}

.transparent-header .search-form input::placeholder {
    color: #94a3b8;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Slider (original – kept for reference)
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background: var(--primary-blue);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.slide.active .slide-image {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 85%;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    opacity: 0.95;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-nav:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev { left: 30px; }
.slider-nav.next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent-gold);
    width: 28px;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 12px 36px;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Statistics Section
   ============================================ */
.stats {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Section Headers
   ============================================ */
.preamble, .identity, .values, .latest-news {
    padding: 5rem 0;
}

.preamble {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.identity {
    background: white;
}

.values {
    background: var(--bg-light);
}

.latest-news {
    background: white;
}

.preamble h3, .identity h3, .values h3, .latest-news h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
}

.preamble h3:after, .identity h3:after, .values h3:after, .latest-news h3:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 15px auto 0;
    border-radius: 3px;
}

.preamble-text {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
}

.identity-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    text-align: center;
}

.identity-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.value-item {
    background: white;
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.value-item i {
    color: var(--accent-gold);
    margin-right: 8px;
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.news-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-section h4, .events-section h4 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
}

.news-item, .event-item {
    padding: 1.2rem;
    background: var(--bg-light);
    margin-bottom: 1rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-item:hover, .event-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.news-item h5 a, .event-item h5 a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
}

.news-item h5 a:hover, .event-item h5 a:hover {
    color: var(--accent-gold);
}

.meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 0.8rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: white;
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h4 {
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-grid p, .footer-grid li {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-paybill {
    text-align: center;
}

.paybill-image {
    max-width: 160px;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 0;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.contact-form button {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Messages */
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #10b981;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #ef4444;
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 20px;
    }
    .hero-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .vision-mission {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 25px 40px;
        gap: 20px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li a {
        font-size: 1rem;
        display: block;
        text-align: left;
        color: #1e3a5f !important;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    .nav-menu li a:hover {
        color: #ffd700 !important;
        padding-left: 10px;
    }
    .join-nav-btn {
        display: inline-block;
        text-align: center !important;
        margin-top: 10px;
    }
    .search-form {
        width: 100%;
        margin: 15px 0;
        padding: 5px;
    }
    .search-form input {
        width: 100%;
        padding: 10px 12px;
    }
    .search-form button {
        padding: 10px 20px;
    }
    .hero {
        height: 450px;
        min-height: 450px;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 0.85rem;
    }
    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .slider-nav.prev { left: 15px; }
    .slider-nav.next { right: 15px; }
    .stat-number {
        font-size: 2rem;
    }
    .news-events-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        height: 380px;
        min-height: 380px;
    }
    .hero-content h2 {
        font-size: 1.2rem;
    }
    .hero-content p {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }
    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    .logo img {
        height: 40px;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .value-item {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

/* Hero Slider Mobile Fix – no cropping */
@media (max-width: 768px) {
    .hero {
        height: 450px !important;
        min-height: 450px !important;
        max-height: 450px !important;
    }
    .slide-bg {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: var(--primary-blue);
    }
    .slide-overlay {
        background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 100%) !important;
    }
    .hero-content {
        width: 90% !important;
        padding: 10px !important;
    }
    .hero-content h2 {
        font-size: 1.3rem !important;
        margin-bottom: 8px !important;
    }
    .hero-content p {
        font-size: 0.7rem !important;
        margin-bottom: 12px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-content .btn {
        padding: 6px 16px !important;
        font-size: 0.7rem !important;
    }
    .slider-nav {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    .slider-nav.prev {
        left: 8px !important;
    }
    .slider-nav.next {
        right: 8px !important;
    }
    .slider-dots {
        bottom: 10px !important;
        gap: 8px !important;
    }
    .dot {
        width: 8px !important;
        height: 8px !important;
    }
    .dot.active {
        width: 20px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }
    .hero-content h2 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }
    .hero-content p {
        font-size: 0.6rem !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2;
    }
    .hero-content .btn {
        padding: 4px 12px !important;
        font-size: 0.6rem !important;
    }
}

@media (max-width: 360px) {
    .hero {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
    .hero-content h2 {
        font-size: 0.95rem !important;
    }
    .hero-content p {
        font-size: 0.55rem !important;
        margin-bottom: 6px !important;
    }
    .hero-content .btn {
        padding: 3px 10px !important;
        font-size: 0.55rem !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-blue { color: var(--primary-blue); }
.bg-light { background: var(--bg-light); }
.bg-white { background: white; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* About Page Styles */
.about-page {
    padding: 60px 0;
    background: #f5f7fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.about-section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.about-section p {
    line-height: 1.8;
    color: var(--text-dark);
}

.mandate-list {
    list-style: none;
    padding: 0;
}

.mandate-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.mandate-list li i {
    color: var(--accent-gold);
    width: 25px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.sidebar-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sidebar-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-sidebar {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-sidebar:hover {
    background: var(--primary-light);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-gold:hover {
    background: var(--primary-blue);
    color: white;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Text Fix for Index and About Pages */
.preamble-text,
.preamble-text p,
.card p,
.value-item,
.value-item i,
.news-item p,
.event-item p,
.news-item .meta,
.event-item .meta,
.about-section p,
.about-section li,
.sidebar-card p {
    color: var(--text-dark) !important;
}

.value-item i,
.mandate-list li i,
.news-item h5 a,
.event-item h5 a {
    color: var(--accent-gold);
}

.news-item h5 a:hover,
.event-item h5 a:hover {
    color: var(--accent-gold);
}

/* Modern Upgrades */
.card, .post-card, .member-card, .sidebar-widget, .about-section, .sidebar-card, .result-item {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.card:hover, .post-card:hover, .member-card:hover, .result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

.section-header h3,
.preamble h3, .identity h3, .values h3, .latest-news h3,
.page-header h1 {
    position: relative;
    display: inline-block;
}

.section-header h3:after,
.preamble h3:after, .identity h3:after, .values h3:after, .latest-news h3:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), #e6c200);
    margin: 15px auto 0;
    border-radius: 4px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-sidebar, .btn-gold, .join-nav-btn {
    border-radius: 40px;
    font-weight: 600;
    padding: 12px 28px;
    transition: all 0.3s;
}

.btn-sidebar:hover, .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,215,0,0.2);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.nav-menu li a.active::after {
    bottom: -8px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 3px;
    transition: width 0.3s;
}

.search-form {
    border-radius: 60px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-form input {
    background: white;
    color: #1e293b;
    font-weight: 500;
}

.main-header.scrolled {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    section {
        padding: 3rem 0;
    }
}

/* Centering fixes */
.preamble .preamble-text,
.identity-box,
.vision-mission .card,
.values-grid .value-item {
    text-align: center;
}

.values-grid .value-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}