/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* --- Theme and Body --- */
/* Corporate/Trustworthy Theme: Deep Navy Blue, Light Blue, White */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #F8F8F9; /* Light gray background */
    color: #333; /* Darker text for readability on light background */
}

.navbar {
    background: linear-gradient(45deg, #01257D, #0048AA) !important;
    border-bottom: 1px solid #011e69;
    min-height: 30px; /* Further reduced navbar height */
    padding-top: 2px;
    padding-bottom: 2px;
}

.footer {
    background-color: #01257D; /* Primary: Deep navy blue */
    color: #FFFFFF;
    padding: 20px 0;
    border-top: 1px solid #011e69;
    margin-top: 40px;
}

/* --- Content Blocks --- */
.content-block {
    background-color: #FFFFFF; /* Accent: White */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    height: 100%;
    border: 1px solid #CADCFC; /* Secondary: Light blue border */
}

.content-block:hover {
    box-shadow: 0 6px 20px rgba(1, 37, 125, 0.2); /* Shadow with a hint of navy blue */
    transform: translateY(-5px);
}

/* --- Main Title --- */
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #01257D; /* Primary: Deep navy blue */
    margin-bottom: 20px; /* Reduced margin */
    text-shadow: none;
    transition: text-shadow 0.3s ease;
}

.main-title:hover {
    text-shadow: 0 0 10px rgba(1, 37, 125, 0.3); /* Subtle navy glow on hover */
}

/* --- Buttons --- */
.btn-custom-theme {
    background-color: #01257D; /* Primary: Deep navy blue */
    color: #FFFFFF;
    border: 2px solid #01257D;
    padding: 22px 60px; /* Further increased button size */
    font-weight: 700;
    font-size: 1.4rem; /* Increased font size */
    border-radius: 50px; /* Pill-shaped buttons */
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 37, 125, 0.2); /* Added shadow to highlight */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.5, 1.6, 0.4, 0.7);
    z-index: -1;
}

.btn-custom-theme:hover {
    color: #01257D;
    transform: translateY(-6px); /* Slightly more lift */
    box-shadow: 0 12px 35px rgba(1, 37, 125, 0.35); /* Deeper and more prominent shadow */
}

.btn-custom-theme:hover::before {
    transform: scaleX(1);
}

/* --- Carousel & Video --- */
.carousel {
    border-radius: 10px;
    overflow: hidden;
    height: 100%; /* Make carousel fill the container height */
}

/* --- Homepage media size (make carousel and YouTube smaller) --- */
.homepage-media .content-block {
    max-height: 200px; /* even smaller height on large screens */
    overflow: hidden;
}

#posterCarousel, .carousel-inner, .carousel-item {
    height: 200px; /* fixed height for the homepage carousel */
}

.carousel-item img {
    height: 200px; /* enforce image height */
    object-fit: cover;
}

.ratio.ratio-16x9 {
    max-height: 200px; /* limit youtube iframe height */
    overflow: hidden;
}

.ratio.ratio-16x9 iframe {
    height: 100%;
    width: 100%;
}

