/* Responsive */
@media (max-width: 991px) {
    .logo-box {
        width: 180px;
        height: 100px;
        position: relative;
        top: 0;
        border-radius: 15px;
        margin-left: 100px;
    }

    .navbar-area {
        margin-left: 0;
    }

    .w-100 {
        width: 100% !important;
    }

    .top-bar {
        text-align: center;
    }

    .top-info span {
        display: block;
        margin-bottom: 8px;
    }

    .nav-icons {
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 1400px) and (min-width: 992px) {
    .logo-box {
        top: -120px;
    }

    .social-icons.d-flex.align-items-center {
        margin-left: 144px;
    }
}

@media (max-width: 768px) {
    .top-header-content {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-info {
        justify-content: center !important;
    }
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .flex-lg-row {
        flex-direction: unset !important;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .logo-box {
        top: -145px;
    }
}

/* about */

/* Floating Animation */
@keyframes floatCard {
    0% {
        transform: translateY(0);
    }

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

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

/* Responsive */
@media (max-width: 768px) {
    .floating-card {
        min-width: 110px;
        padding: 12px;
    }

    .card-one {
        left: 0;
        top: 10px;
    }

    .card-two {
        right: 0;
        bottom: 20px;
    }

    .card-three {
        left: 20%;
        bottom: -10px;
    }
}

@media (max-width: 991px) {
    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
        max-width: 100%;
    }

    .hero-text {
        margin: auto auto 30px;
    }

    .hero-features {
        align-items: center;
    }

    .hero-btn-group {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-section {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-image {
        height: 450px;
    }

    .hero-overlay-content {
        bottom: 25px;
    }

    .hero-overlay-content h2 {
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 320px;
        border-radius: 20px;
    }

    .hero-image-wrapper {
        border-radius: 20px;
    }

    .hero-overlay-content h2 {
        font-size: 26px;
    }

    .hero-overlay-content p {
        font-size: 16px;
    }
}

/* =========================
TABLET
========================= */
@media (max-width: 991px) {
    .social-bg::after {
        display: none;
    }

    .social-bg,
    .contact-bg {
        min-height: auto;
        text-align: center;
    }

    .social-bg .d-flex,
    .contact-bg .d-flex {
        justify-content: center !important;
        flex-wrap: wrap;
        padding: 12px 15px !important;
    }

    .contact-item {
        border-right: none;
        margin: 5px 10px;
        padding-right: 0;
    }

    .powered-badge {
        margin-top: 8px;
        margin-left: 0;
    }

    .navbar-collapse {
        padding: 20px 0;
        text-align: center;
    }

    .navbar-nav {
        margin-bottom: 15px;
    }

    .navbar-nav .nav-link {
        margin: 8px 0;
    }

    .admission-btn {
        display: inline-block;
        margin-top: 10px;
    }
}

/* =========================
MOBILE
========================= */
@media (max-width: 576px) {
    .logo {
        max-height: 60px;
    }

    .social-bg .d-flex {
        flex-direction: row;
        gap: 10px;
    }

    .social-icon {
        margin-right: 10px;
    }

    .contact-bg .d-flex {
        flex-direction: column;
        gap: 10px;
        padding: 12px !important;
    }

    .contact-item {
        justify-content: center;
        width: 100%;
        margin: 0;
        font-size: 13px;
    }

    .contact-item a {
        font-size: 13px;
        word-break: break-word;
    }

    .powered-badge {
        font-size: 12px;
        padding: 7px 12px;
    }

    .admission-btn {
        width: 100%;
    }
}

/* Smooth slide */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Prevent content jump */
body.sticky-padding {
    padding-top: 80px;
}

/* Responsive */
@media (max-width: 991px) {
    .border-start-custom {
        border-left: none;
        padding-left: 0;
    }

    .footer-box p {
        max-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-contact .contact-item {
        justify-content: start;
        text-align: left;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .stat-box {
        padding: 40px 15px;
    }

    .stat-box h2 {
        font-size: 38px;
    }

    .stat-box p {
        font-size: 16px;
    }

    .shape-left,
    .shape-right {
        width: 80px;
        height: 80px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .stat-box {
        border-right: none;
        border-bottom: 1px solid #e3e3e3;
        padding: 50px 20px;
    }

    .stat-box h2 {
        font-size: 46px;
    }

    .stat-box p {
        font-size: 18px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .program-area {
        padding: 70px 0;
    }

    .section-title2 h2 {
        font-size: 36px;
    }

    .about-content {
        margin-bottom: 40px;
    }

    .program-students,
    .program-call {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        top: auto;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .section-title2 h2 {
        font-size: 30px;
    }

    .program-search-outer {
        flex-direction: column;
    }

    .program-search-outer input,
    .program-search-outer .btn2 {
        width: 100%;
        border-radius: 0;
    }

    .program-search-cta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .program-call {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 991px) {
    .main-navbar.sticky .logo-box,
    .main-navbar.fixed-top .logo-box {
        top: -10px;
        width: 180px;
        height: 85px;
        left: 10px;
        border-radius: 0 0 15px 15px;
    }

    .main-navbar.sticky .logo-box img,
    .main-navbar.fixed-top .logo-box img {
        width: 85%;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .main-navbar.sticky .logo-box,
    .main-navbar.fixed-top .logo-box {
        width: 150px;
        height: 75px;
        top: -5px;
        left: 8px;
    }
}

/* =========================
   1400px and below
========================= */
@media (max-width: 1400px) {
    .row.g-2.mt-4 {
        top: -180px;
        left: 28px;
        max-width: 500px;
    }

    .row.g-1.mt-4.content {
        width: 500px;
        top: -735px;
        right: 35px;
    }
}

/* =========================
   Tablet
========================= */
@media (max-width: 991px) {
    .left-card,
    .right-card {
        margin-top: 0 !important;
    }

    .health-card .img img {
        height: 420px;
    }

    .right-card .health-care-content {
        top: auto;
        left: auto;
        max-width: 100%;
        margin: -60px 20px 30px;
        padding: 30px;
    }

    .row.g-2.mt-4,
    .row.g-1.mt-4.content {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-top: 30px;
    }

    .health-care-content.cg,
    .health-care-content.ch {
        top: 0;
    }

    .col-lg-6.pedagogical {
        min-height: auto;
    }

    .health-care-content h3 {
        font-size: 30px;
    }

    .health-care-content h4 {
        font-size: 22px;
    }
}

/* =========================
   Mobile
========================= */
@media (max-width: 576px) {
    .health-card .img img {
        height: 300px;
    }

    .health-care-content {
        padding: 20px !important;
    }

    .health-care-content h3 {
        font-size: 24px;
    }

    .health-care-content h4 {
        font-size: 20px;
    }

    .health-care-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .more-health-care p {
        font-size: 18px;
    }
}

@media (min-width: 1400px) {
    .row.align-items-center.gy-5 {
        height: 840px;
    }
}

@media (min-width: 1200px) {
    .row.align-items-center.gy-5 {
        height: 870px;
    }
}

/* 992px–1200px */
@media (min-width: 992px) and (max-width: 1200px) {
    .row.align-items-center.gy-5 {
        height: 950px;
    }
}

@media (max-width: 576px) {
    .bg-gold .btn {
        width: 100% !important;
        min-height: 50px;
    }
}

@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        padding: 20px;
    }
}

.search-dropdown {
    width: 350px;
    max-width: calc(100vw - 30px);
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 991.98px) {
    /* Top Header */
    .top-header .row {
        flex-direction: column;
    }

    .social-bg,
    .contact-bg {
        width: 100%;
    }

    .contact-bg .d-flex {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 10px;
        padding: 15px !important;
    }

    .contact-item {
        display: block;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    /* Navbar */

    .navbar-collapse {
        margin-top: 15px;
        background: #fff;
        padding: 15px;
        border-radius: 10px;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #eee;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
    }

    /* Mega Menu */
    .mega-dropdown {
        position: relative !important;
    }

    .mega-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        margin-top: 0 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        background: #002855;
        padding: 15px !important;
    }

    .mega-menu .row {
        display: block;
    }

    .mega-menu .col-md-6,
    .mega-menu .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Search Dropdown */
    .search-dropdown {
        width: 100%;
    }

    /* Admission Button */
    .admission-btn {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    /* Powered By */
    .contact-bg .col-md-3 {
        width: 100%;
        text-align: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        max-height: 60vh;
        /* limits height on mobile */
        overflow-y: auto;
        /* enables vertical scroll */
        overflow-x: hidden;
    }
}

/* Responsive Breakpoints */

/* Extra Large Devices (1200px and down) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-image-right img {
        max-width: 300px;
    }
}

/* Large Devices (992px and down) */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 500px;
    }

    .hero-image-right img {
        max-width: 250px;
    }

    .hero-text-content {
        padding: 1.5rem;
    }
}

/* Medium Devices (768px and down) - Tablet */
@media (max-width: 768px) {
    .hero-image-wrapper {
        min-height: 600px;
    }

    .hero-content-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .hero-text-content {
        padding: 1rem;
        text-align: center;
        z-index: 2;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.95rem;
        margin: 0 auto 1.5rem auto;
    }

    .hero-image-right {
        display: none;
        /* Hide right image on tablets */
    }

    .hero-overlay-content {
        background: linear-gradient(
            135deg,
            rgba(10, 26, 58, 0.95) 0%,
            rgba(10, 26, 58, 0.85) 100%
        );
    }

    .hero-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Small Devices (576px and down) - Mobile */
@media (max-width: 576px) {
    .hero-image-wrapper {
        min-height: 500px;
    }

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

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-text-content {
        padding: 1rem;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .hero-highlight::after {
        height: 2px;
    }
}

/* Extra Small Devices (375px and down) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .hero-image-wrapper {
        min-height: 450px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-image-wrapper {
        min-height: 400px;
    }

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

    .hero-description {
        margin-bottom: 1rem;
    }

    .hero-text-content {
        padding: 0.5rem;
    }
  
}

/* High DPI Screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image {
        background-size: cover;
    }
}

/* Animation for smooth transitions */
.hero-text-content,
.hero-image-right {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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