/* NSCPL Theme Colors - These will be overridden by theme settings */
:root {
    --primary-color: #0A192F;    /* Navy Blue */
    --accent-color: #00BFA6;     /* Teal */
    --secondary-color: #F5F5F5; /* Light Gray */
    --highlight-color: #FF9800;   /* Sports Orange */
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-light: #FFFFFF;
    --navbar-bg: #0A192F;
    --navbar-text: #FFFFFF;
    --navbar-hover: #00BFA6;
    --button-primary-bg: #00BFA6;
    --button-primary-text: #FFFFFF;
    --button-secondary-bg: #6C757D;
    --button-secondary-text: #FFFFFF;
    --link-color: #00BFA6;
    --link-hover-color: #FF9800;
    --card-bg: #FFFFFF;
    --card-border: #E9ECEF;
    --footer-bg: #0A192F;
    --footer-text: #FFFFFF;
    --footer-link: #00BFA6;
    --font-family: 'Inter', sans-serif;
    --heading-font: 'Inter', sans-serif;
    --font-size-base: 16px;
    --section-padding: 80px;
    --card-radius: 8px;
}

/* Global Styles */
body {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-base) !important;
    line-height: 1.6;
    color: var(--text-primary) !important;
}

/* Ensure all text elements use theme fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font) !important;
}

p, span, div, a, li, td, th {
    font-family: var(--font-family) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-highlight {
    color: var(--highlight-color) !important;
}

.bg-highlight {
    background-color: var(--highlight-color) !important;
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg) !important;
    padding: 0 !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--navbar-text) !important;
    font-family: var(--heading-font);
}

.navbar-nav .nav-link {
    color: var(--navbar-text) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--navbar-hover) !important;
}

/* Main Content */
.main-content {
    margin-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 200px);
}

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    margin-top: -50px;
    height: 70vh;
    overflow: hidden;
}

