/* =========================================================
   INDEX PAGE CSS
   Nav Bharat Paramedical Institute
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
}

button {
    font-family: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #0d6efd;

    --primary-dark: #084298;

    --secondary: #00a884;

    --dark: #111827;

    --text: #536174;

    --light: #f5f8fc;

    --white: #ffffff;

    --border: #e6ebf2;

    --shadow:
        0 15px 40px rgba(22, 34, 51, 0.08);

    --radius: 14px;
}


/* =========================================================
   COMMON CONTAINER
========================================================= */

.container {

    width: min(1180px, 92%);

    margin: auto;
}


/* =========================================================
   SECTION
========================================================= */

.section {

    padding: 90px 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {

    text-align: center;

    max-width: 750px;

    margin: 0 auto 50px;
}

.section-subtitle {

    display: inline-block;

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

.section-heading h2 {

    font-size: 38px;

    line-height: 1.25;

    color: var(--dark);

    margin-bottom: 18px;
}

.section-heading h2 span {

    color: var(--primary);
}

.section-heading p {

    color: var(--text);

    font-size: 14px;
}


/* =========================================================
   BUTTON
========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 13px 25px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.btn-primary {

    background: var(--primary);

    color: var(--white);
}

.btn-primary:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);
}

.btn-outline {

    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {

    background: var(--white);

    color: var(--primary);
}


/* =========================================================
   NAVBAR
========================================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: var(--white);

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.06);
}

.navbar {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display: flex;

    align-items: center;

    gap: 10px;
}

.logo-icon {

    width: 45px;

    height: 45px;

    display: grid;

    place-items: center;

    background: var(--primary);

    color: var(--white);

    border-radius: 10px;

    font-size: 20px;
}

.logo h2 {

    font-size: 20px;

    line-height: 1.1;

    color: var(--dark);
}

.logo span {

    display: block;

    color: var(--primary);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.7px;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 30px;
}

.nav-links a {

    position: relative;

    color: #39465a;

    font-size: 14px;

    font-weight: 500;

    transition: 0.3s;
}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 2px;

    background: var(--primary);

    transition: 0.3s;
}

.nav-links a:hover {

    color: var(--primary);
}

.nav-links a:hover::after {

    width: 100%;
}


/* =========================================================
   NAV CALL BUTTON
========================================================= */

.nav-call {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 17px;

    background: var(--primary);

    color: var(--white);

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s;
}

.nav-call:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {

    display: none;

    border: none;

    background: transparent;

    color: var(--dark);

    font-size: 25px;

    cursor: pointer;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {

    min-height: 650px;

    position: relative;

    display: flex;

    align-items: center;

    background:
        url("../images/hero.jpg")
        center center / cover no-repeat;
}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 20, 45, 0.90),
            rgba(5, 20, 45, 0.60),
            rgba(5, 20, 45, 0.20)
        );
}

.hero-content {

    position: relative;

    z-index: 2;
}

.hero-text {

    max-width: 700px;

    color: var(--white);
}

.hero-small-title {

    display: inline-block;

    color: #b8dcff;

    font-size: 16px;

    font-weight: 500;

    margin-bottom: 12px;
}

.hero h1 {

    font-size: 58px;

    line-height: 1.15;

    margin-bottom: 22px;

    font-weight: 700;
}

.hero h1 span {

    display: block;

    color: #5db4ff;
}

.hero p {

    max-width: 650px;

    color: #e8eef7;

    font-size: 15px;

    margin-bottom: 30px;
}

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* =========================================================
   QUICK INFORMATION
========================================================= */

.quick-info {

    position: relative;

    z-index: 5;

    margin-top: -60px;
}

.quick-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    background: var(--white);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);
}

.quick-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 28px 20px;

    border-right: 1px solid var(--border);
}

.quick-card:last-child {

    border-right: none;
}

.quick-card > i {

    color: var(--primary);

    font-size: 28px;
}

.quick-card h3 {

    font-size: 15px;

    color: var(--dark);

    margin-bottom: 2px;
}

.quick-card p {

    color: var(--text);

    font-size: 12px;
}


/* =========================================================
   ABOUT SECTION
========================================================= */

.about-section {

    background: var(--white);
}

.about-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}


/* =========================================================
   ABOUT IMAGE
========================================================= */

.about-image {

    position: relative;
}

.about-image img {

    height: 500px;

    object-fit: contain;

    border-radius: var(--radius);
}

.experience-box {

    position: absolute;

    right: -20px;

    bottom: 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 20px;

    background: var(--white);

    border-radius: 12px;

    box-shadow: var(--shadow);
}

.experience-box strong {

    color: var(--primary);

    font-size: 34px;
}

