/* ========================================================
   REFINED PREMIUM MODERN DESIGN (Original Colors & Layout)
======================================================== */

/* 1. Global Spacing & Clean Typography */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

.section-heading {
    margin-bottom: 50px !important;
}

.sub-heading {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #3aadcc !important;
    background: rgba(7, 166, 152, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
}

.sub-heading .heading-icon {
    background: transparent !important;
    color: #3aadcc !important;
}

/* 2. Floating Modern Header */
.header-17 .primary-header {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(25, 47, 89, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

/* 3. Hero Section - Fixed Form Overlap */
.hero-section-17 {
    position: relative;
    padding-top: 40px !important;
    /* Reduced top gap by 50% */
    padding-bottom: 120px !important;
    min-height: 600px;
    /* Ensure enough height for the absolute form */
}

/* .hero-section-17::before {
    content: '';
    position: absolute;
    inset: 0;
background: linear-gradient(90deg, rgba(25, 47, 89, 0.9) 0%, rgba(25, 47, 89, 0.3) 100%);
z-index: 1;
}

*/
.hero-content-17 {
    position: relative;
    z-index: 5;
    background: rgb(25 47 89 / 34%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 50px 40px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-content-17 .section-title,
.hero-content-17 p {
    color: #ffffff !important;
}

.hero-content-17 .sub-heading {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content-17 .heading-icon i {
    color: #ffffff !important;
}

.hero-img-wrap-17 {
    z-index: 5;
    position: relative;
}

@media (min-width: 992px) {

    /* Push the absolute form down slightly so it doesn't hit the nav bar */
    .hero-form-overlay {
        transform: translate(-50%, -50%) !important;
    }
}


/* 4. Elegant Feature Cards (Why Center Section) */
.feature-item-17 {
    background-color: transparent !important;
    background-image: radial-gradient(circle at 50% 0, transparent 48px, #ffffff 49px) !important;
    filter: drop-shadow(0px 0px 15px rgba(25, 47, 89, 0.08));
    border-radius: 20px !important;
    padding: 70px 25px 40px !important;
    position: relative;
    border: none !important;
    margin-top: 50px !important;
    text-align: center;
    box-shadow: none !important;
    transition: transform 0.4s ease !important;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
}

.feature-item-17:hover {
    transform: translateY(-8px) !important;
}

.feature-item-17 .feature-inner {
    display: block !important;
}

.feature-item-17 .icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    background: #3aadcc !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease !important;
    box-shadow: inset 0 0 0 6px #ffffff;
}

.feature-item-17:hover .icon {
    transform: translateX(-50%) scale(1.05) !important;
}

.feature-item-17 .icon img {
    filter: brightness(0) invert(1);
    max-width: 35px;
}

.feature-item-17 .content {
    margin-top: 10px !important;
}

.feature-item-17 .title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: #192f59 !important;
}

.feature-item-17 p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* 5. Course Area (Skills We Offer) */
.course-area {
    background: #f8fafc !important;
    padding: 100px 0 !important;
}

.course-item {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(25, 47, 89, 0.05) !important;
    border: none !important;
    transition: all 0.4s ease !important;
    overflow: hidden;
}

.course-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(25, 47, 89, 0.1) !important;
}

.course-item .course-thumb {
    border-radius: 5px !important;
    overflow: hidden;
}

.course-item .course-thumb img {
    transition: transform 0.5s ease !important;
}

.course-item:hover .course-thumb img {
    transform: scale(1.08) !important;
}

.course-item .course-content {
    padding: 30px !important;
}

.course-item .bottom-content {
    padding: 20px 30px !important;
    background: rgba(25, 47, 89, 0.01);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* 6. Explore Carousels - Fixed Image Clipping */
.explore-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.4s ease !important;
    padding: 10px;
    /* Slight padding to let shadows breathe */
}

.explore-item:hover {
    transform: translateY(-8px) !important;
}

.explore-item .explore-thumb {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(25, 47, 89, 0.08) !important;
}

.explore-item .explore-thumb img {
    border-radius: 12px;
    width: 100%;
}

/* 7. Blog Cards */
.post-card-16 {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(25, 47, 89, 0.05) !important;
    border: none !important;
    transition: all 0.4s ease !important;
    overflow: hidden;
    background: #fff !important;
}

.post-card-16:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(25, 47, 89, 0.1) !important;
}

.post-card-16 .post-thumb img {
    border-radius: 20px 20px 0 0 !important;
    transition: transform 0.5s ease;
}

.post-card-16:hover .post-thumb img {
    transform: scale(1.05);
}

/* 8. Testimonial Section */
.testi-item-12 {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(25, 47, 89, 0.05) !important;
    padding: 40px !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease !important;
}

.testi-item-12:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(25, 47, 89, 0.1) !important;
}

.testi-item-12 .author-img img {
    border: 3px solid #3aadcc;
    padding: 2px;
    background: #fff;
}

/* 9. General Buttons */
.ed-primary-btn {
    border-radius: 50px !important;
    background: #192f59 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 14px 35px !important;
    box-shadow: 0 8px 25px rgba(25, 47, 89, 0.2) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ed-primary-btn:hover {
    background: #3aadcc !important;
}


/* ========================================================
   11. Explore Carousels (Centers, Awards, Associations)
======================================================== */
.explore-item {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 25px !important;
    box-shadow: 0 10px 30px rgba(25, 47, 89, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(7, 166, 152, 0.15) !important;
    border-color: rgba(7, 166, 152, 0.3) !important;
}

.explore-thumb {
    width: 100% !important;
    height: 220px !important;
    /* Uniform height for all carousels */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    background: #f8fafc;
    /* Subtle background */
    padding: 20px;
    transition: background 0.4s ease;
}

.explore-item:hover .explore-thumb {
    background: #ffffff;
}

.explore-thumb img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    /* PREVENTS IMAGES FROM BEING CUT OFF */
    border: none !important;
    border-radius: 0 !important;
    transition: transform 0.5s ease;
    box-shadow: none !important;
}

.explore-item:hover .explore-thumb img {
    transform: scale(1.08);
    /* Smooth zoom effect */
}

/* Overrides for Dark Section (explore-style-2) */
.explore-style-2 {
    background: #112140 !important;
}

.explore-style-2 .explore-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.explore-style-2 .explore-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(58, 173, 204, 0.4) !important;
}

.explore-style-2 .explore-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.explore-style-2 .explore-item:hover .explore-thumb {
    background: transparent;
}

/* 12. Hero Inquiry Form Shared Styles */
.hero-inquiry-form {
    padding: 15px;
    border: 1px dashed #192f59 !important;
    border-radius: 12px;
}

.hero-inquiry-form .form-control,
.hero-inquiry-form .form-select {
    height: 45px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 15px;
    color: #495057;
    box-shadow: none;
}

.hero-inquiry-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'12\' viewBox=\'0 0 12 12\'><path fill=\'%23343a40\' d=\'M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z\'/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.hero-inquiry-form .form-control:focus,
.hero-inquiry-form .form-select:focus {
    border-color: #192f59;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(25, 47, 89, 0.1);
}

.hero-inquiry-form textarea.form-control {
    height: auto;
    min-height: 90px;
}

.hero-inquiry-form .submit-btn {
    background-color: #192f59;
    color: #fff;
    border-radius: 25px;
    height: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-inquiry-form .submit-btn:hover {
    background-color: #112140;
    color: #fff;
}

/* ========================================================
   13. Our Centers Section Styles
   ======================================================== */
.centers-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.state-tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0px;
}

.state-tab-btn {
    background-color: #0b3c95; /* Deep navy blue matching screenshot */
    color: #ffffff !important;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(11, 60, 149, 0.15);
}

.state-tab-btn:hover {
    background-color: #00b0f0;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 176, 240, 0.3);
}

.state-tab-btn.active {
    background-color: #00b0f0; /* Bright cyan/light blue active state */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 176, 240, 0.3);
    font-weight: 700;
}

.centers-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.centers-card {
    background-color: #f4f8ff; /* Soft greyish blue background */
    border: 1px solid #e1ecf7; /* Very subtle border */
    border-radius: 16px;
    padding: 40px 30px 45px 30px;
    box-shadow: 0 4px 20px rgba(25, 47, 89, 0.02);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.centers-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #192f59;
    text-align: center;
    margin-bottom: 35px;
}

.centers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Nicely spaced locations horizontally */
    width: 100%;
}

/* Location item link */
.location-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #4b5563 !important; /* Dark grey text */
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-item:hover {
    color: #00b0f0 !important; /* Bright blue hover */
    transform: translateY(-2px);
}

.location-item i {
    color: #0b3c95; /* Dark blue pin icon matching screenshot */
    font-size: 20px;
}

/* Smooth fade transitions */
.fade-transition {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-transition.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .centers-card {
        padding: 30px 20px 35px 20px;
    }
    .centers-card-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .centers-list {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .location-item {
        font-size: 16px;
    }
}