/* -------------------------
   Global Styles & Variables
   ------------------------- */

:root {
    --primary: #082d56;
    --secondary: #5f6770;
    --accent: #ffb347;
    --light-bg: #f5f7fb;
    --dark: #0b1728;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--secondary);
    background-color: #ffffff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;   /* stop horizontal scrolling */
}

/* Typography tweaks */
h1, h2, h3, h4, h5, h6 {
    font-family: "Rajdhani", sans-serif;
    color: var(--primary);
    font-weight: 700;
}

p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* -------------------------
   Top Bar
   ------------------------- */

.top-bar {
    background: var(--dark);
    color: #ffffff;
    font-size: 0.85rem;
}

.top-bar i {
    color: var(--accent);
    margin-right: 4px;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
}

.top-bar .social-links a {
    color: #ffffff;
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.top-bar .social-links a:hover {
    transform: translateY(-2px);
    color: var(--accent);
}

/* -------------------------
   Navbar
   ------------------------- */

.main-nav {
    background: var(--primary);
}

.navbar-brand .logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-family: "Rajdhani", sans-serif;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.brand-text .brand-main {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-text .brand-sub {
    font-size: 0.8rem;
    color: #e5e9f2;
}

.navbar-dark .navbar-nav .nav-link {
    color: #e4e9f3;
    font-weight: 500;
    position: relative;
    padding-right: 0.9rem;
    padding-left: 0.9rem;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 50%;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

/* CTA Button */
.btn-cta {
    background: var(--accent);
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-cta:hover {
    background: #ffd18b;
    transform: translateY(-2px);
    color: var(--primary);
}

/* -------------------------
   Hero / Carousel
   ------------------------- */

.hero-section {
    position: relative;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: calc(100vh - 80px);
    min-height: 450px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide-1 {
    background-image: url("../img/banner-1.jpg");
}

.hero-slide-2 {
    background-image: url("../img/banner-2.jpg");
}

.hero-slide-3 {
    background-image: url("../img/banner-3.jpg");
}

/* Dark overlay */
.hero-slide .overlay {
    background: linear-gradient(120deg, rgba(8, 45, 86, 0.9), rgba(11, 23, 40, 0.85));
    position: absolute;
    inset: 0;
}

/* Hero text */
.hero-caption {
    position: relative;
    color: #ffffff;
    z-index: 2;
    max-width: 580px;
}

.hero-caption h1 {
    color: #ffffff;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-caption p {
    font-size: 1rem;
    color: #e0e3f1;
}

.hero-tagline {
    font-size: 0.9rem;
    color: #ffd18b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-buttons .btn-outline-light {
    border-radius: 999px;
}

/* Hero side card */
.hero-card,
.hero-highlight-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.6rem;
    border-radius: 1.2rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.hero-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-card ul li,
.hero-highlight-box ul li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.hero-card ul li i {
    color: var(--primary);
    margin-right: 6px;
}

.hero-highlight-box h4 {
    margin-bottom: 0.8rem;
}

.hero-highlight-box ul {
    margin-bottom: 0;
}

/* Info pills on slide 2 */
.info-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(8, 45, 86, 0.92);
    padding: 0.9rem 1rem;
    border-radius: 999px;
    color: #ffffff;
    margin-bottom: 0.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.info-pill i {
    font-size: 1.5rem;
    color: var(--accent);
}

.info-pill h5 {
    color: #ffffff;
    margin-bottom: 0.15rem;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 5px #000);
}

/* -------------------------
   Section Common Styles
   ------------------------- */

.section-padding {
    padding: 80px 0;
}

.section-bg-soft {
    background: var(--light-bg);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.7rem auto 0;
}

/* -------------------------
   About Section
   ------------------------- */

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper::before {
    content: "";
    position: absolute;
    inset: 12px -25px auto auto;
    border-radius: 1.2rem;
    border: 2px dashed rgba(255, 179, 71, 0.7);
    height: 70%;
    z-index: -1;
}

@media (max-width: 767.98px){
    .about-img-wrapper::before {
    content: "";
    position: absolute;
    display: none;
    inset: 12px -25px auto auto;
    border-radius: 1.2rem;
    border: 2px dashed rgba(255, 179, 71, 0.7);
    height: 70%;
    z-index: -1;
}
}

.about-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    padding: 0.7rem 1.1rem;
    border-radius: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.about-badge h3 {
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.about-badge span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.8rem;
}

.about-list li {
    margin-bottom: 0.4rem;
}

.about-list i {
    color: var(--primary);
    margin-right: 6px;
}

/* -------------------------
   Courses / Services
   ------------------------- */

/* ---------- Courses / Services (updated) ---------- */

/* ---------- Courses / Services (final fix) ---------- */

.course-card {
    background: #ffffff;
    border-radius: 1.1rem;
    border: 1px solid #e1e5f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Top image */
.course-media {
    position: relative;
    overflow: hidden;
}

.course-media img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 1.1rem 1.1rem 0 0;   /* same as card top radius */
    transition: transform 0.4s ease;
}

/* Tag moved to TOP-LEFT so it never hits the icon */
.course-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    background: rgba(8, 45, 86, 0.95);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 3; /* above image */
}

/* Icon: sits between image & content, small overlap only */
.course-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--primary);
    font-size: 1.4rem;
    margin-left: 1.5rem;
    margin-top: -22px;              /* just touches the image edge */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 4;                     /* above everything */
}

/* 360° rotation on icon (not on the circle) */
.course-icon i {
    display: inline-block;
    transition: transform 0.6s ease;
}

/* Text content block */
.course-content {
    padding: 1.5rem 1.5rem 1.5rem;
    padding-top: 1.8rem;           /* ensures text is clearly below icon */
}

.course-card h4 {
    margin-bottom: 0.4rem;
}

.course-duration {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.7rem;
}

.course-duration i {
    margin-right: 4px;
}

/* Hover effects */
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

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

/* Spin the icon on hover */
.course-card:hover .course-icon i {
    transform: rotate(360deg);
}

/* Slight tweak for smaller screens */
@media (max-width: 767.98px) {
    .course-media img {
        height: 190px;
    }
}



/* -------------------------
   Why Choose Us
   ------------------------- */

.why-card {
    padding: 1.6rem 1.4rem;
    background: #ffffff;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #e1e5f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    top: 0;
    left: -25%;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}

.why-card:hover::before {
    transform: translateY(0);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(8, 45, 86, 0.06);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

/* -------------------------
   Achievements / Counters
   ------------------------- */

.achievements-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0f3c70 50%, #0b1728 100%);
    color: #ffffff;
}

.achievements-section h2,
.achievements-section .section-subtitle {
    color: #ffffff;
}

.achievements-section .title-divider {
    background: var(--accent);
}

.achievements-section p {
    color: #d9e2f5;
}

.counter-box {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 1rem;
    padding: 1.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

/* -------------------------
   Gallery
   ------------------------- */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
     cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.9rem;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
    content: "View";
    position: absolute;
    inset: auto 10px 10px auto;
    background: rgba(8, 45, 86, 0.9);
    color: #ffffff;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   Contact Section
   ------------------------- */

.contact-section {
    background: #ffffff;
}

.contact-section p i {
    color: var(--accent);
    margin-right: 6px;
}

.contact-section a {
    text-decoration: none;
    color: inherit;
}

.contact-timing li i {
    color: var(--accent);
    margin-right: 4px;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5f0;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 0.7rem;
}

/* -------------------------
   Map Section
   ------------------------- */

.map-section .ratio > iframe {
    filter: grayscale(0.3);
}

/* -------------------------
   Footer
   ------------------------- */

.footer-section {
    background: #050a14;
    color: #b7bed0;
    font-size: 0.9rem;
}

.footer-section h5 {
    color: #ffffff;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0.3rem 0 0.8rem;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a,
.footer-links span {
    color: #b7bed0;
    text-decoration: none;
}

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

.footer-links i {
    font-size: 0.75rem;
    margin-right: 6px;
}

.footer-social a {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
}

.footer-bottom {
    background: #02050b;
    color: #828aa0;
}

/* -------------------------
   Back To Top Button
   ------------------------- */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* -------------------------
   Scroll Animations (CSS Side)
   ------------------------- */

[data-animate] {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"].animated,
[data-animate="fade-left"].animated {
    transform: translateX(0);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

[data-animate="zoom-in"].animated {
    transform: scale(1);
}

/* Delay attribute */
[data-animate-delay="100"] {
    transition-delay: 0.1s;
}
[data-animate-delay="200"] {
    transition-delay: 0.2s;
}
[data-animate-delay="300"] {
    transition-delay: 0.3s;
}

/* Hero specific animations */
.animate-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.8s ease-out forwards;
}

.animate-right {
    animation: slideRight 0.8s ease-out forwards;
}

.animate-right.delay-1 {
    animation-delay: 0.2s;
}

/* Keyframes */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* -------------------------
   Responsive
   ------------------------- */

@media (max-width: 991.98px) {
    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 70vh;
    }

    .hero-caption h1 {
        font-size: 1.9rem;
    }

    .hero-card,
    .hero-highlight-box {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        text-align: center;
    }

    .section-padding {
        padding: 60px 0;
    }

    .gallery-item img {
        height: 180px;
    }

    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        min-height: 420px;
        height: 75vh;
    }
}



/* -------------------------
   Inner Page Hero (About, etc.)
   ------------------------- */

.page-hero {
    position: relative;
    height: 280px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../img/banner-bg.png"); /* your banner image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(8, 45, 86, 0.9), rgba(11, 23, 40, 0.85));
    mix-blend-mode: multiply;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-family: "Rajdhani", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.page-hero-subtitle {
    margin: 0;
    color: #e0e6f5;
    font-size: 0.95rem;
}

/* Breadcrumb styling on hero */
.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
}

.page-hero .breadcrumb-item a {
    color: #ffd18b;
    text-decoration: none;
    font-size: 0.85rem;
}

.page-hero .breadcrumb-item a:hover {
    text-decoration: underline;
}

.page-hero .breadcrumb-item.active {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .page-hero {
        height: 220px;
    }

    .page-hero-title {
        font-size: 1.9rem;
    }

    .page-hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}








/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 70px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
}

/* Call Button */
.call-btn {
    background: #082d56; /* your main theme color */
}

/* Hover Effects */
.float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* If needed for very small devices */
@media (max-width: 480px) {
    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}