@media (max-width: 992px) {
    /* on smaller screens reduce size further */
    .homepage-media .content-block, #posterCarousel, .carousel-inner, .carousel-item, .carousel-item img, .ratio.ratio-16x9 {
        height: 120px;
        max-height: 120px;
    }
    
    /* Adjust buttons for smaller screens */
    .btn-custom-theme {
        padding: 16px 40px;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

/* --- Package Cards --- */
/* 5 packages per row on large screens */
.packages-row {
    margin-left: -8px;
    margin-right: -8px;
}

.packages-row .col-pkg {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 8px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .packages-row .col-pkg {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .packages-row .col-pkg {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 576px) {
    .packages-row .col-pkg {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 6px;
        margin-bottom: 12px;
    }
}

.package-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e6f1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    z-index: -1;
    border-radius: 8px;
    background: linear-gradient(45deg, #01257D, #0048AA);
}

.col-pkg:nth-child(5n+1) .package-card::before { background: linear-gradient(45deg, #02aab0, #00cdac); }
.col-pkg:nth-child(5n+2) .package-card::before { background: linear-gradient(45deg, #ff512f, #f09819); }
.col-pkg:nth-child(5n+3) .package-card::before { background: linear-gradient(45deg, #4776E6, #8E54E9); }
.col-pkg:nth-child(5n+4) .package-card::before { background: linear-gradient(45deg, #667eea, #764ba2); }
.col-pkg:nth-child(5n+5) .package-card::before { background: linear-gradient(45deg, #f093fb, #f5576c); }

.package-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.package-card:hover::before {
    opacity: 1;
}

.package-card:hover .package-price {
    color: #fff;
    transition: color 0.3s ease-in-out;
}

/* Package Thumbnail - Image at top (compact) */
.package-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eef7 0%, #d4dce8 100%);
}

.package-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.package-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #01257D;
    text-align: center;
    line-height: 1.2;
    background: linear-gradient(135deg, #CADCFC 0%, #e8eef7 100%);
}

.package-card:hover .btn-custom-theme {
    background-color: #fff;
    color: #01257D;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.package-card:hover .btn-custom-theme::before {
    display: none;
}

.package-card .package-body {
    padding: 12px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.package-card .package-body .btn {
    margin-top: 0;
    width: 100%;
    padding: 5px 10px;
    font-size: 0.75rem;
}

.package-card .package-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #01257D;
    margin-bottom: 0;
    text-align: center;
}

/* --- Inquiry Form & Review Box --- */
.form-container, .review-box {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #CADCFC;
    height: 100%;
}

.form-container h3, .review-box h3 {
    color: #01257D;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #CADCFC;
    padding-bottom: 10px;
}

.review-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e6f1;
}

.review-box .review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.star-rating {
    color: #ffc107; /* Bootstrap's warning color for stars */
    margin-bottom: 8px;
}

.review-text {
    font-style: italic;
    color: #555;
}

.review-author {
    font-weight: bold;
    text-align: right;
    color: #01257D;
}

.see-more-link {
    font-weight: bold;
    color: #01257D;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* --- Main Footer --- */
.main-footer {
    background-color: #01257D; /* Primary: Deep navy blue */
    color: #CADCFC; /* Secondary: Light blue for text */
    padding: 60px 0 0 0;
    margin-top: 60px;
    border-top: 4px solid #8AAAE5;
}

.main-footer h5 {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CADCFC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.social-icons a {
    color: #CADCFC;
    font-size: 1.4rem;
    margin-right: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #011e69; /* A darker shade of navy */
    color: #CADCFC;
    padding: 15px 0;
    margin-top: 40px;
    text-align: center;
}

/* --- Smaller buttons for recorded lectures page --- */
.recorded-lectures-buttons .btn-custom-theme {
    font-size: 0.9rem;
    padding: 10px 20px;
    white-space: nowrap; /* Prevents text from wrapping inside the button */
}

/* --- Enrollment Modal --- */
.enrollment-step {
    display: none;
}

.enrollment-step.active {
    display: block;
}

#qrCodeImage {
    max-width: 250px;
}

/* --- Enrollment Modal Progress Bar --- */
.modal-progress-bar {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.modal-progress-bar::before {
    content: '';
    position: absolute;
    top: 17px; /* Vertically center the line with the circles */
    left: 15%;
    right: 15%;
    height: 3px;
    background-color: #e0e6f1;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
}

.progress-step .step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #e0e6f1;
    color: #adb5bd;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background-color: #01257D;
    border-color: #01257D;
    color: #fff;
}

.progress-step .step-label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.progress-step.active .step-label {
    color: #01257D;
    font-weight: bold;
}

/* --- Lecture Item Card --- */
.lecture-item-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #CADCFC;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.lecture-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(1, 37, 125, 0.15);
}

.youtube-btn {
    background-color: #ff0000;
    color: #fff !important; /* Override other styles */
    margin-bottom: 20px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 0, 0, 0.2);
}

.youtube-btn:hover {
    background-color: #e60000; /* Darker red on hover */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4); /* Red glow effect */
}

.lecture-item-card .btn-custom-theme {
    white-space: normal; /* Allow button text to wrap */
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.8); /* Neon glow */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 25px rgba(37, 211, 102, 1); /* Brighter glow on hover */
}

/* --- Navbar Customizations --- */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem; /* Increased horizontal padding for more space */
    transition: color 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
}

.dropdown-menu {
    background-color: #FFFFFF;
    border: 1px solid #CADCFC;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Powered By Section Customization --- */
.powered-by-container {
    text-align: right;
}

.powered-by-container .navbar-text {
    display: block; /* Makes the text go to the next line */
    font-size: 0.8rem; /* Makes the text smaller */
    margin-top: 4px; /* Adds space between logo and text */
    color: #CADCFC;
}

/* --- Home Page Section Title --- */
.home-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.home-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: #01257D;
    border-radius: 3px;
    transition: width 0.3s ease-in-out;
}

.home-section-title:hover::after {
    width: 150px;
}

.home-buttons-container {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.home-buttons-container .btn-custom-theme {
    margin: 10px 15px;
    min-width: 220px;
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #01257D;
    border-radius: 2px;
}

/* Make lecture course buttons bigger */
.lecture-item-card .btn-custom-theme {
    padding: 15px 25px;
    font-size: 1.05rem;
}

/* --- Compact inquiry and reviews for homepage (id=inquiry-form) --- */
#inquiry-form .form-container.compact, #inquiry-form .review-box.compact {
    padding: 25px;
    height: 500px; /* further increased height for better portrait orientation */
    overflow: hidden;
}

#inquiry-form .form-container.compact h3, #inquiry-form .review-box.compact h3 {
    font-size: 1.3rem; /* increased font size */
    margin-bottom: 15px;
}

#inquiry-form .form-control {
    padding: 12px 15px; /* increased padding */
    font-size: 1.1rem; /* increased font size */
    margin-bottom: 15px; /* increased spacing between fields */
}

#inquiry-form .btn-custom-theme {
    padding: 12px 20px; /* increased padding */
    font-size: 1.1rem; /* increased font size */
    margin-top: 10px; /* added margin to separate from form fields */
}

#inquiry-form textarea.form-control {
    min-height: 140px; /* further increased height for message field */
}

#inquiry-form .review-item.compact-item { margin-bottom: 15px; padding-bottom: 10px; border-bottom: none; }
#inquiry-form .review-text, #inquiry-form .review-author { font-size: 1.05rem; }

/* --- Adjusted Media Queries for Larger Form --- */
@media (max-width: 992px) {
    #inquiry-form .form-container.compact, #inquiry-form .review-box.compact { height: 400px; }
}

@media (max-width: 992px) {
    #inquiry-form .form-container.compact, #inquiry-form .review-box.compact { height: 280px; }
}

/* Homepage media section adjustments */
.homepage-media {
    align-items: flex-start !important;
    overflow: hidden;
}

.content-block {
    padding: 10px;
    overflow: hidden;
}

/* --- Review Slider Styles --- */
#reviewCarousel .carousel-inner {
    min-height: 350px;
    display: flex;
    align-items: center;
}

#reviewCarousel .carousel-item {
    transition: transform 0.6s ease;
    height: 350px;
}

#reviewCarousel .review-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

#reviewCarousel .review-text {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

#reviewCarousel .review-author {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: right;
    margin-bottom: 0;
}

#reviewCarousel .star-rating {
    margin-bottom: 10px;
}