.hero-slide {
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    /* Disable backdrop blur on homepage hero overlay to remove glass/blur effect */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Ensure any glass-effect applied inside the hero carousel does not blur or apply frosted styles */
.hero-carousel-section .glass-effect,
.hero-carousel-section .hero-overlay,
.hero-carousel-section .hero-slide .glass-effect {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.01em;
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* Carousel Controls */
.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 191, 166, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-carousel-section .carousel-control-prev {
    left: 20px;
}

.hero-carousel-section .carousel-control-next {
    right: 20px;
}

.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover {
    background-color: var(--highlight-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-carousel-section .carousel-control-prev-icon,
.hero-carousel-section .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* Carousel Indicators */
.hero-carousel-section .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-carousel-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel-section .carousel-indicators button.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.hero-carousel-section .carousel-indicators button:hover {
    background-color: var(--highlight-color);
}

/* Hero Buttons */
.hero-buttons .btn {
    margin: 8px;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 35px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hero-buttons .btn-lg {
    padding: 20px 40px;
    font-size: 1.3rem;
}

/* Responsive Hero */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section {
        height: 80vh;
    }
    
    .hero-slide {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-buttons .btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .hero-carousel-section .carousel-control-prev,
    .hero-carousel-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-carousel-section .carousel-control-prev {
        left: 10px;
    }
    
    .hero-carousel-section .carousel-control-next {
        right: 10px;
    }
    
    .hero-carousel-section .carousel-control-prev-icon,
    .hero-carousel-section .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Improved visibility for animated content cards (fade-in-up) */
.card.card-body.fade-in-up {
    background: rgba(10, 25, 47, 0.95); /* near-opaque dark background for contrast */
    color: #ffffff; /* ensure text is white */
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 30px rgba(2,6,23,0.6);
    padding: 28px !important;
}

.card.card-body.fade-in-up .lead {
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background-color: var(--button-primary-bg);
    border-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    border-radius: var(--card-radius);
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 166, 0.3);
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    border-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border-radius: var(--card-radius);
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 166, 0.25);
}

/* Footer */
footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    /* Reduced padding for a more compact footer */
    padding: 32px 0 0 !important;
}

footer h5 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer .social-links {
    margin-top: 1.5rem;
}

footer .social-links a,
footer .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--footer-link) !important;
    color: var(--footer-text) !important;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

footer .social-links a:hover,
footer .social-link:hover {
    background-color: var(--highlight-color) !important;
    transform: translateY(-3px);
    color: var(--text-light) !important;
}

/* Social Link Class for better visibility */
.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white !important;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--highlight-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1) rotate(8deg);
    color: white !important;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link i {
    color: white !important;
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Footer Links */
footer .footer-link {
    color: var(--footer-link) !important;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: inline-block;
    font-size: 0.95rem;
    opacity: 0.9;
}

footer .footer-link:hover {
    color: var(--highlight-color) !important;
    transform: translateX(5px);
    opacity: 1;
}

footer ul.list-unstyled {
    margin-bottom: 0;
}

footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Footer Contact Info */
footer .contact-info {
    margin-top: 0.5rem;
}

footer .contact-info p {
    color: var(--footer-text) !important;
    transition: color 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

footer .contact-info i {
    color: var(--footer-link) !important;
    transition: color 0.3s ease;
    width: 20px;
    margin-right: 10px;
    font-size: 1rem;
}

footer .contact-info:hover i {
    color: var(--highlight-color) !important;
}

/* Footer Content */
footer h5,
footer .text-accent {
    color: var(--footer-link) !important;
}

footer .col-lg-4 {
    padding: 0 20px;
}

footer .navbar-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

footer .navbar-brand img {
    height: 50px;
    margin-right: 1rem;
}

/* Footer Copyright */
footer hr.my-4 {
    opacity: 0.1;
    margin: 2rem 0;
}

footer .text-white,
footer .text-white-50 {
    color: var(--footer-text) !important;
    opacity: 0.9;
    font-size: 0.9rem;
}

footer .text-info {
    color: var(--footer-link) !important;
    transition: color 0.3s ease;
}

footer .text-info:hover {
    color: var(--highlight-color) !important;
    text-decoration: none;
}

/* Footer Description */
footer p.text-white {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer Bottom Section */
footer .row.align-items-center {
    padding-top: 1rem;
}

footer .text-md-end .text-white-50.small {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .main-content {
        margin-top: 70px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge Styles */
.badge-sport {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-event {
    background-color: var(--highlight-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Team Cards */
.team-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* News Cards */
.news-card {
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.news-card:hover {
    border-left-color: var(--highlight-color);
    transform: translateX(5px);
}

/* Event Cards */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, var(--secondary-color) 0%, white 100%);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Custom Form Field Styles */
.custom-venue-class {
    border: 2px solid var(--accent-color);
    padding: 15px;
    background-color: #f0f8ff;
}

.custom-form-control {
    border-radius: 8px;
    border: 2px solid #6c757d; /* Darker border for contrast */
    padding: 10px 12px;
    transition: all 0.3s ease-in-out;
    background-color: #e9ecef; /* Light gray background */
    color: #343a40; /* Dark text color */
}

.custom-form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 166, 0.25);
    background-color: #ffffff; /* White background on focus */
    color: #212529; /* Even darker text on focus */
}

/* Styles for Checkboxes and Radio Buttons */
.form-check-input.custom-form-control {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #e9ecef;
    border: 2px solid #6c757d;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    print-color-adjust: exact;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-check-input.custom-form-control:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input.custom-form-control:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 191, 166, 0.25);
}

/* Hero logo/icon sizing overrides */
.hero-logo {
    max-height: 160px !important;
    width: auto;
}

.hero-section .fa-trophy {
    color: #ffffff;
    /* base size for medium screens */
    font-size: 3.5rem; /* ~56px */
}

@media (min-width: 1200px) {
    .hero-logo { max-height: 200px !important; }
    .hero-section .fa-trophy { font-size: 4.5rem; /* ~72px */ }
}

@media (max-width: 991px) {
    .hero-logo { max-height: 120px !important; }
    .hero-section .fa-trophy { font-size: 3rem; /* ~48px */ }
}

@media (max-width: 576px) {
    .hero-logo { max-height: 90px !important; }
    .hero-section .fa-trophy { font-size: 2.2rem; /* ~35px */ }
}

/* Enhanced Page Styling */
.text-shadow-lg {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary-to-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(6px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Enhanced Card Styling */
.card-header.bg-gradient-primary-to-secondary {
    border: none;
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Hero Background Pattern */
.hero-bg-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 100px 100px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section .display-2 {
        font-size: 2.5rem !important;
        letter-spacing: -0.01em !important;
    }

    .hero-section .fs-4 {
        font-size: 1.1rem !important;
    }

    .intro-card {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .intro-card .lead {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section .display-2 {
        font-size: 2rem !important;
    }

    .hero-section .fs-4 {
        font-size: 1rem !important;
    }

    .intro-card {
        padding: 1rem !important;
    }

    .scroll-indicator {
        margin-top: 3rem !important;
    }
}
