/**
 * Max Property Finance - Tablet Styles
 * Media: 768px to 1199px
 * Version: 2.0.0 (Optimized)
 */

/* ==========================================================================
   TABLET LANDSCAPE (768px to 991px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    /* Hero Slider */
    .hero-slide-enhanced {
        min-height: 100vh;
    }
    
    .hero-title-enhanced {
        font-size: 3rem;
    }
    
    .hero-subtitle-enhanced {
        font-size: 1.3rem;
    }
    
    .hero-description-enhanced {
        font-size: 1.125rem;
    }
    
    .btn-hero-primary-enhanced,
    .btn-hero-secondary-enhanced {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .trust-badges-enhanced {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .trust-number-enhanced {
        font-size: 1.8rem;
    }
    
    .trust-label-enhanced {
        font-size: 0.85rem;
    }
    
    /* Carousel Controls - Better touch targets on tablet */
    .carousel-control-prev-enhanced,
    .carousel-control-next-enhanced {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    
    .carousel-control-prev-enhanced {
        left: 20px;
    }
    
    .carousel-control-next-enhanced {
        right: 20px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
    
    .carousel-control-prev-enhanced:hover,
    .carousel-control-next-enhanced:hover {
        background: var(--mpf-primary-color);
        border-color: var(--mpf-primary-color);
    }
    
    /* Navigation */
    .navbar-collapse {
        background: var(--mpf-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--mpf-border-radius);
        box-shadow: var(--mpf-shadow);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 30px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    /* Contact Section */
    .office-info,
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .office-info {
        margin-bottom: 30px;
    }
    
    /* Difference/Solution Sections */
    .difference-section .section-content,
    .solution-section .section-content {
        padding: 40px 0 0 0;
    }
    
    .difference-section .section-title {
        font-size: 28px;
    }
    
    .difference-section .section-image img,
    .solution-section .section-image img {
        min-height: 350px;
    }
    
    /* Blog Section */
    .blog-section .section-title {
        font-size: 30px;
    }
    
    .blog-card .blog-thumbnail {
        height: 200px;
    }
    
    /* Testimonials */
    .testimonials-section .section-title,
    .testimonials-section-v2 .section-title {
        font-size: 30px;
    }
    
    /* Page Banner */
    .mpf-page-banner__title {
        font-size: 36px;
    }
    
    /* Company Overview Sections */
    .mpf-founder,
    .mpf-journey,
    .mpf-approach,
    .mpf-pma {
        padding: 80px 0;
    }
    
    .mpf-founder__heading,
    .mpf-journey__heading,
    .mpf-approach__heading,
    .mpf-pma__heading {
        font-size: 30px;
    }
    
    .mpf-founder__img-wrap {
        margin-bottom: 50px;
    }
    
    .mpf-founder__badge {
        right: 20px;
        bottom: -20px;
    }
    
    .mpf-approach__content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .mpf-approach__floating {
        left: 20px;
    }
    
    .mpf-pma__img-wrap {
        margin-bottom: 40px;
    }
    
    .mpf-pma__content {
        padding-left: 0;
    }
    
    /* Journey Timeline - Tablet adjustment */
    .mpf-journey__timeline::before {
        left: 30px;
    }
    
    .mpf-journey__item:nth-child(odd) .mpf-journey__content,
    .mpf-journey__item:nth-child(even) .mpf-journey__content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding-left: 30px;
        padding-right: 0;
        text-align: left;
    }
    
    .mpf-journey__item:nth-child(odd) .mpf-journey__dot,
    .mpf-journey__item:nth-child(even) .mpf-journey__dot {
        left: 20px;
        right: auto;
    }
}

/* ==========================================================================
   ALL TABLETS (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    /* Typography */
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.3rem; }
    
    /* Layout */
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-padding-lg {
        padding: 4rem 0;
    }
    
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Navigation */
    .navbar-collapse {
        background: var(--mpf-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--mpf-border-radius);
        box-shadow: var(--mpf-shadow);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    /* Hero */
    .hero-content-enhanced {
        
        max-width: 100%;
    }
    
    .hero-buttons-enhanced {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn-hero-primary-enhanced,
    .btn-hero-secondary-enhanced {
        flex: 0 1 auto;
        min-width: 200px;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    /* Services Grid */
    .services-grid {
        margin: 0 -10px;
    }
    
    .service-item {
        padding: 0 10px;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .service-card .subtitle {
        font-size: 15px;
    }
    
    /* Difference & Solution Sections */
    .difference-section,
    .solution-section {
        padding: 4rem 0;
    }
    
    .difference-section .row,
    .solution-section .row {
        align-items: center;
    }
    
    .difference-section .section-image,
    .solution-section .section-image {
        margin-bottom: 2.5rem;
    }
    
    .difference-section .section-content,
    .solution-section .section-content {
        padding: 0;
    }
    
    .difference-section .section-title,
    .solution-section .section-title {
        font-size: 28px;
    }
    
    .feature-item {
        margin-bottom: 2rem;
    }
    
    .feature-item h4 {
        font-size: 1.2rem;
    }
    
    .feature-item p {
        font-size: 15px;
    }
    
    .feature-list {
        margin: 2rem 0;
    }
    
    .feature-list li {
        font-size: 15px;
        margin-bottom: 0.875rem;
    }
    
    .intro-text {
        font-size: 16px;
        margin-bottom: 2rem;
    }
    
    .highlight-text {
        font-size: 15px;
        margin: 2rem 0;
        padding: 20px;
    }
    
    .btn-primary-mpf {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-section .section-title {
        font-size: 28px;
    }
    
    .contact-section .row {
        flex-direction: column;
    }
    
    .contact-form-wrapper {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .contact-form-wrapper h3 {
        font-size: 1.75rem;
    }
    
    .office-info {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .office-info h3 {
        font-size: 1.75rem;
    }
    
    .info-item {
        margin-bottom: 1.5rem;
    }
    
    .info-item i {
        font-size: 20px;
    }
    
    .info-item p,
    .info-item a {
        font-size: 15px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-control,
    .form-select {
        padding: 13px 18px;
        font-size: 15px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    textarea.form-control {
        min-height: 110px;
    }
    
    .btn-submit {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2,
    .cta-section h3 {
        font-size: 28px;
    }
    
    .cta-section p,
    .cta-section .lead {
        font-size: 16px;
    }
    
    /* Blog */
    .blog-section {
        padding: 4rem 0;
    }
    
    .blog-section .section-title {
        font-size: 30px;
    }
    
    .blog-card .blog-thumbnail {
        height: 220px;
    }
    
    .blog-card .blog-content {
        padding: 25px;
    }
    
    .blog-card .blog-title {
        font-size: 20px;
    }
    
    .blog-card .blog-excerpt {
        font-size: 15px;
    }
    
    .blog-meta {
        font-size: 13px;
    }
    
    .btn-view-all {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    /* Testimonials */
    .testimonials-section,
    .testimonials-section-v2 {
        padding: 4rem 0;
    }
    
    .testimonials-section .section-title,
    .testimonials-section-v2 .section-title {
        font-size: 30px;
    }
    
    .testimonial-card-v2 {
        padding: 30px 25px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .client-avatar {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .client-details h4 {
        font-size: 17px;
    }
    
    .client-details span {
        font-size: 13px;
    }
    
    .quote-icon {
        font-size: 28px;
    }
    
    /* Page Banner */
    .mpf-page-banner {
        padding: 4rem 0;
    }
    
    .mpf-page-banner__title {
        font-size: 34px;
    }
    
    .mpf-page-banner__desc {
        font-size: 17px;
    }
    
    /* Company Overview Sections */
    .mpf-founder,
    .mpf-journey,
    .mpf-approach,
    .mpf-pma {
        padding: 4rem 0;
    }
    
    .mpf-founder .row,
    .mpf-approach .row {
        align-items: center;
    }
    
    .mpf-founder__content {
        padding-left: 0;
    }
    
    .mpf-founder__label,
    .mpf-approach__label,
    .mpf-journey__label {
        font-size: 13px;
        letter-spacing: 1.8px;
    }
    
    .mpf-founder__heading,
    .mpf-journey__heading,
    .mpf-approach__heading,
    .mpf-pma__heading {
        font-size: 30px;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    
    .mpf-founder__text,
    .mpf-approach__text,
    .mpf-pma__text {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }
    
    .mpf-founder__img-wrap {
        margin-bottom: 3rem;
    }
    
    .mpf-founder__img,
    .mpf-approach__img,
    .mpf-pma__img {
        width: 100%;
        height: auto;
    }
    
    .mpf-founder__badge {
        right: 20px;
        bottom: -20px;
        padding: 18px 25px;
    }
    
    .mpf-founder__badge-num {
        font-size: 38px;
    }
    
    .mpf-founder__badge-text {
        font-size: 12px;
    }
    
    .mpf-founder__highlight {
        padding: 20px 25px;
        margin: 2rem 0;
    }
    
    .mpf-founder__highlight p {
        font-size: 15px;
    }
    
    .mpf-founder__cta {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .mpf-approach__content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .mpf-approach__img-wrap {
        margin-bottom: 3rem;
    }
    
    .mpf-approach__floating {
        left: 20px;
        top: 20px;
        padding: 18px 22px;
    }
    
    .mpf-approach__floating-icon {
        font-size: 28px;
        margin-bottom: 7px;
    }
    
    .mpf-approach__floating-text {
        font-size: 12px;
    }
    
    .mpf-approach__point {
        gap: 15px;
        margin-bottom: 2rem;
    }
    
    .mpf-approach__point-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .mpf-approach__point-icon i {
        font-size: 21px;
    }
    
    .mpf-approach__point-title {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .mpf-approach__point-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .mpf-pma__img-wrap {
        margin-bottom: 3rem;
    }
    
    .mpf-pma__content {
        padding-left: 0;
    }
    
    .mpf-pma__list li {
        font-size: 15px;
    }
    
    .mpf-journey__header {
        margin-bottom: 3.5rem;
    }
    
    .mpf-journey__label {
        font-size: 13px;
        letter-spacing: 1.8px;
    }
    
    .mpf-journey__timeline {
        padding: 20px 0;
    }
    
    .mpf-journey__timeline::before {
        left: 30px;
    }
    
    .mpf-journey__item {
        margin-bottom: 3rem;
    }
    
    .mpf-journey__item:nth-child(odd) .mpf-journey__content,
    .mpf-journey__item:nth-child(even) .mpf-journey__content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding-left: 30px;
        padding-right: 0;
        text-align: left;
    }
    
    .mpf-journey__item:nth-child(odd) .mpf-journey__dot,
    .mpf-journey__item:nth-child(even) .mpf-journey__dot {
        left: 20px;
        right: auto;
    }
    
    .mpf-journey__dot {
        width: 18px;
        height: 18px;
    }
    
    .mpf-journey__card {
        padding: 25px;
    }
    
    .mpf-journey__year {
        font-size: 13px;
        padding: 5px 16px;
        margin-bottom: 12px;
    }
    
    .mpf-journey__card-title {
        font-size: 19px;
        margin-bottom: 10px;
    }
    
    .mpf-journey__card-text {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .mpf-credentials {
        padding: 4rem 0;
    }
    
    .mpf-credentials .row {
        margin: 0 -10px;
    }
    
    .mpf-credentials .col-lg-3,
    .mpf-credentials .col-md-6 {
        padding: 0 10px;
    }
    
    .mpf-credentials__item {
        padding: 25px 20px;
        margin-bottom: 1.5rem;
        height: 100%;
    }
    
    .mpf-credentials__icon {
        width: 70px;
        height: 70px;
        margin-bottom: 18px;
    }
    
    .mpf-credentials__icon i {
        font-size: 28px;
    }
    
    .mpf-credentials__title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .mpf-credentials__text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* About CTA */
    .mpf-about-cta {
        padding: 4rem 0;
    }
    
    .mpf-about-cta__inner {
        padding: 0 20px;
    }
    
    .mpf-about-cta__title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .mpf-about-cta__text {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .mpf-about-cta__btns {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mpf-about-cta__btn {
        padding: 14px 28px;
        font-size: 15px;
        flex: 0 1 auto;
        min-width: 200px;
    }
    
    /* Disclaimer Section */
    .mpf-disclaimer {
        padding: 3rem 0;
    }
    
    .mpf-disclaimer__content {
        padding: 0 20px;
    }
    
    .mpf-disclaimer__text {
        font-size: 12px;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }
    
    .mpf-disclaimer__divider {
        margin: 2rem 0;
    }
    
    /* Page Header Section */
    .page-header-section {
        padding: 3.5rem 0 !important;
    }
    
    .page-header-section h1 {
        font-size: 32px;
        margin-bottom: 1rem;
    }
    
    .page-header-section .lead {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .breadcrumbs {
        font-size: 14px;
    }
    
    /* Founder Section - Tablet Layout */
    .mpf-founder .col-lg-5 {
        margin-bottom: 2.5rem;
    }
    
    .mpf-founder .col-lg-7 {
        padding-left: 0;
    }
    
    /* Approach Section - Tablet Layout */
    .mpf-approach .col-lg-6:first-child {
        margin-bottom: 2.5rem;
    }
    
    .mpf-approach .col-lg-6:last-child {
        padding-left: 0;
    }
    
    /* Journey Header - Tablet */
    .mpf-journey__header {
        padding: 0 20px;
    }
    
    /* Journey Timeline - Tablet adjustments */
    .mpf-journey__item:last-child {
        margin-bottom: 0;
    }
    
    /* Credentials Grid - Tablet (2 columns) */
    .mpf-credentials .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .mpf-credentials .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    /* Ensure proper image sizing on tablet */
    .mpf-founder__img,
    .mpf-approach__img,
    .mpf-pma__img {
        max-width: 100%;
        height: auto;
    }
    
    /* Founder CTA button */
    .mpf-founder__cta {
        margin-top: 1.25rem;
    }
    
    /* Better text wrapping on tablet */
    .mpf-founder__text,
    .mpf-approach__text,
    .mpf-journey__card-text,
    .mpf-credentials__text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Approach points spacing */
    .mpf-approach__point:last-child {
        margin-bottom: 0;
    }
    
    /* Journey year badge */
    .mpf-journey__year {
        display: inline-block;
    }
    
    /* Swiper Navigation */
    .swiper-button-prev,
    .swiper-button-next {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-bottom {
        padding: 2rem 0 !important;
    }
    
    /* Disclaimer Section */
    .disclaimer-section {
        padding: 3rem 0;
    }
    
    .disclaimer-content p {
        font-size: 12px;
    }
    
    /* Buttons */
    .btn {
        padding: 11px 22px;
        font-size: 15px;
    }
    
    .btn-lg {
        padding: 13px 28px;
        font-size: 17px;
    }
}