#reviewCarousel .carousel-control-prev,
#reviewCarousel .carousel-control-next {
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(1, 37, 125, 0.5);
    border-radius: 50%;
    opacity: 0.8;
}

#reviewCarousel .carousel-control-prev-icon,
#reviewCarousel .carousel-control-next-icon {
    width: 15px;
    height: 15px;
}

/* --- New Homepage Slider --- */
.carousel-item img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    object-fit: cover; /* Ensures image covers the area */
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0.95;
    transition: all 0.15s ease;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #fff;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Equal size cards for 3-column layout */
.same-size {
    width: 420px;
    height: 250px;
}

/* Flexbox layout for 3-column section */
.three-column-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.slider-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 10px;
}

.slider-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;   /* FULL FIT – NO CROPPING */
}

.video-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 10px;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* FULL FIT – NO CROPPING */
}

/* Hide carousel control buttons */
#leftCarousel .carousel-control-prev,
#leftCarousel .carousel-control-next,
#rightCarousel .carousel-control-prev,
#rightCarousel .carousel-control-next {
    display: none;
}

/* Left/Right carousels: fixed format for better visibility */
#leftCarousel, #rightCarousel {
    width: 420px;
    height: 250px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    position: relative;
}
#leftCarousel .carousel-inner,
#rightCarousel .carousel-inner {
    height: 250px;
    overflow: hidden;
    position: relative;
}
#leftCarousel .carousel-item,
#rightCarousel .carousel-item {
    height: 250px;
    width: 420px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 992px) {
    .center-video { height: 250px; width: 420px; }
    .center-video-inner { width: 420px; height: 250px; }
    .center-video-inner iframe { width: 100%; height: 100%; }
    #leftCarousel, #rightCarousel { width: 420px; height: 250px; }
    #leftCarousel .carousel-item, #rightCarousel .carousel-item { height: 250px; }
    .same-size { width: 420px; height: 250px; }
}

@media (max-width: 768px) {
    .same-size { width: 280px; height: 166px; }
    .center-video { height: 166px; width: 280px; }
    .center-video-inner { width: 280px; height: 166px; }
    .center-video-inner iframe { width: 100%; height: 100%; }
    #leftCarousel, #rightCarousel { width: 280px; height: 166px; }
    #leftCarousel .carousel-item, #rightCarousel .carousel-item { height: 166px; }
    #leftCarousel .carousel-inner, #rightCarousel .carousel-inner { height: 166px; }
}

.slider-box {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

/* --- Professional Package Features --- */
.package-features {
    list-style: none;
    padding-left: 0;
    margin-top: 20px; /* Add some space above the list */
}

.package-features li {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: transparent; /* Cleaner look */
    border: 1px solid #e0e6f1;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #343a40; /* Darker text */
    font-weight: 700; /* Bolder text */
}

.package-features li:hover {
    background-color: #eef2f9; /* Light blue background on hover */
    border-color: #CADCFC;
    transform: scale(1.03); /* Slightly enlarge on hover */
    box-shadow: 0 8px 20px rgba(1, 37, 125, 0.15);
    color: #01257D; /* Text color changes to primary on hover */
}

.package-features li i {
    color: #01257D; /* Primary theme color */
    font-size: 1.2rem;
    margin-right: 12px;
}
