:root {
    /* Color Palette - Placeholder based on "Terracotta/Orange" vibe */
    --primary: #f58840;
    --secondary: #c2402f;
    --accent: #ffD700;
    /* Gold for trophies/highlights */
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #ffffff;
    --gray: #888888;

    /* Effects */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(245, 136, 64, 0.5), 0 0 20px rgba(245, 136, 64, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    box-shadow: var(--neon-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(245, 136, 64, 0.8);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--light);
    color: var(--light);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--darker);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), var(--darker));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 2px var(--light);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #ddd;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-socials {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.hero-socials a {
    color: var(--light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 600;
}

.alert.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

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

.img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--neon-glow);
}

.img-badge i {
    font-size: 2rem;
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    background: var(--glass);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
}

/* Gallery Section (Home & Carousel) */
.gallery-grid {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    position: relative;
    height: 300px;
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: auto;
    max-width: none;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay i {
    font-size: 2rem;
    color: var(--light);
}

/* Blogs Section (Home & Carousel) */
.blog-grid {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.blog-grid::-webkit-scrollbar {
    display: none;
}

.blog-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: auto;
    max-width: none;
    scroll-snap-align: start;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--light);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blog-date span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.blog-date small {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.blog-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--light);
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary);
}

.blog-content p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Enroll Section */
.enroll-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.enroll-visual {
    position: relative;
    background: url('assets/jersey.png') no-repeat center center/contain;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}

.c1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 20%;
    right: 20%;
    opacity: 0.3;
}

.c2 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    bottom: 20%;
    left: 20%;
    opacity: 0.3;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 30px;
}

.contact-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--light);
}

.contact-card p {
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 50px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

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

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* News and Gallery Page Specifics (Grid) */
.page-header {
    margin-top: 80px;
    padding: 100px 0 50px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), var(--darker)), url('assets/hero_bg.png') no-repeat center top;
    background-size: cover;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

/* Grid Layouts for Pages */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.page-link.active,
.page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-link.prev,
.page-link.next {
    width: auto;
    padding: 0 15px;
}

.no-content {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--gray);
    background: var(--glass);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-container,
    .enroll-box {
        grid-template-columns: 1fr;
    }

    .enroll-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
        padding-top: 60px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    .hero-socials {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-text {
        font-size: 1rem;
        padding: 0 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Enforce 1 Card per View */
    .blog-card,
    .gallery-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        /* Override any fixed min-width */
        margin-right: 0;
        scroll-snap-align: center;
    }

    .blog-grid,
    .gallery-grid {
        padding-left: 0;
        padding-right: 0;
    }

    .horizontal-card {
        flex-direction: column;
    }

    .horizontal-card .blog-image,
    .horizontal-card .blog-content {
        width: 100%;
    }

    .footer-container,
    .footer-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Extra Small Devices (Phone < 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-img,
    .enroll-visual {
        display: none;
        /* Hide visual clutter on very small screens if needed, about-img kept for now but check height */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .input-group input,
    .input-group select {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }

    .enroll-box {
        padding: 30px 20px;
    }

    /* Ensure cards don't overflow */
    .blog-card,
    .gallery-item {
        min-width: 100%;
    }

    .gallery-item {
        height: 250px;
        /* Reduce height for small screens */
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(245, 136, 64, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
}