.experience-box span {

    max-width: 100px;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   ABOUT CONTENT
========================================================= */

.about-content h2 {

    font-size: 38px;

    line-height: 1.25;

    color: var(--dark);

    margin-bottom: 18px;
}

.about-content h2 span {

    color: var(--primary);
}

.about-content p {

    color: var(--text);

    font-size: 14px;

    margin-bottom: 15px;
}


/* =========================================================
   ABOUT POINTS
========================================================= */

.about-points {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin: 25px 0;
}

.about-points div {

    color: var(--dark);

    font-size: 14px;

    font-weight: 600;
}

.about-points i {

    color: var(--secondary);

    margin-right: 5px;
}


/* =========================================================
   FACILITIES
========================================================= */

.facility-section {

    background: var(--light);
}

.facility-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.facility-card {

    padding: 32px 25px;

    background: var(--white);

    border-radius: var(--radius);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);

    transition: all 0.3s ease;
}

.facility-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow);
}

.facility-icon {

    width: 55px;

    height: 55px;

    display: grid;

    place-items: center;

    background: #eaf3ff;

    color: var(--primary);

    border-radius: 10px;

    font-size: 22px;

    margin-bottom: 20px;
}

.facility-card h3 {

    font-size: 18px;

    color: var(--dark);

    margin-bottom: 10px;
}

.facility-card p {

    color: var(--text);

    font-size: 14px;
}


/* =========================================================
   COURSES SECTION
========================================================= */

.courses-section {

    background: var(--white);
}

.course-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.course-card {

    padding: 28px 24px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition: all 0.3s ease;
}

.course-card:hover {

    transform: translateY(-7px);

    border-color: transparent;

    box-shadow: var(--shadow);
}

.course-icon {

    width: 55px;

    height: 55px;

    display: grid;

    place-items: center;

    background: #eaf3ff;

    color: var(--primary);

    border-radius: 50%;

    font-size: 22px;

    margin-bottom: 17px;
}

.course-type {

    display: inline-block;

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    margin-bottom: 4px;
}

.course-card h3 {

    color: var(--dark);

    font-size: 28px;

    margin-bottom: 3px;
}

.course-card h4 {

    color: var(--dark);

    font-size: 15px;

    min-height: 45px;

    margin-bottom: 10px;
}

.course-card p {

    color: var(--text);

    font-size: 13px;

    margin-bottom: 18px;
}

.course-duration {

    padding: 9px 10px;

    background: var(--light);

    color: #445066;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 18px;
}

.course-duration i {

    color: var(--primary);

    margin-right: 5px;
}

.course-link {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;
}

.center-btn {

    text-align: center;

    margin-top: 45px;
}


/* =========================================================
   PARAMEDICAL INFORMATION
========================================================= */

.info-section {

    background: var(--light);
}

.info-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.info-content h2 {

    font-size: 38px;

    line-height: 1.25;

    color: var(--dark);

    margin-bottom: 18px;
}

.info-content h2 span {

    color: var(--primary);
}

.info-content p {

    color: var(--text);

    font-size: 14px;

    margin-bottom: 15px;
}

.info-list {

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.info-item {

    display: flex;

    gap: 18px;

    padding: 20px;

    background: var(--white);

    border-radius: 12px;
}

.info-number {

    min-width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #eaf3ff;

    color: var(--primary);

    font-weight: 700;
}

.info-item h3 {

    color: var(--dark);

    font-size: 15px;

    margin-bottom: 4px;
}

.info-item p {

    color: var(--text);

    font-size: 12px;
}


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {

    background: var(--white);
}

.contact-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 55px;

    background:
        linear-gradient(
            120deg,
            #0d6efd,
            #084298
        );

    color: var(--white);

    border-radius: 20px;
}

.contact-content {

    max-width: 600px;
}

.contact-content .section-subtitle {

    color: #b9ddff;
}

.contact-content h2 {

    color: var(--white);

    font-size: 36px;

    line-height: 1.25;

    margin-bottom: 15px;
}

.contact-content h2 span {

    color: #7ed0ff;
}

.contact-content p {

    color: #e3efff;

    font-size: 14px;
}

.contact-actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.contact-action {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 190px;

    padding: 13px 18px;

    background: var(--white);

    color: var(--dark);

    border-radius: 10px;

    transition: 0.3s;
}

.contact-action:hover {

    transform: translateY(-3px);
}

.contact-action > i {

    font-size: 23px;
}

.contact-action small {

    display: block;

    color: var(--text);

    font-size: 10px;
}

.contact-action strong {

    font-size: 13px;
}

.contact-action.call > i {

    color: var(--primary);
}

