/********** KAP Institute Premium Design System **********/
:root {
    --primary: #b53743;
    --primary-dark: #8c2832;
    --primary-light: #e05e6b;
    --primary-glow: rgba(181, 55, 67, 0.25);
    --secondary: #394473;
    --accent: #d4a853;
    --light: #f7f8fc;
    --dark: #0f1b2d;
    --dark-surface: #162236;
    --text-color: #4a5568;
    --heading-color: #1a202c;
    --surface: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 25px rgba(181, 55, 67, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: 0.2s ease;
}

/* ── Global ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
   font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: 'Inter', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

a {
    transition: var(--transition);
    text-decoration: none;
}

img {
    max-width: 100%;
}

section {
    position: relative;
}

/* ── Utility Classes ── */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.text-dark {
    color: var(--dark) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.object-fit-cover {
    object-fit: cover;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.section-label {
   font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(181, 55, 67, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7% !important;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: .5;
    transition: opacity 0.15s ease;
}

/* ── Buttons ── */
.btn {
   font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-dark);
    transition: var(--transition);
    z-index: -1;
    border-radius: 50px;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(181, 55, 67, 0.45);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/* ── Navbar ── */
.navbar {
    padding: 0.8rem 0;
    transition: var(--transition);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    max-height: 55px;
    transition: var(--transition);
}

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

.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-light .navbar-nav .nav-link {
   font-family: 'Inter', sans-serif;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 16px;
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 16px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: calc(100% - 32px);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        border: none;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-md);
        padding: 0.5rem 0;
        margin-top: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
    }

    .navbar .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 0;
    }
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(181, 55, 67, 0.08);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* ── Hero Section ── */
.hero-slide {
    height: 90vh;
    min-height: 600px;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.8) 0%, rgba(15, 27, 45, 0.5) 50%, rgba(181, 55, 67, 0.3) 100%);
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
   font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    max-width: 550px;
}

/* ── Page Headers ── */
.page-header {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 80px 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.82), rgba(181, 55, 67, 0.3));
    z-index: 1;
}

.page-header-inner {
    position: relative;
    z-index: 2;
}

/* ── Section Titles ── */
.section-title {
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* ── Card Styles ── */
.card-modern {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    transition: var(--transition);
    height: 100%;
}

.card-modern img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card-modern:hover img {
    transform: scale(1.06);
}

.card-title {
    color: var(--heading-color);
    font-weight: 700;
}

.card-modern:hover .card-title {
    color: var(--primary);
}

/* ── Course Cards ── */
.course-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: none;
    background: #fff;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.course-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-content {
    padding: 24px;
    text-align: center;
}

.course-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.course-item .course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, rgba(181, 55, 67, 0.85), rgba(15, 27, 45, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-item:hover .course-overlay {
    opacity: 1;
}

/* ── Stats Section ── */
.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-surface) 50%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(181, 55, 67, 0.08), transparent 50%);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(181, 55, 67, 0.3);
}

.stat-number {
   font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Feature Cards ── */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(181, 55, 67, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(181, 55, 67, 0.1), rgba(181, 55, 67, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: scale(1.1);
}

/* ── Testimonials ── */
.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-card {
    border-radius: var(--radius) !important;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.review-swiper {
    padding-bottom: 50px;
}

.review-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary);
}

/* ── CTA Banner ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('') no-repeat center/cover;
    opacity: 0.1;
}

/* ── Footer ── */
.footer {
    background: var(--dark);
    color: #fff;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer h4 {
    color: #fff;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
   font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.footer .btn-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer .btn-link:hover {
    color: var(--primary);
    transform: translateX(6px);
}

.footer .btn-social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer .btn-social:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
}

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: #FFF;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-glow 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 28px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-primary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--primary-dark);
}

/* ── Gallery ── */
.gallery-card {
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

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

/* .gallery-card::after {
    content: '\f002';
   font-family: 'Inter', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 1.5rem;
    background: rgba(181, 55, 67, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
} */

.gallery-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-img {
    width: 100%;
    height: 80vh;
    object-fit: contain;
}

/* ── Blog ── */
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

/* ── Nav Pills (Gallery filters) ── */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
   font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

/* ── Forms ── */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 2px solid #e2e8f0;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(181, 55, 67, 0.1);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
    .hero-slide {
        height: 80vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 991px) {
    .hero-slide {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .navbar-collapse {
        background: var(--surface);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 65vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .section-title h2,
    .display-5 {
        font-size: 1.6rem !important;
    }

    .course-item img {
        height: 200px;
    }

    .card-modern img {
        height: 200px;
    }

    .gallery-img {
        height: 180px;
    }

    .footer {
        padding-top: 50px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }

    .cta-section {
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575px) {
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title h2,
    .display-5 {
        font-size: 1.4rem !important;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .gallery-img {
        height: 150px;
    }
}