/* style.css */

/* ---------------------------------------------------
   1. CSS Variables & Global Styles
   --------------------------------------------------- */
:root {
    /* Color Scheme: Monochrome */
    --primary-color: #212529; /* Dark Gray */
    --secondary-color: #6c757d; /* Medium Gray */
    --light-gray-color: #f8f9fa; /* Very Light Gray */
    --white-color: #ffffff;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --border-color: #dee2e6;
    
    /* Typography */
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Nunito', sans-serif;

    /* Transitions */
    --bouncy-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--smooth-transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------
   2. Buttons & Forms
   --------------------------------------------------- */
.btn, button, input[type='submit'] {
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--bouncy-transition);
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--dark-color) !important;
    border-color: var(--dark-color) !important;
    color: var(--white-color);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.form-control {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    transition: var(--smooth-transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.25);
}

/* ---------------------------------------------------
   3. Header / Navbar
   --------------------------------------------------- */
.header .navbar {
    padding: 1rem 0;
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-link {
    font-family: var(--heading-font);
    text-transform: uppercase;
    margin: 0 10px;
    transition: var(--smooth-transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--light-gray-color) !important;
}

/* ---------------------------------------------------
   4. Hero Section
   --------------------------------------------------- */
.hero-section {
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 6rem 0;
}

.hero-section h1 {
    font-size: 4rem;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white-color);
}

/* ---------------------------------------------------
   5. Reusable Components (Cards, etc.)
   --------------------------------------------------- */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--bouncy-transition);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    overflow: hidden;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.5rem;
}

/* Specific card styles */
#instructors .card-image {
    padding-top: 2rem;
    margin: 0 auto;
    width: 200px;
    height: 200px;
}

.card-horizontal .card-image img {
    height: 100%;
    border-radius: 15px 0 0 15px;
}

/* Accordion */
.accordion-button {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* ---------------------------------------------------
   6. Section Specific Styles
   --------------------------------------------------- */
.bg-light {
    background-color: var(--light-gray-color) !important;
}

#partners .partner-logo img {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--smooth-transition);
}

#partners .partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

#contact .contact-form {
    background-color: var(--light-gray-color);
    padding: 2rem;
    border-radius: 15px;
}

/* ---------------------------------------------------
   7. Footer
   --------------------------------------------------- */
.footer {
    background-color: var(--dark-color) !important;
}

.footer h6 {
    color: var(--white-color);
}

.footer p {
    color: var(--secondary-color);
}

.footer a.text-reset {
    font-weight: 600;
    color: var(--secondary-color) !important;
    text-decoration: none;
    transition: var(--smooth-transition);
}

.footer a.text-reset:hover {
    color: var(--white-color) !important;
    text-decoration: none;
}

/* ---------------------------------------------------
   8. Animation on Scroll
   --------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------
   9. Page-Specific Styles (Success, Privacy, Terms)
   --------------------------------------------------- */

/* Styles for success.html */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--light-gray-color);
}

.success-container {
    max-width: 600px;
    padding: 3rem;
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.success-container h1 {
    color: var(--primary-color);
}

/* Styles for privacy.html and terms.html */
.legal-page-content {
    padding-top: 120px; /* To avoid overlap with sticky header */
    padding-bottom: 5rem;
}

.legal-page-content h1 {
    margin-bottom: 2rem;
}

.legal-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------
   10. Media Queries
   --------------------------------------------------- */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .card-horizontal {
        flex-direction: column;
    }

    .card-horizontal .card-image img {
        width: 100%;
        height: 250px;
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
}