:root {
    --bg-color: #eaecf1;
    --surface-color: #e3ecf5;
    --text-color: #0c1a29;
    --text-muted: #0c1a29;
    --primary-color: #283c64;
    --primary-hover: #16233d;
    --accent-blue: #d0e4ef;
    --footer-bg: #dde1e6;
    --card-bg: #eaecf1;
    --insta-color: #9dbcd8;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-color: #ffffff;
    --text-muted: #ffffff;
    --primary-color: #4f6a9e;
    --primary-hover: #6f89bd;
    --accent-blue: #1e3a8a;
    --footer-bg: #1e293b;
    --card-bg: #0f172a;
    --insta-color: #9dbcd8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    padding: 60px 0;
}

h1, h2, h3, h4 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; padding-bottom: 10px; }
h3 { font-size: 1.6rem; margin-top: 30px; }

p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-muted); text-align: center; }

/* ===== HEADER / NAV ===== */
header {
    background: linear-gradient(to right, #d0e4ef, #283c64);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: background 0.3s;
    position: relative;
    z-index: 100;
}

[data-theme="dark"] header {
    background: linear-gradient(to right, #1b2942, #05070c);
}

.logo-banner {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    height: 58px;
    width: auto;
    display: inline-block;
    transition: filter 0.3s;
}

[data-theme="dark"] .logo-icon {
    filter: brightness(0) invert(1);
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li { margin-left: 20px; position: relative; }

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: border-color 0.2s;
}

nav ul li a:hover, nav ul li a.active, nav ul li a:focus, nav ul li a:active {
    border-bottom-color: #ffffff;
}

/* ===== UNIFIED BUTTON STYLE (rounded-pill outline, matches "Join Email List") ===== */
.btn-primary, .btn-nav, .footer-ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    border-style: solid;
    border-width: 2px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-nav {
    color: #ffffff !important;
    border-color: #ffffff;
}

.btn-nav:hover, .btn-nav:focus, .btn-nav:active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.footer-ig-btn {
    color: var(--insta-color) !important;
    border-color: var(--insta-color);
}

.footer-ig-btn:hover {
    background-color: var(--insta-color);
    color: #0c1a29 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== TRYOUTS DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-caret {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 14px 0 8px 0;
    background-color: var(--primary-color);
    border-radius: 8px;
    min-width: 190px;
    flex-direction: column;
    list-style: none;
    z-index: 50;
    animation: fadeInUp 0.15s ease-out;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1b2942;
}

.nav-dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #ffffff;
    border-bottom: none;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: none;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(208, 228, 239, 0.72), rgba(208, 228, 239, 0.82)), url('images/group_pic.jpg') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    animation: fadeIn 1s ease-in;
}
[data-theme="dark"] .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('images/group_pic.jpg') center/cover no-repeat;
}

.hero p { font-size: 1.3rem; max-width: 700px; margin: 0 auto 30px auto; }

.hero-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .coaching-box, .gallery-img, .sponsor-logo, .blog-photo {
    animation: fadeInUp 0.6s ease-out;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
}

.gallery-img:hover { transform: scale(1.02); }

.sponsor-logo {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s;
}

.sponsor-logo:hover { transform: scale(1.03); }

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 25px;
    text-align: center;
}

.card .date { font-size: 0.9rem; color: var(--text-muted); opacity: 0.8; margin-bottom: 10px; }

/* ===== BLOG ===== */
.blog-section-heading {
    text-align: left;
    margin-top: 50px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    text-align: left;
    padding: 20px 0;
}

.blog-card h4 { text-align: left; margin-bottom: 6px; }
.blog-card .date { font-size: 0.9rem; opacity: 0.8; margin-bottom: 10px; text-align: left; }
.blog-card p { text-align: left; }

.blog-intro {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.blog-post-header {
    text-align: left;
    margin-bottom: 10px;
}

.blog-post-date {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 30px;
    text-align: left;
}

.blog-post-body p {
    text-align: left;
}

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 20px 0 40px;
}

.blog-photo {
    margin: 0;
}

.blog-photo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.blog-photo figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.85;
    margin-top: 8px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.back-link:hover { border-bottom-color: var(--primary-color); }

/* ===== HOME PAGE FEATURE ROWS ===== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-img { order: 1; }

.feature-text { text-align: left; }
.feature-text h3 { text-align: left; margin-top: 0; }
.feature-text p { text-align: left; }

.feature-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.feature-link:hover { border-bottom-color: var(--primary-color); }

.feature-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .feature-row, .feature-row.reverse {
        grid-template-columns: 1fr;
    }
    .feature-row.reverse .feature-text,
    .feature-row.reverse .feature-img,
    .feature-row .feature-text,
    .feature-row .feature-img {
        order: initial;
    }
}

.coaching-section {
    margin-bottom: 50px;
}

.coaching-box {
    padding: 25px;
    margin-top: 15px;
    text-align: center;
}

.coaching-box p { text-align: left; }
.coaching-box ul, .coaching-box ol { text-align: left; margin: 0 0 20px 20px; }
.coaching-box a { color: var(--primary-color); }

.section-heading-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.section-heading-row h3 {
    margin-top: 0;
    margin-bottom: 0;
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 25px;
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.footer-social {
    margin-bottom: 15px;
}

.footer-info {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-info p {
    margin-bottom: 6px;
    text-align: center;
}

.footer-copyright {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.85;
}