:root {
    --primary-blue: #2f76c2;
    --primary-green: #28A745;
    --dark-gray: #343a40;
}

/* Base Animation Styles */
.slide-up,
.slide-in-left,
.slide-in-right,
.fade-in-up,
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up {
    transform: translateY(30px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.fade-in-up {
    transform: translateY(20px);
}

.slide-up.animated,
.slide-in-left.animated,
.slide-in-right.animated,
.fade-in-up.animated,
.fade-in.animated {
    opacity: 1;
    transform: translate(0, 0);
}

.hero-cards-section .col:nth-child(1) .hero-card.animated { transition-delay: 0.1s; }
.hero-cards-section .col:nth-child(2) .hero-card.animated { transition-delay: 0.2s; }
.hero-cards-section .col:nth-child(3) .hero-card.animated { transition-delay: 0.3s; }
.course-card.animated:nth-child(1) { transition-delay: 0.1s; }
.course-card.animated:nth-child(2) { transition-delay: 0.2s; }
.course-card.animated:nth-child(3) { transition-delay: 0.3s; }

/* Hero Section Styles */
.hero {
    background-color: #ffffff;
    min-height: 570px;
    padding-top: 60px;
    padding-bottom: 120px;
    border-radius: 5px;
    color: black;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    overflow: hidden;

    /* --- ADDITIONS FOR DOTS --- */
    background-image: radial-gradient(circle, #cecece 1px, transparent 1px); /* Dot color and size */
    background-size: 40px 40px; /* Spacing between dots (horizontal vertical) */
}

.hero .container-fluid {
    position: relative;
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Subtle overlay for visual depth */
    z-index: 2; /* Below hero content but above hero background */
}

.hero h3 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-heading-text {
    color: black !important;
}

.hero h3 .text-primary {
    color: var(--primary-green);
}

.hero p {
    font-size: 1.30rem;
    padding-right: 40px;
}

.hero .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero .btn-primary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.hero .btn-outline-primary {
    border-color: rgb(10, 10, 10);
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero .btn-outline-primary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: black;
    transform: scale(1.05);
}

.animate-btn {
    position: relative;
    overflow: hidden;
}

.animate-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.animate-btn:hover::after {
    width: 200%;
    height: 200%;
}

.hero-img {
    animation: float 3s ease-in-out infinite;
    border-radius: 10px;
    height: 450px;
    width: 1200px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        padding-top: 60px;
        padding-bottom: 60px; /* Reduced for mobile to avoid excessive space */
    }
    .hero h3 {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero .btn-lg {
        font-size: 1rem;
        padding: 10px 20px;
    }
    .hero-img {
        max-height: 300px;
        margin-top: 20px;
    }
}

/* Hero Cards Section Styles */
.hero-cards-section {
    margin-top: -30px; /* Increased negative margin for stronger overlap */
    margin-bottom: 50px;
    padding-top: 20px;
    background-color: rgba(18, 86, 145, 0.84); /* Transparent to show hero background underneath */
    position: relative;
    z-index: 5; /* Higher than hero and hero-overlay */
    overflow: visible; /* Allow cards to extend beyond section */
}

.hero-card {
    background-color: rgb(255, 255, 255);
    border: 0.5px solid #d8d8d8;
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 6; /* Ensure cards are above hero-overlay */
    margin-top: -40px; /* Adjusted to fine-tune card positioning */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-card i {
    color: var(--primary-blue);
}

.hero-card .card-title {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.hero-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: black;
}

@media (max-width: 768px) {
    .hero-cards-section {
        margin-top: 20px; /* No overlap on mobile for better stacking */
        padding-top: 20px;
        background-color: #eaf2fc; /* Restore background for mobile */
    }
    .hero-card {
        margin-top: 0; /* Remove negative margin on mobile */
        margin-bottom: 10px;
    }
}

/* Tablet Specific Adjustments for Hero Cards */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-card .card-body {
        padding: 1rem;
    }
    .hero-card .card-title {
        font-size: 1rem;
    }
    .hero-card .card-text {
        font-size: 1rem;
    }
    .hero-card i {
        font-size: 2.8rem;
    }
}

/* Other Sections (Preserving Your Existing Styles) */
.offers-section {
    background-color: #f8f9fa;
    color: rgb(212, 8, 8);
    padding: 40px 0;
    height: 600px;
    max-height: 600px;
    margin-top: 50px;
    margin-bottom: 50px;
    overflow: hidden;
}

.offers-section .card {
    transition: transform 0.3s ease;
}

.offers-section .card:hover {
    transform: translateY(-5px);
}

.promo-timer {
    font-weight: bold;
    color: var(--primary-green);
}

.user-reviews {
    background-color: #006d77;
    padding: 40px 0;
    margin-top: 50px;
    margin-bottom: 50px;
    overflow: hidden;
}

.user-reviews h2 {
    color: white;
}

.review-card {
    background-color: white;
    border: none;
    border-radius: 10px;
    padding: 20px;
}

.review-card .card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #272e34;
}

.review-card .rating {
    font-size: 1.5rem;
    color: #ffd700;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .review-card .card-text {
        font-size: 0.9rem;
    }
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.btn-primary:hover {
    background-color: #272e34;
    border-color: var(--primary-green);
}

.btn-outline-primary {
    background-color: #fbfcfd;
}

.course-card {
    transition: transform 0.3s ease;
    background-color: rgb(249, 252, 255);
}
.course-card:hover {
    transform: translateY(-5px);
}
.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.course-card .card-body {
    padding: 1.5rem;
}
.course-card .description {
    color: #272e34;
    overflow: visible;
    white-space: normal;
    margin-bottom: 1rem;
}
.course-card .description ul {
    padding-left: 20px;
    margin-bottom: 0;
}
.course-card .description li {
    margin-bottom: 0.5rem;
}
.feature-box img {
    width: 50px;
    height: 50px;
}
.testimonial-card {
    border: none;
    background: #fff;
    margin-bottom: 30px;
}
.cta-footer {
    background-color: var(--primary-blue);
    margin-bottom: 30px;
    overflow: hidden;
}

.cta-footer-2 {
    background-color: #343a40;
    margin-bottom: 50px;
    overflow: hidden;
}

.accordion-button {
    font-weight: bold;
    color: #3d3d3d;
}
.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: var(--primary-blue);
}
.accordion-item {
    border: none;
    margin-bottom: 20px;
    border-radius: 5px;
}

.impact-section {
    background-color: #f6f6f6cb;
    padding: 20px 0;
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.who-we-are {
    background-color: #ffffff;
    border-radius: 10px;
}

.who-we-are h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.who-we-are h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(6, 6, 6);
}

.who-we-are p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.counter-card {
    background-color: #ffffff;
    border: 1px solid #dedfdf;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.counter-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.counter-card:hover i {
    color: var(--primary-green);
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.counter-card p {
    font-size: 1rem;
    font-weight: 500;
    color: #262a2e;
}

@media (max-width: 768px) {
    .impact-section .row {
        flex-direction: column;
    }
    .who-we-are {
        margin-bottom: 2rem;
    }
    .counter {
        font-size: 2rem;
    }
    .counter-card p {
        font-size: 0.9rem;
    }
    .counter-card i {
        font-size: 2rem;
    }
}

.read-more-link {
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
    margin-left: 5px;
}

.read-more-link:hover {
    text-decoration: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-heading-text {
        font-size: 2.8rem;
    }
}

.user-reviews .section-heading,
.cta .section-heading,
.cta-footer-2 .section-heading,
.cta-footer .section-heading {
    color: white !important;
}