.contact-action.whatsapp > i {

    color: #25d366;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    padding-top: 70px;

    background: #101827;

    color: var(--white);
}

.footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1.4fr;

    gap: 40px;

    padding-bottom: 50px;
}

.footer-logo {

    display: flex;

    align-items: center;

    gap: 10px;
}

.footer-logo h2 {

    color: var(--white);

    font-size: 20px;

    line-height: 1.1;
}

.footer-logo span {

    display: block;

    color: #5db4ff;

    font-size: 10px;

    font-weight: 600;
}

.footer-about > p {

    max-width: 300px;

    color: #9ca9bb;

    font-size: 13px;

    margin-top: 18px;
}

.footer-links h3,
.footer-contact h3 {

    color: var(--white);

    font-size: 16px;

    margin-bottom: 20px;
}

.footer-links {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-links a {

    color: #9ca9bb;

    font-size: 13px;

    transition: 0.3s;
}

.footer-links a:hover {

    color: var(--white);

    padding-left: 4px;
}

.footer-contact p {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: #9ca9bb;

    font-size: 13px;

    margin-bottom: 13px;
}

.footer-contact i {

    color: #5db4ff;

    margin-top: 5px;
}

.social-links {

    display: flex;

    gap: 8px;

    margin-top: 20px;
}

.social-links a {

    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    background: #1b2638;

    color: var(--white);

    border-radius: 50%;

    font-size: 13px;

    transition: 0.3s;
}

.social-links a:hover {

    background: var(--primary);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {

    padding: 20px 0;

    border-top: 1px solid #202c3e;
}

.footer-bottom p {

    color: #8794a8;

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   FLOATING CALL / WHATSAPP
========================================================= */

.floating-buttons {

    position: fixed;

    right: 20px;

    bottom: 20px;

    z-index: 999;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.floating-buttons a {

    width: 52px;

    height: 52px;

    display: grid;

    place-items: center;

    color: var(--white);

    border-radius: 50%;

    font-size: 21px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2);

    transition: 0.3s;
}

.floating-buttons a:hover {

    transform: scale(1.08);
}

.floating-call {

    background: var(--primary);
}

.floating-whatsapp {

    background: #25d366;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .nav-links {

        gap: 17px;
    }

    .nav-call {

        display: none;
    }

    .hero h1 {

        font-size: 48px;
    }

    .quick-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .quick-card:nth-child(2) {

        border-right: none;
    }

    .facility-grid,
    .course-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .section {

        padding: 65px 0;
    }


    /* NAVBAR */

    .navbar {

        min-height: 70px;
    }

    .menu-btn {

        display: block;
    }

    .nav-links {

        position: absolute;

        top: 70px;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        padding: 20px;

        background: var(--white);

        box-shadow:
            0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-links.show {

        display: flex;
    }

    .nav-links a::after {

        display: none;
    }


    /* HERO */

    .hero {

        min-height: 570px;
    }

    .hero h1 {

        font-size: 40px;
    }

    .hero p {

        font-size: 14px;
    }


    /* QUICK INFO */

    .quick-info {

        margin-top: -30px;
    }

    .quick-grid {

        grid-template-columns: 1fr;
    }

    .quick-card {

        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .quick-card:last-child {

        border-bottom: none;
    }


    /* ABOUT */

    .about-grid {

        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-image img {

        height: 350px;
    }

    .experience-box {

        right: 10px;
    }


    /* HEADINGS */

    .section-heading h2,
    .about-content h2,
    .info-content h2 {

        font-size: 30px;
    }


    /* GRIDS */

    .facility-grid,
    .course-grid {

        grid-template-columns: 1fr;
    }


    /* INFO */

    .info-grid {

        grid-template-columns: 1fr;

        gap: 40px;
    }


    /* CONTACT */

    .contact-box {

        padding: 35px 25px;

        flex-direction: column;

        align-items: flex-start;
    }

    .contact-content h2 {

        font-size: 30px;
    }

    .contact-actions {

        width: 100%;
    }

    .contact-action {

        width: 100%;
    }


    /* FOOTER */

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 30px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {

        width: 90%;
    }

    .logo h2 {

        font-size: 17px;
    }

    .logo span {

        font-size: 8px;
    }

    .logo-icon {

        width: 40px;

        height: 40px;
    }

    .hero h1 {

        font-size: 34px;
    }

    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }

    .btn {

        width: 100%;
    }

    .about-points {

        grid-template-columns: 1fr;
    }

    .floating-buttons {

        right: 12px;

        bottom: 12px;
    }

    .floating-buttons a {

        width: 48px;

        height: 48px;
    }

}