:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.95) !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    color: #cdcccc !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: white !important;
}

.nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-link:hover:before {
    visibility: visible;
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 20px;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Carousel */
.carousel {
    margin-top: 0;
}

.carousel-item {
    height: 100vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
    max-width: 600px;
    margin-left: 10%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-left: 5px solid var(--primary-color);
}

.carousel-caption p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-header h2 span {
    color: var(--primary-color);
}

.header-bar {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

#about .lead {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Courses Section */
.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.course-card .card-body {
    flex: 1;
}

.course-card img {
    height: 250px;
    object-fit: cover;
}

.course-card .card-title {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.course-card .card-text {
    margin-bottom: 20px;
}

.special-course-card {
    background: linear-gradient(135deg, var(--secondary-color), #0d1b3a);
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(29, 53, 87, 0.3);
    margin-bottom: 30px;
}

.special-course-card .card-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.special-course-card .card-text {
    margin-bottom: 15px;
}

.special-course-card strong {
    color: var(--primary-color);
}

/* Gallery Section */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item img {
    transition: all 0.3s ease;
}

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

/* Contact Section */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 25px;
    text-align: center;
    
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

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

#contactForm .form-control, #contactForm .form-select {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

#contactForm .form-control:focus, #contactForm .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

#contactForm textarea {
    resize: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c1121f;
    border-color: #c1121f;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

footer address {
    color: #adb5bd;
    font-style: normal;
    font-size: 0.95rem;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    background-color: var(--secondary-color);
    color: white;
}

.btn-close {
    filter: invert(1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-caption {
        bottom: 20%;
        max-width: 80%;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
    
    .carousel-caption {
        bottom: 10%;
        margin-left: 5%;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .special-course-card .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 70px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .carousel-item {
        height: 60vh;
        min-height: 300px;
    }
    
    .carousel-caption {
        bottom: 5%;
        padding: 10px;
    }
    
    .special-course-card .row {
        flex-direction: column;
    }
    
    .special-course-card .col-md-4 {
        width: 100%;
    }
    
    .special-course-card .col-md-8 {
        width: 100%;
    }
}
.carousel-item {
    background-color: rgba(0, 0, 0, 0.3); /* Base dark tint */
}

.carousel-item img {
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.container p,
.container li,
.container .card-text,
.container .about-content,
.container .course-description {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* Better spacing for justified text */
.container p {
    margin-bottom: 1.2em;
    line-height: 1.6;
}