:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Tabs */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Program Card Images */
.program-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.program-card:hover .program-image {
    transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .program-image { height: 150px; }
}

@media (max-width: 576px) {
    .program-image { height: 120px; }
}

/* Testimonials */
.testimonial-section .testimonial-card { height: 100%; }
.testimonial-section .quote { font-weight: 600; margin-bottom: 0.5rem; }
.testimonial-section .author { color: var(--accent-color); }

/* Programs Section Styles */
.programs-tabs { margin-bottom: 2rem; }

.tab-btn {
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn:hover:not(.active) {
    background-color: rgba(13, 110, 253, 0.1);
}

.program-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.program-card .card-body { padding: 2rem; }
.program-card i { margin-bottom: 1.5rem; }
.program-card h3 { color: var(--primary-color); margin-bottom: 1rem; }
.program-card .btn-outline-primary { margin-top: 1.5rem; }

.program-card .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    margin-left: 2rem; /* space between logo and menu */
}


.navbar-brand img { height: 50px; }

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nav-link:hover { color: var(--accent-color) !important; }

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-weight: 700;
    color: var(--dark-color);
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 2rem;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-card .card-body { padding: 1.5rem; }
.course-card .card-title { font-weight: 600; color: var(--primary-color); margin-bottom: 1rem; }
.course-card .card-text { color: var(--secondary-color); }

.course-card .duration {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
}

.testimonial-card {
    background-color: white;
    color: var(--dark-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 1rem;
}

.testimonial-card .quote { font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card .author { font-weight: 600; color: var(--primary-color); }

/* Contact */
.contact-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.contact-info { margin-bottom: 2rem; }
.contact-info i { color: var(--primary-color); font-size: 1.5rem; margin-right: 1rem; }

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

footer h5 { font-weight: 600; margin-bottom: 1.5rem; }
footer ul { list-style: none; padding-left: 0; }
footer ul li { margin-bottom: 0.5rem; }

footer ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s;
}

footer ul li a:hover { color: white; text-decoration: none; }

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* ===================== */
/* Slider Styles */
/* ===================== */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* height removed → let images define height */
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto; /* let image control height */
    max-height: 90vh; /* keep it inside viewport */
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active { background-color: white; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 3;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.slider-btn:hover { background-color: rgba(255, 255, 255, 0.5); }
.prev { left: 20px; }
.next { right: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 1rem; }
}

@media (max-width: 576px) {
    .slide-content h2 { font-size: 1.2rem; }
    .slide-content p { font-size: 0.9rem; }
}

/* Mobile/Tablet Navbar Slide Drawer */
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -250px;  /* hidden off-screen */
    width: 250px;  /* drawer width */
    height: 100%;
    background-color: var(--primary-color);
    padding-top: 60px; /* space for brand/logo */
    transition: left 0.3s ease-in-out;
    z-index: 9999;
  }

  .navbar-collapse.show {
    left: 0;
  }

  .navbar-nav {
    flex-direction: column;
    padding-left: 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    color: white !important;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-toggler {
    z-index: 10000; /* keep toggle button above */
  }

  /* Page wrapper to shift when menu opens */
  .page-wrapper {
    transition: transform 0.3s ease-in-out;
  }

  body.menu-open .page-wrapper {
    transform: translateX(250px); /* push right */
  }

  /* Dim background when menu is open */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }
}



