/* =================
    HERO SECTION
==================== */
@media (max-width: 575.98px) {

    .hero-img {
        height: 320px;
    }

    .info-section {
        width: 95%;
        padding: 15px;
        margin-top: -60px;
    }

    .info-item {
        position: relative;
        padding: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .info-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: #e0e0e0;
    }

    .info-icon {
        width: 28px;
        height: 28px;
    }

    .info-icon img {
        width: 18px;
    }

    .info-title {
        font-size: 13px;
        line-height: 16px;
    }

    .info-item p {
        font-size: 11px;
        line-height: 16px;
    }

    .border-md-start {
        border-left: none;
    }

    .border-md-end {
        border-right: none;
    }
}


/* ===================================================
   Small: 576px to 768px
=================================================== */
@media (min-width: 576px) and (max-width: 767.98px) {

    .hero-img {
        height: 400px;
    }

    .info-section {
        width: 95%;
        padding: 25px 20px;
        margin-top: -70px;
    }

    .info-item {
        position: relative;
        padding: 18px 0;
    }

    /* Clean horizontal divider */
    .info-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: #e0e0e0;
    }

    /* Remove vertical borders */
    .border-md-start,
    .border-md-end {
        border: none !important;
    }

    /* Slightly larger than mobile */
    .info-icon {
        width: 35px;
        height: 35px;
    }

    .info-icon img {
        width: 22px;
    }

    .info-title {
        font-size: 18px;
        line-height: 22px;
    }

    .info-item p {
        font-size: 14px;
        line-height: 22px;
    }
}


@media (min-width: 768px) and (max-width: 991.98px) {

    .hero-img {
        height: 500px;
    }

    .info-section {
        width: 90%;
        padding: 35px 25px;
        margin-top: -80px;
    }

    /* Make items horizontal */
    .info-item {
        position: relative;
        padding: 10px 20px;
        border: none;
    }

    /* Vertical Divider */
    .info-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 15%;
        right: 0;
        width: 1px;
        height: 70%;
        background: #e0e0e0;
    }

    /* Remove horizontal divider if any */
    .info-item::before {
        display: none;
    }

    /* Remove mobile borders */
    .border-md-start,
    .border-md-end {
        border: none !important;
    }

    /* Slightly balanced sizing */
    .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-icon img {
        width: 24px;
    }

    .info-title {
        font-size: 20px;
        line-height: 24px;
    }

    .info-item p {
        font-size: 15px;
        line-height: 24px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .info-section {
        width: 95%;
    }
}


@media (min-width: 1200px) and (max-width: 1399.98px) {

    .info-section {
        width: 1100px;
    }
}


@media (min-width: 1400px) {

    .info-section {
        width: 1200px;
    }
}

