/* Reset & Base Styles */
:root {
    --primary-color: #c41230; /* Fling Red */
    --primary-dark: #a00f28;
    --primary-light: #ffebee;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --section-bg: #f9f9f9;
    --header-height: 70px;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

h1 { font-size: 3rem; color: #fff; }
h2 { 
    font-size: 2.2rem; 
    color: #000; 
    text-transform: capitalize;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h2.underlined::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

h3 { font-size: 1.5rem; color: #000; }

p { margin-bottom: 1rem; color: var(--text-muted); }

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 18, 48, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 18, 48, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
header {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo img {
    height: 40px;
    border-radius: 5px;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

nav a:hover, nav a.active {
    color: #fff;
    text-decoration: underline;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    color: white;
}

.subpage-hero {
    height: 40vh;
    min-height: 300px;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero.jpg');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Darker overlay for subpages */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Homepage Hero Modifier */
.hero-home {
    min-height: 85vh;
    height: auto;
    background: radial-gradient(circle, #c41230 10%, #a00f28 90%); /* Fling Red Gradient */
    justify-content: space-between;
    text-align: left;
    overflow: hidden;
}

.hero-home::before {
    background: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-home .hero-content {
    flex: 0 0 50%;
    max-width: 600px;
    margin-left: 5%;
    margin-right: 0;
    text-align: left;
    padding-right: 20px;
}

.hero-image-container {
    flex: 0 0 45%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.hero-image-container img {
    max-width: 120%;
    height: auto;
    object-fit: contain;
    transform: rotate(-5deg) translateX(20px);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-home h1 {
    font-size: 4.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center buttons by default */
}

.hero-home .hero-btns {
    justify-content: flex-start; /* Left align on home */
}

/* Mobile Responsive Override */
@media (max-width: 768px) {
    .hero, .hero-home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        height: auto;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content, .hero-home .hero-content {
        flex: auto;
        max-width: 100%;
        margin: 0;
        padding: 0 20px;
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-image-container {
        flex: auto;
        width: 100%;
        justify-content: center;
        overflow: hidden;
    }

    .hero-image-container img {
        max-width: 90%;
        transform: none;
        margin-bottom: -20px;
    }
    
    .hero h1, .hero-home h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns, .hero-home .hero-btns {
        justify-content: center;
    }
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

/* Featured Members */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.member-card {
    background-color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 15px;
    text-align: center;
}

.member-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.online-status {
    width: 10px;
    height: 10px;
    background-color: #4caf50;
    border-radius: 50%;
    display: inline-block;
}

.member-details {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features / Browse Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    fill: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Feature Rows (Alternating Layout) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000;
}

.feature-text h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 15px;
}

.feature-text p {
    font-size: 1.1rem;
    color: #555;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Testimonials / Success Stories */
.testimonial-card {
    background-color: var(--primary-light);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: var(--primary-light) transparent;
}

/* Footer */
footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #888;
}

.footer-col a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        background-color: rgba(196, 18, 48, 0.95);
        padding: 10px 0;
    }

    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #fff;
        transition: 0.3s;
        padding: 20px;
        overflow-y: auto;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    nav a {
        color: #333;
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-row {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }
    
    .feature-text h2::after {
        margin: 15px auto;
    }
}

/* Content Block (SEO) */
.content-block {
    margin-bottom: 30px;
}

.content-block h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

/* Category Card */
.category-card {
    display: block;
    background: #fff;
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Dark Content Section */
.dark-section {
    background-color: #1a1a1a;
    color: #fff;
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section h5,
.dark-section h6 {
    color: var(--primary-color) !important;
}

.dark-section p, 
.dark-section li,
.dark-section span,
.dark-section ul {
    color: #fff !important;
}
