/* CSS Variables for easy maintenance */
:root {
    --primary-color: #2a5ba7;
    --secondary-color: #FF6F61;
    --accent-color: #4aafde;
    --text-color: #212529;
    --light-bg: #F4F7FA;
    --white: #fff;
    --dark-blue: #335a8a;
    --gray-light: #ddd;
    --gray-medium: #666;
}

/* Base Styles */
body {
    font-family: 'Lyon Display Web', 'Whitney SSm A', 'Whitney SSm', 'Spectral', 'Times New Roman', serif;
    color: var(--text-color);
    background: var(--light-bg);
    line-height: 1.6;
}

/* Header & Navigation */
.bg-primary {
    background-color: var(--primary-color) !important;
}

header {
    background-color: var(--white) !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.logo-img {
    height: 160px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand {
    height: 120px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

#navbarNav .nav-link {
    color: var(--text-color) !important;
    padding: 10px 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

#navbarNav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--text-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .navbar-brand .logo-img {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .navbar-brand .logo-img {
        height: 140px;
    }
}

/* Headings */
h1, h2, h3, h4, h5 {
    color: var(--accent-color);
    line-height: 1.3;
}

/* Carousel/Hero Section */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100% !important;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.carousel-control-next,
.carousel-control-prev {
    display: none;
}

/* Buttons */
.btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background: #e65a50;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* About Section */
.about img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.about h2 {
    margin-bottom: 20px;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.about a:hover {
    text-decoration: underline;
}

/* Courses Section */
.courses {
    padding: 60px 0;
    background: var(--light-bg);
}

.courses h2 {
    margin-bottom: 40px;
}

.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 25px 20px;
    height: 100%;
    margin-bottom: 20px;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card i {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-text {
    font-size: 1rem;
    color: var(--gray-medium);
    flex-grow: 1;
}

.card .btn {
    margin-top: auto;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-color);
    color: var(--white);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-title {
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px;
}

.modal-body h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.modal-body h5 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

.modal-body ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--gray-medium);
    font-size: 1rem;
}

.modal-body ul li {
    margin-bottom: 10px;
}

.modal-footer {
    border-top: none;
    padding: 15px;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
}

.testimonials h2 {
    margin-bottom: 40px;
}

.testimonials .card {
    padding: 25px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonials .card-text {
    font-style: italic;
    color: var(--gray-medium);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.testimonials .card-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Gallery Section */
.gallery {
    padding: 60px 0;
    background: var(--light-bg);
}

.gallery h2 {
    margin-bottom: 40px;
}

.gallery-item {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Call-to-Action Section */
.cta {
    padding: 70px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    margin-bottom: 20px;
    color: var(--white);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Form Styles */
#contact {
    background-color: #f8f9fa;
    padding: 80px 0;
}

#contact .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#contact .card-body {
    padding: 40px;
}

#contact h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

#contact .form-control {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

#contact .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(42, 91, 167, 0.25);
}

#contact .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

#contact .btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

#contact .invalid-feedback {
    color: #dc3545;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Footer Section */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: var(--white);
    margin: 0 12px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
    text-decoration-thickness: 2px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .carousel-caption {
        bottom: 50px;
    }

    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }

    .navbar-nav {
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 15px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 15px;
    }
}