/* ===============
    About Section
================== */
@media (max-width: 575.98px) {

    /* Hide desktop button */
    .about-btn {
        display: none;
    }

    /* Show mobile button */
    .about-button {
        display: inline-flex;
        margin-top: 25px;
    }

    /* Typography scaling */
    .about-title {
        font-size: 28px;
        line-height: 38px;
    }

    .about-text {
        font-size: 15px;
    }

    .about-overlay {
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        width: 95%;
        text-align: center;
    }

    .about-overlay h3 {
        font-size: 10px;
        /* line-height: 26px; */
        white-space: nowrap;
    }

    .overlay-text,
    .overlay-highlight {
        display: inline-block;
    }

    .overlay-highlight {
        padding: 6px 12px;
        margin-left: 6px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .about-btn {
        display: none;
    }

    .about-button {
        display: inline-flex;
        margin-top: 40px;
    }

    .about-title {
        font-size: 34px;
        line-height: 44px;
    }

    .about-overlay {
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        width: 95%;
        text-align: center;
    }

    .about-overlay h3 {
        font-size: 18px;
        line-height: 26px;
        white-space: nowrap;
    }

    .overlay-text,
    .overlay-highlight {
        display: inline-block;
    }

    .overlay-highlight {
        padding: 6px 12px;
        margin-left: 6px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .about-btn {
        display: none;
    }

    .about-button {
        display: inline-flex;
        margin-top: 35px;
    }

    .about-title {
        font-size: 40px;
        line-height: 50px;
    }

    .about-overlay {
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        width: 95%;
        text-align: center;
    }

    .about-overlay h3 {
        font-size: 36px;
        line-height: 26px;
        white-space: nowrap;
    }

    .overlay-text,
    .overlay-highlight {
        display: inline-block;
    }

    .overlay-highlight {
        padding: 6px 12px;
        margin-left: 6px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    /* Show desktop button */
    .about-btn {
        display: inline-flex;
    }

    /* Hide mobile button */
    .about-button {
        display: none;
    }

    .about-title {
        font-size: 46px;
    }

    .about-overlay {
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        width: 95%;
        text-align: center;
    }

    .about-overlay h3 {
        font-size: 20px;
        line-height: 26px;
        white-space: nowrap;
    }

    .overlay-text,
    .overlay-highlight {
        display: inline-block;
    }

    .overlay-highlight {
        padding: 6px 12px;
        margin-left: 6px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .about-btn {
        display: inline-flex;
    }

    .about-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .about-button {
        display: none;
    }

    .about-title {
        font-size: 48px;
    }

    .about-overlay {
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        width: 95%;
        text-align: center;
    }

    .about-overlay h3 {
        font-size: 30px;
        line-height: 26px;
        white-space: nowrap;
    }

    .overlay-text,
    .overlay-highlight {
        display: inline-block;
    }

    .overlay-highlight {
        padding: 6px 12px;
        margin-left: 6px;
    }
}

@media (min-width: 1400px) {

    .about-btn {
        display: inline-flex;
    }

    .about-button {
        display: none;
    }

    .about-title {
        font-size: 50px;
    }
}

/* Ultra Large Screens (1500px – 2000px) */
@media (min-width: 1500px) and (max-width: 2000px) {

    /* Increase container spacing */
    .about-section {
        padding-top: 140px !important;
        padding-bottom: 80px;
    }

    /* Bigger heading */
    .about-title {
        font-size: 60px;
        line-height: 70px;
    }

    /* Increase paragraph width */
    .about-text {
        font-size: 20px;
        line-height: 32px;
        max-width: 700px;
    }

    /* Slightly larger tag */
    .about-tag {
        font-size: 22px;
        height: 52px;
        width: 300px;
    }

    /* Larger desktop button */
    .about-btn {
        width: 170px;
        height: 48px;
        font-size: 18px;
    }

    .about-overlay {
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
        width: 95%;
        text-align: center;
    }

    .about-overlay h3 {
        font-size: 35px;
        line-height: 26px;
        white-space: nowrap;
    }

    .overlay-text,
    .overlay-highlight {
        display: inline-block;
    }

    .overlay-highlight {
        padding: 6px 12px;
        margin-left: 6px;
    }
}


/* =================
    Service Section
==================== */
@media (max-width: 575.98px) {

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

    .services-tag {
        width: auto;
        height: 36px;
        font-size: 14px;
        padding: 0 15px;
    }

    .services-title {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 60px;
    }

    .service-row {
        padding-left: 0px;
    }

    .service-card {
        padding: 60px 15px 30px;
        min-height: auto;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        top: -40px;
    }

    .service-card-title {
        font-size: 16px;
        line-height: 24px;
        max-width: 160px;
    }
    
    .service-card h2 {
        font-size: 14px;
    }

    /* Reduce hover scale on mobile */
    .service-card:hover {
        transform: translateY(-6px) scale(1.02);
    }

    .view-btn {
        width: 130px;
        height: 38px;
        font-size: 14px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .services-section {
        padding: 70px 0;
    }
    
    .service-row {
        padding-left: 0px;
    }

    .services-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 70px;
    }

    .service-icon {
        width: 90px;
        height: 90px;
        top: -45px;
    }

    .service-card {
        padding: 65px 20px 35px;
    }

    .service-card-title {
        font-size: 17px;
    }
    
    .service-card h2 {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .services-title {
        font-size: 40px;
        line-height: 48px;
        margin-bottom: 80px;
    }
    
    .service-row {
        padding-left: 0px;
    }

    .service-card {
        min-height: 300px;
    }

    .service-icon {
        width: 100px;
        height: 100px;
        top: -50px;
    }

    .service-card-title {
        font-size: 18px;
    }
    
    .service-card h2 {
        font-size: 16px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .services-title {
        font-size: 46px;
        line-height: 54px;
    }
    
    .service-row {
        padding-left: 5px;
    }

    .service-card {
        min-height: 300px;
        /* width: 100%; */
    }

    .service-card:hover {
        transform: translateY(-10px) scale(1.04);
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .services-title {
        font-size: 48px;
    }

    .service-card {
        min-height: 300px;
    }

    .service-row {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 1400px) {

    .services-section {
        padding: 120px 0;
    }

    .services-title {
        font-size: 56px;
        line-height: 60px;
        margin-bottom: 110px;
    }

    .service-card {
        padding: 80px 30px 50px;
        min-height: 320px;
    }

    .service-icon {
        width: 120px;
        height: 120px;
        top: -60px;
    }

    .service-card-title {
        font-size: 22px;
        max-width: 220px;
    }
    
    .service-card h2 {
        font-size: 16px;
    }

    .view-btn {
        width: 170px;
        height: 48px;
        font-size: 18px;
    }
}

/* =================
    Members Section
==================== */
@media (max-width: 575.98px) {

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

    .team-tag {
        width: auto;
        height: 36px;
        font-size: 14px;
        padding: 0 15px;
    }

    .team-title {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 60px;
    }

    .team-img {
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }

    .member-head {
        font-size: 16px;
    }

    .team-card p {
        font-size: 14px;
    }

    .team-card:hover {
        transform: translateY(-5px);
    }

    .service-btn {
        width: 130px;
        height: 38px;
        font-size: 14px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .team-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 70px;
    }

    .team-img {
        width: 210px;
        height: 210px;
    }

    .member-head {
        font-size: 17px;
    }

    .team-card p {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .team-title {
        font-size: 40px;
        line-height: 48px;
        margin-bottom: 80px;
    }

    .team-img {
        width: 230px;
        height: 230px;
    }

    .member-head {
        font-size: 18px;
    }

    .team-card p {
        font-size: 16px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .team-title {
        font-size: 46px;
        line-height: 54px;
    }

    .team-img {
        width: 240px;
        height: 240px;
    }

    .team-card:hover {
        transform: translateY(-8px);
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .team-title {
        font-size: 48px;
    }

    .team-img {
        width: 250px;
        height: 250px;
    }

    .members-row {
        padding-left: 10px;
        padding-right: 25px;
    }
    
}

@media (min-width: 1400px) {

    .team-section {
        padding: 120px 0;
    }

    .team-title {
        font-size: 56px;
        line-height: 60px;
        margin-bottom: 110px;
    }

    .team-img {
        width: 300px;
        height: 300px;
    }

    .member-head {
        font-size: 20px;
    }

    .team-card p {
        font-size: 18px;
    }

    .service-btn {
        width: 170px;
        height: 48px;
        font-size: 18px;
    }
}

/* ====================
    Facilities Section
======================= */
@media (max-width: 575.98px) {

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

    .facilities-tag {
        width: auto;
        height: 36px;
        font-size: 14px;
        padding: 0 15px;
    }

    .facilities-title {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 50px;
    }

    .facilities-desc {
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 30px !important;
        padding-left: 0;
        text-align: center;
    }

    /* Remove overlap */
    .facilities-right {
        margin-left: 0;
    }

    .facilities-left .row {
        margin-right: 0;
    }

    .facilities-left {
        padding-left: 7px !important;
    }

    .facility-card {
        height: auto;
        min-height: auto;
        padding: 25px 20px 60px;
        margin-right: 6px;
        width: stretch;
    }
    
    .facility-head  {
        font-size: 14px;
    }
    
    .facility-subhead  {
        font-size: 12px;
        color: #823B70;
    }

    .facilities-image img {
        width: 100%;
        height: auto;
        margin-top: -100px;
        /* margin-left: 6px; */
    }

    .view-button {
        display: none;
    }

    .view-buttons {
        margin-left: 0;
        text-align: center;
    }

    .view-all-btn {
        width: 130px;
        height: 38px;
        font-size: 14px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .facilities-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 70px;
    }

    .facilities-desc {
        margin-top: 0;
        padding-left: 0;
        text-align: center;
    }

    .facilities-right {
        margin-left: 0;
    }

    .facilities-left .row {
        margin-right: 0;
    }

    .facilities-image img {
        width: 100%;
        height: auto;
        margin-top: -100px;
    }

    .facility-card {
        height: auto;
        min-height: auto;
        width: 95% !important;
    }
    
    .facility-head  {
        font-size: 16px;
    }
    
    .facility-subhead  {
        font-size: 12px;
        color: #823B70;
    }

    .facilities-image img {
        width: 100%;
        height: auto;
    }

    .view-button {
        display: none;
    }

    .view-buttons {
        margin-left: 0;
        text-align: center;
    }

    .view-all-btn {
        width: 130px;
        height: 38px;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .facilities-title {
        font-size: 40px;
        line-height: 48px;
        margin-bottom: 80px;
    }

    /* Reduce overlap */
    .facilities-right {
        margin-left: 0 !important;
    }

    .facilities-left .row {
        margin-right: 0 !important;
    }

    .facilities-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .facilities-image img {
        width: 100%;
        height: 500px;
        /* margin-left: 15px; */
        margin-top: -100px;
        max-width: 100%;
        border-radius: 17px;
        display: block;
    }


    .facility-card {
        height: auto;
        min-height: 240px;
    }
    
    .facility-head  {
        font-size: 16px;
    }
    
    .facility-subhead  {
        font-size: 14px;
        color: #823B70;
    }

    .view-button {
        display: none;
    }

    .view-buttons {
        margin-left: 0;
        text-align: center;
    }

    .view-all-btn {
        width: 130px;
        height: 38px;
        font-size: 14px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .facilities-title {
        font-size: 44px;
        line-height: 52px;
    }

    /* Reduce overlap */
    .facilities-right {
        margin-left: -70px;
        /* reduced from -120px */
    }

    .facilities-left .row {
        margin-right: -25px;
        /* reduced from -60px */
    }

    .facility-card {
        min-height: 280px;
        padding: 25px 20px 60px;
    }
    
    .facility-head  {
        font-size: 16px;
    }
    
    .facility-subhead  {
        font-size: 14px;
        color: #823B70;
    }

    /* FIX image distortion */
    .facilities-image img {
        height: 720px;
        width: 110%;
    }

    .view-buttons {
        display: none;
    }

    .view-all-btn {
        width: 140px;
        height: 40px;
        font-size: 15px;
        margin-left: 15px;
    }
}


@media (min-width: 1200px) and (max-width: 1399.98px) {

    .facilities-title {
        font-size: 48px;
    }

    .facilities-image img {
        height: 700px;
        width: 695px;
    }

    .facility-card {
        min-height: 280px;
        padding: 25px 20px 60px;
    }
    
    .facility-head  {
        font-size: 18px;
    }
    
    .facility-subhead  {
        font-size: 16px;
        color: #823B70;
    }

    .view-buttons {
        display: none;
    }

    .view-all-btn {
        width: 140px;
        height: 40px;
        font-size: 15px;
    }
}

@media (min-width: 1400px) {

    .facilities-section {
        padding: 120px 0;
    }

    .facilities-title {
        font-size: 56px;
        line-height: 60px;
        margin-bottom: 110px;
    }

    .facilities-container {
        margin-right: 125px;
    }

    .facilities-desc {
        font-size: 20px;
        line-height: 32px;
    }

    .facility-card {
        min-height: 280px;
        padding: 35px 30px 80px;
    }
    
    .facility-head  {
        font-size: 20px;
    }
    
    .facility-subhead  {
        font-size: 16px;
        color: #823B70;
    }

    .facilities-image img {
        height: 800px;
    }

    .view-buttons {
        display: none;
    }

    .view-all-btn {
        width: 140px;
        height: 40px;
        font-size: 15px;
    }
}

/* ================
    Events Section
=================== */
@media (max-width: 575.98px) {

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

    .events-tag {
        width: auto;
        height: 36px;
        font-size: 14px;
        padding: 0 15px;
    }

    .events-title {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 50px;
    }

    .events-row {
        margin-top: 0;
    }

    .events-row>div {
        padding-left: 12px !important;
        padding-right: 24px !important;
    }

    .event-card {
        flex-direction: column !important;
        width: 100%;
        margin-left: 6px;
    }

    .event-img,
    .event-content {
        width: 100% !important;
    }

    .event-img {
        height: 200px;
    }

    .event-img img {
        border-top-left-radius: 22px;
        border-top-right-radius: 22px;
    }

    .event-content {
        padding: 20px;
        text-align: left;
        /* keep text readable */
    }

    .event-head {
        font-size: 18px;
    }

    .event-content p {
        font-size: 14px;
    }

    .view-all-events {
        width: 130px;
        height: 38px;
        font-size: 14px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .events-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 60px;
    }

    .events-row>div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .event-img {
        height: 220px;
    }

    .event-content {
        padding: 25px;
    }

    .event-head {
        font-size: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .events-title {
        font-size: 40px;
        line-height: 48px;
        margin-bottom: 80px;
    }

    /* Remove custom odd/even padding */
    .events-row>div:nth-child(odd),
    .events-row>div:nth-child(even) {
        padding-left: 10px;
        padding-right: 10px;
    }

    .event-img {
        height: 240px;
    }

    .event-content {
        padding: 30px;
    }

    .event-head {
        font-size: 20px;
    }

    .event-content p {
        font-size: 15px;
    }

    .facilities-left {
        padding-left: 0;
    }
}

@media (max-width: 1199px) {

    .events-title {
        font-size: 42px;
        line-height: 46px;
        margin-bottom: 80px;
    }

    .event-content {
        padding: 20px !important;
        height: auto;
    }

    .event-head {
        font-size: 20px;
    }

    .event-content p {
        font-size: 15px;
    }

    .event-img img {
        width: 100%;
        height: 100%;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .events-title {
        font-size: 48px;
    }

    .event-content {
        padding: 35px;
    }

    .events-row {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1400px) {

    .events-section {
        padding: 120px 0;
    }

    .events-title {
        font-size: 56px;
        line-height: 60px;
        margin-bottom: 110px;
    }

    .event-content {
        padding: 40px;
    }

    .event-head {
        font-size: 24px;
    }

    .event-content p {
        font-size: 18px;
    }

    .view-all-events {
        width: 170px;
        height: 48px;
        font-size: 18px;
    }
}

/* =================
    Gallery Section
==================== */
@media (max-width: 575.98px) {

    .gallery-tag {
        width: 180px;
        height: 38px;
        font-size: 14px;
    }
    
    .gallery-row>div {
        --bs-gutter-x: 40px !important;
    }

    .gallery-title {
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 40px;
    }

    .gallery-card {
        /* margin-left: 10px; */
    }

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

    .gallery-row {
        row-gap: 15px;
    }

    .gallery-btn {
        width: 130px;
        height: 40px;
        font-size: 14px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .gallery-tag {
        width: 220px;
        height: 42px;
        font-size: 16px;
    }

    .gallery-title {
        font-size: 32px;
        line-height: 38px;
        margin-bottom: 60px;
    }

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

    .gallery-row {
        row-gap: 20px;
    }

    .gallery-btn {
        width: 140px;
        height: 42px;
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .gallery-title {
        font-size: 40px;
        line-height: 44px;
        margin-bottom: 80px;
    }

    .gallery-card img {
        height: 220px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .gallery-title {
        font-size: 46px;
        line-height: 48px;
        margin-bottom: 100px;
    }

    .gallery-card img {
        height: 230px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .gallery-title {
        font-size: 50px;
    }

    .gallery-card img {
        height: 240px;
    }

    .gallery-row {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1400px) {

    .gallery-title {
        font-size: 54px;
    }

    .gallery-card img {
        height: 260px;
    }
}