/* ============================================
   HOME PAGE RESPONSIVE FIXES & ALIGNMENT
   ============================================ */

/* Container Fixes for All Devices */
.home-page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Section General Responsive Improvements */
@media (max-width: 1400px) {
    .container, .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Large Tablet & Medium Desktop (1200px and below) */
@media (max-width: 1200px) {
    /* Offers Section - Cards */
    .offers-description {
        padding: 0 20px;
        font-size: 1.1rem;
    }

    .offer-card {
        padding: 40px 30px;
    }

    .offer-title {
        font-size: 1.4rem;
    }

    .offer-features li {
        font-size: 1rem;
    }

    /* Matchmaker Section */
    .matchmaker-text {
        font-size: 1.05rem;
    }
}

/* Tablet (992px and below) */
@media (max-width: 992px) {
    /* Hero Slider Content Alignment */
    .hero-slide-content {
        padding: 15px;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.4rem !important;
        margin-bottom: 25px;
    }

    .hero-tagline {
        font-size: 1.2rem !important;
        margin-top: 25px;
    }

    /* Section Titles Adjustment */
    .section-title {
        font-size: 1.9rem !important;
    }

    .section-subtitle {
        font-size: 1.1rem !important;
    }

    /* About Section Mobile Fix */
    .about-main-row {
        margin-top: 30px;
    }

    .about-main-row .col-lg-6:first-child {
        margin-bottom: 30px;
    }

    .about-content-wrapper {
        text-align: center;
    }

    .about-heading {
        text-align: center;
        padding-left: 0;
    }

    .about-heading::before {
        display: none;
    }

    .about-text {
        text-align: center;
    }

    /* Offers Section - Stack Cards */
    .offers-row .col-lg-4 {
        margin-bottom: 20px;
    }

    .offers-description {
        font-size: 1.05rem;
    }

    /* Matchmaker Section - Reverse Column Order */
    .matchmaker-section .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .matchmaker-section .col-lg-6:first-child {
        order: 2;
    }

    .matchmaker-section .col-lg-6:last-child {
        order: 1;
    }

    .matchmaker-image-wrapper {
        min-height: 400px;
        margin-bottom: 0;
    }

    .matchmaker-content-wrapper {
        padding: 40px 30px;
    }

    .matchmaker-heading {
        text-align: center;
    }

    .heading-border {
        justify-content: center;
    }

    .matchmaker-text {
        text-align: center;
    }

    .matchmaker-cta {
        text-align: center;
    }

    /* Contact Section */
    .contact-main-row .col-lg-5 {
        margin-bottom: 30px;
    }
}

/* Mobile Large (768px and below) */
@media (max-width: 768px) {
    /* Container Padding */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Slider */
    .hero-slide-content {
        padding: 10px;
    }

    .hero-title {
        font-size: 1.8rem !important;
        letter-spacing: 1px;
    }

    .hero-title::after {
        width: 80px;
        height: 2px;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 20px;
        margin-top: 15px;
    }

    .hero-tagline {
        font-size: 1rem !important;
        margin-top: 20px;
    }

    .hero-buttons {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 35px;
        font-size: 0.95rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    .hero-feature-item {
        font-size: 1.05rem;
        justify-content: center;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.7rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
        padding: 0 15px;
    }

    .section-title-border {
        width: 80px;
        height: 3px;
    }

    /* About Section */
    .about-section {
        padding: 50px 0 !important;
    }

    .about-real-image {
        height: 320px !important;
        border-radius: 15px;
    }

    .about-heading {
        font-size: 1.6rem !important;
        margin-bottom: 20px;
    }

    .about-text {
        font-size: 1rem !important;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    /* Offers Section */
    .offers-section {
        padding: 50px 0 !important;
    }

    .offers-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .offer-card {
        padding: 35px 25px;
    }

    .offer-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .offer-icon i {
        font-size: 2.5rem;
    }

    .offer-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .offer-features li {
        font-size: 0.95rem;
        padding-left: 35px;
        margin-bottom: 15px;
    }

    .offer-features li i {
        font-size: 1.3rem;
    }

    /* Matchmaker Section */
    .matchmaker-image-wrapper {
        min-height: 350px;
    }

    .matchmaker-real-image {
        min-height: 350px !important;
    }

    .matchmaker-content-wrapper {
        padding: 35px 20px;
    }

    .matchmaker-heading {
        font-size: 1.6rem !important;
        margin-bottom: 20px;
    }

    .matchmaker-text {
        font-size: 1rem !important;
        text-align: center;
    }

    .btn-matchmaker {
        padding: 15px 35px;
        font-size: 0.95rem;
        gap: 12px;
    }
}

/* Mobile Medium (576px and below) */
@media (max-width: 576px) {
    /* General Container */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hero Slider */
    .hero-slider-section {
        min-height: 550px;
    }

    .hero-slide-content {
        padding: 15px 10px;
    }

    .hero-title {
        font-size: 1.4rem !important;
        letter-spacing: 0.5px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-title::after {
        width: 60px;
        height: 2px;
        bottom: -8px;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 18px;
        margin-top: 12px;
    }

    .hero-tagline {
        font-size: 0.9rem !important;
        margin-top: 18px;
    }

    .hero-buttons {
        gap: 12px;
        margin: 25px 0;
    }

    .hero-btn {
        max-width: 220px;
        padding: 12px 28px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .hero-feature-item {
        font-size: 0.95rem;
    }

    .hero-feature-item i {
        font-size: 1.3rem;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.4rem !important;
        letter-spacing: 0.5px;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
        padding: 0 10px;
    }

    .section-title-border {
        width: 60px;
        height: 2px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    /* About Section */
    .about-section {
        padding: 40px 0 !important;
    }

    .about-real-image {
        height: 280px !important;
        border-radius: 12px;
    }

    .about-heading {
        font-size: 1.3rem !important;
        margin-bottom: 18px;
        line-height: 1.4;
    }

    .about-text {
        font-size: 0.92rem !important;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* Offers Section */
    .offers-section {
        padding: 40px 0 !important;
    }

    .offers-description-row {
        margin-bottom: 35px;
    }

    .offers-description {
        font-size: 0.92rem;
        line-height: 1.7;
        padding: 0 5px;
    }

    .offer-card {
        padding: 30px 20px;
    }

    .offer-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .offer-icon i {
        font-size: 2.2rem;
    }

    .offer-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
        letter-spacing: 0.5px;
    }

    .offer-features li {
        font-size: 0.9rem;
        padding-left: 30px;
        margin-bottom: 12px;
    }

    .offer-features li i {
        font-size: 1.2rem;
        top: 2px;
    }

    /* Matchmaker Section */
    .matchmaker-image-wrapper {
        min-height: 300px;
    }

    .matchmaker-real-image {
        min-height: 300px !important;
    }

    .matchmaker-content-wrapper {
        padding: 30px 15px;
    }

    .matchmaker-heading {
        font-size: 1.3rem !important;
        margin-bottom: 18px;
        letter-spacing: 0.5px;
    }

    .heading-border {
        margin: 25px 0;
    }

    .heading-border .line-left,
    .heading-border .line-right {
        width: 50px;
        height: 2px;
    }

    .heading-border i {
        font-size: 1.5rem;
        margin: 0 15px;
    }

    .matchmaker-text {
        font-size: 0.92rem !important;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .matchmaker-cta {
        margin-top: 30px;
    }

    .btn-matchmaker {
        padding: 12px 28px;
        font-size: 0.85rem;
        gap: 10px;
        white-space: nowrap;
        max-width: 250px;
    }

    .btn-matchmaker i {
        font-size: 1.2rem;
    }

    /* Contact Section */
    .contact-section {
        padding: 40px 0 !important;
    }

    .contact-section .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Mobile Extra Small (400px and below) */
@media (max-width: 400px) {
    /* Hero Slider */
    .hero-title {
        font-size: 1.2rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .hero-tagline {
        font-size: 0.85rem !important;
    }

    .hero-btn {
        max-width: 200px;
        padding: 10px 24px;
        font-size: 0.8rem;
    }

    .hero-feature-item {
        font-size: 0.85rem;
    }

    /* Section Headers */
    .section-title {
        font-size: 1.2rem !important;
    }

    .section-subtitle {
        font-size: 0.85rem !important;
    }

    /* About Section */
    .about-real-image {
        height: 240px !important;
    }

    .about-heading {
        font-size: 1.15rem !important;
    }

    .about-text {
        font-size: 0.88rem !important;
    }

    /* Offers Section */
    .offers-description {
        font-size: 0.88rem;
    }

    .offer-icon {
        width: 65px;
        height: 65px;
    }

    .offer-icon i {
        font-size: 2rem;
    }

    .offer-title {
        font-size: 1rem;
    }

    .offer-features li {
        font-size: 0.85rem;
    }

    /* Matchmaker Section */
    .matchmaker-heading {
        font-size: 1.15rem !important;
    }

    .matchmaker-text {
        font-size: 0.88rem !important;
    }

    .btn-matchmaker {
        max-width: 220px;
        font-size: 0.8rem;
    }
}

/* Central System Section Responsive */
@media (max-width: 992px) {
    section[style*="One Central System"] h2 {
        font-size: 32px !important;
    }

    section[style*="One Central System"] > .container > div > p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    section[style*="padding: 80px 0"] {
        padding: 50px 0 !important;
    }

    section[style*="padding: 80px 0"] h2 {
        font-size: 28px !important;
        letter-spacing: 1px !important;
    }

    section[style*="padding: 80px 0"] .col-lg-10 > div {
        padding: 35px 25px !important;
    }

    section[style*="padding: 80px 0"] h3 {
        font-size: 22px !important;
    }

    section[style*="padding: 80px 0"] h4 {
        font-size: 20px !important;
    }

    section[style*="padding: 80px 0"] p {
        font-size: 15px !important;
    }

    section[style*="padding: 80px 0"] .col-md-6 > div {
        padding: 15px !important;
    }

    section[style*="padding: 80px 0"] .col-md-6 > div > div:first-child {
        min-width: 40px !important;
        height: 40px !important;
    }

    section[style*="padding: 80px 0"] .col-md-6 > div > div:first-child i {
        font-size: 20px !important;
    }
}

@media (max-width: 576px) {
    section[style*="padding: 80px 0"] {
        padding: 40px 0 !important;
    }

    section[style*="padding: 80px 0"] h2 {
        font-size: 22px !important;
        letter-spacing: 0.5px !important;
    }

    section[style*="padding: 80px 0"] h2 > div {
        width: 80px !important;
        height: 3px !important;
    }

    section[style*="padding: 80px 0"] > .container > div > p {
        font-size: 14px !important;
        padding: 0 10px;
    }

    section[style*="padding: 80px 0"] .col-lg-10 > div {
        padding: 25px 18px !important;
    }

    section[style*="padding: 80px 0"] h3 {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }

    section[style*="padding: 80px 0"] h4 {
        font-size: 18px !important;
    }

    section[style*="padding: 80px 0"] p {
        font-size: 13px !important;
    }

    section[style*="padding: 80px 0"] .col-md-6 {
        margin-bottom: 15px;
    }

    section[style*="padding: 80px 0"] .col-md-6 > div {
        padding: 15px 12px !important;
    }

    section[style*="padding: 80px 0"] .col-md-6 > div > div:first-child {
        min-width: 38px !important;
        height: 38px !important;
    }

    section[style*="padding: 80px 0"] .col-md-6 > div > div:first-child i {
        font-size: 18px !important;
    }

    section[style*="padding: 80px 0"] > .container > .row > .col-lg-10 > div > div[style*="margin-top: 40px"] {
        margin-top: 25px !important;
        padding: 20px !important;
    }

    section[style*="padding: 80px 0"] > .container > .row > .col-lg-10 > div > div[style*="margin-top: 35px"] {
        margin-top: 25px !important;
    }
}

@media (max-width: 400px) {
    section[style*="padding: 80px 0"] h2 {
        font-size: 19px !important;
    }

    section[style*="padding: 80px 0"] h3 {
        font-size: 16px !important;
    }

    section[style*="padding: 80px 0"] h4 {
        font-size: 16px !important;
    }

    section[style*="padding: 80px 0"] p {
        font-size: 12px !important;
    }
}

/* Fix Container Width Issues */
@media (max-width: 1400px) {
    .contact-section .container-fluid {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure images dont overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix row overflow */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

@media (max-width: 576px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}
