:root {
    --primary-color: rgb(29, 66, 138);
    --secondary-color: #1a1a1a;
    --accent-color: rgb(253, 185, 39);
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
}

* {
    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-dark);
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background-color: rgb(29, 66, 138);
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
}

.sidebar-brand img {
    height: 45px;
    margin-right: 10px;
}

.sidebar-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(253, 185, 39, 0.2);
    color: rgb(253, 185, 39);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: rgb(29, 66, 138);
    border: none;
    border-radius: 8px;
    color: rgb(253, 185, 39);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgb(20, 46, 96);
    color: #fff;
}

/* Adjust toggle button position when sidebar is open on desktop */
@media (min-width: 769px) {
    .sidebar-toggle {
        left: 280px;
        transition: left 0.3s ease;
    }

    body.sidebar-collapsed .sidebar-toggle {
        left: 20px;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Sidebar collapsed state (desktop) */
@media (min-width: 769px) {
    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Hero Section */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

/* Dark Overlay on Video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-primary-custom:hover {
    background-color: rgb(253, 185, 39);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 185, 39, 0.4);
    color: #fff;
}

.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

/* Card Styling */
.custom-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.custom-card img {
    height: 250px;
    object-fit: cover;
}

.custom-card .card-body {
    padding: 25px;
}

.custom-card .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--text-light);
}

/* Ensure all links in cards and buttons have proper colors */
.card .btn-primary-custom,
.custom-card .btn-primary-custom {
    color: #fff;
}

.card .btn-primary-custom:hover,
.custom-card .btn-primary-custom:hover {
    color: #fff;
}

/* Calendar Section */
.calendar-container {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.event-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.event-date {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
}

/* Team Cards */
.team-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.team-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px;
    text-align: center;
}

.team-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.team-body {
    padding: 25px;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 66, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 40px 0 20px;
}

footer h5 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: white !important;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .coach-photo {
        width: 150px !important;
        height: 150px !important;
    }
}

@media (max-width: 480px) {
    .coach-photo {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Override Bootstrap danger color to use our color scheme */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

.badge.bg-danger {
    background-color: var(--primary-color) !important;
}

.btn-outline-danger {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-danger:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}
