/* Custom styles for Unique Optometry */

/* ===== MOBILE SCHEDULE BUTTON IN NAVBAR HEADER ===== */

/* Hide mobile schedule button on desktop - only show on mobile */
.mobile-schedule-btn {
    display: none;
}

/* Mobile styles for the schedule button in navbar header */
@media only screen and (max-width: 767px) {
    /* Hide search icon on mobile */
    .search-box-outer {
        display: none !important;
    }

    /* Show the mobile schedule button in the navbar header */
    .mobile-schedule-btn {
        display: inline-block !important;
        background: linear-gradient(135deg, #3B8B7A 0%, #327a6b 100%) !important;
        color: #ffffff !important;
        padding: 12px 20px !important;
        border-radius: 8px !important;
        text-transform: uppercase !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 600 !important;
        font-size: 11px !important;
        letter-spacing: 0.8px !important;
        border: none !important;
        margin-right: 12px !important;
        margin-top: 0 !important;
        position: relative;
        top: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        text-decoration: none !important;
        min-height: 48px !important;
        line-height: 22px !important;
        box-shadow: 0 2px 12px rgba(59, 139, 122, 0.3) !important;
        overflow: hidden;
        white-space: nowrap;
    }

    .mobile-schedule-btn svg {
        display: inline-block;
        vertical-align: text-bottom;
        margin-right: 6px;
        margin-bottom: 1px;
        width: 14px;
        height: 14px;
    }

    .mobile-schedule-btn:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-schedule-btn:hover {
        background: linear-gradient(135deg, #327a6b 0%, #2a6a5c 100%) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        box-shadow: 0 4px 16px rgba(59, 139, 122, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    .mobile-schedule-btn:hover:after {
        opacity: 1;
    }

    .mobile-schedule-btn:active {
        transform: translateY(0px) !important;
        box-shadow: 0 2px 8px rgba(59, 139, 122, 0.3) !important;
    }

    /* Hide the schedule button from the collapsible menu on mobile */
    .main-menu .navigation .schedule-btn-nav {
        display: none !important;
    }

    /* Adjust navbar header layout for professional spacing */
    .main-menu .navbar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px 0px !important;
    }

    /* Modern hamburger menu toggle styling */
    .main-menu .navbar-header .navbar-toggle {
        margin: 0 !important;
        flex-shrink: 0;
        background: linear-gradient(135deg, #3B8B7A 0%, #327a6b 100%) !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 0 !important;
        width: 48px !important;
        height: 48px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 2px 12px rgba(59, 139, 122, 0.3) !important;
        position: relative;
        overflow: hidden;
    }

    .main-menu .navbar-header .navbar-toggle:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .main-menu .navbar-header .navbar-toggle:hover {
        background: linear-gradient(135deg, #327a6b 0%, #2a6a5c 100%) !important;
        box-shadow: 0 4px 16px rgba(59, 139, 122, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    .main-menu .navbar-header .navbar-toggle:hover:before {
        opacity: 1;
    }

    .main-menu .navbar-header .navbar-toggle:active {
        transform: translateY(0px) !important;
        box-shadow: 0 2px 8px rgba(59, 139, 122, 0.3) !important;
    }

    .main-menu .navbar-header .navbar-toggle .icon-bar {
        background: #ffffff !important;
        width: 24px !important;
        height: 3px !important;
        border-radius: 3px !important;
        display: block !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    }

    /* Add spacing between icon bars */
    .main-menu .navbar-header .navbar-toggle .icon-bar + .icon-bar {
        margin-top: 0 !important;
    }

    /* Slightly adjust middle bar on hover for visual interest */
    .main-menu .navbar-header .navbar-toggle:hover .icon-bar:nth-child(2) {
        width: 20px !important;
    }

    /* Professional spacing for mobile navbar container */
    .main-header .main-box .outer-container {
        padding: 0px 20px !important;
    }

    /* Ensure logo has proper size on mobile */
    .main-header .logo-box .logo img {
        max-height: 45px !important;
    }
}

/* ===== MOBILE-FRIENDLY ENHANCEMENTS ===== */

/* Ensure minimum touch target sizes on mobile */
@media only screen and (max-width: 767px) {
    /* Make all buttons and links easier to tap - minimum 48px height */
    .theme-btn,
    .btn-style-one,
    .view-projects,
    .read-more,
    .schedule-appointment-btn,
    button[type="submit"],
    .main-menu .navbar-toggle {
        min-height: 48px !important;
        padding: 12px 24px !important;
        line-height: 24px !important;
    }

    /* Ensure adequate spacing between tappable elements */
    .navigation li {
        margin-bottom: 4px;
    }

    /* Improve form input touch targets */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        min-height: 48px !important;
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 12px 15px !important;
    }

    textarea {
        min-height: 120px !important;
    }

    /* Improve readability with better line height */
    body,
    p,
    .text {
        line-height: 1.7em !important;
    }

    /* Ensure clickable contact info has adequate tap area */
    .left-info-bar .number a,
    .list-style-one li a,
    .footer-widget a {
        display: inline-block;
        min-height: 44px;
        line-height: 1.6em;
        padding: 4px 0;
    }

    /* Improve spacing around buttons */
    .form-group {
        margin-bottom: 20px;
    }

    /* Better spacing for service blocks */
    .project-block,
    .project-block-two {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
}

/* Improve touch targets on tablets too */
@media only screen and (max-width: 1023px) and (min-width: 768px) {
    .theme-btn,
    .btn-style-one,
    button[type="submit"] {
        min-height: 44px !important;
        padding: 10px 20px !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        min-height: 44px !important;
        font-size: 16px !important;
    }
}

/* Additional mobile typography improvements */
@media only screen and (max-width: 767px) {
    /* Ensure minimum font sizes for readability */
    body {
        font-size: 16px;
    }

    /* Improve heading hierarchy on mobile */
    h1 {
        font-size: 28px;
        line-height: 1.3em;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3em;
    }

    h3 {
        font-size: 20px;
        line-height: 1.3em;
    }

    /* Better spacing for sections on mobile */
    section {
        padding: 40px 0;
    }

    /* Improve contrast for better accessibility */
    .text,
    p {
        color: #333333;
    }

    /* Make clickable elements more obvious on mobile */
    a:not(.theme-btn):not(.btn-style-one) {
        text-decoration: underline;
        text-decoration-color: rgba(59, 139, 122, 0.3);
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }

    a:not(.theme-btn):not(.btn-style-one):hover,
    a:not(.theme-btn):not(.btn-style-one):active {
        text-decoration-color: #3B8B7A;
    }
}

/* Performance: Reduce animations on mobile for smoother experience */
@media only screen and (max-width: 767px) {
    * {
        -webkit-animation-duration: 0.5s !important;
        animation-duration: 0.5s !important;
        -webkit-transition-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* Accessibility: Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3B8B7A;
    outline-offset: 2px;
}

/* ===== DESKTOP SCHEDULE BUTTON IN NAVBAR ===== */

/* Override default dark background with signature green */
.schedule-btn-nav .schedule-appointment-btn {
    background: linear-gradient(135deg, #3B8B7A 0%, #327a6b 100%) !important;
    border-color: #3B8B7A !important;
    box-shadow: 0 2px 8px rgba(59, 139, 122, 0.25) !important;
    transition: all 0.3s ease !important;
}

.schedule-btn-nav .schedule-appointment-btn:hover {
    background: linear-gradient(135deg, #327a6b 0%, #2a6a5c 100%) !important;
    border-color: #2a6a5c !important;
    box-shadow: 0 3px 12px rgba(59, 139, 122, 0.4) !important;
    transform: translateY(-1px) !important;
}

.schedule-btn-nav .schedule-appointment-btn:active {
    transform: translateY(0px) !important;
    box-shadow: 0 2px 6px rgba(59, 139, 122, 0.25) !important;
}

/* ===== LEFT SIDEBAR SCHEDULE BUTTON ===== */

/* Calendar icon button in left sidebar - matches social icons style */
.left-info-bar .sidebar-schedule-btn {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);

    /* Icon styling to match social icons */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Text/Icon color */
    color: #3B8B7A;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

/* SVG icon styling for sidebar button */
.left-info-bar .sidebar-schedule-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Hover state - darken the icon */
.left-info-bar .sidebar-schedule-btn:hover {
    color: #2a6a5c;
    transform: translateX(-50%) scale(1.15);
}

/* Active state */
.left-info-bar .sidebar-schedule-btn:active {
    transform: translateX(-50%) scale(1.05);
}

/* Push phone number down to avoid overlap with calendar button */
.left-info-bar .number {
    top: 380px !important;
}

/* Responsive: Hide on tablet and mobile */
@media only screen and (max-width: 1023px) {
    .left-info-bar .sidebar-schedule-btn {
        display: none;
    }

    /* Reset phone number position on mobile */
    .left-info-bar .number {
        top: 280px !important;
    }
}

/* Add dark overlay to hero image */
.main-slider.main-slider-four .tp-bgimg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Ensure slider content appears above the overlay */
.main-slider.main-slider-four .tp-caption {
    position: relative;
    z-index: 10 !important;
}

.main-slider.main-slider-four .content {
    position: relative;
    z-index: 10 !important;
}

/* Sharp, clear hero image rendering - UX optimization */
.main-slider .tp-bgimg,
.main-slider .rev-slidebg,
.main-slider img {
    /* Force crisp image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;

    /* Prevent blur from transforms */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0) scale(1.0, 1.0);

    /* Hardware acceleration for smoother rendering */
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-perspective: 1000;
    perspective: 1000;

    /* Ensure proper pixel alignment */
    transform-style: preserve-3d;
    will-change: transform;
}

/* Horizontal flip for Christmas hero image */
.main-slider .rev-slidebg.flip-horizontal,
.main-slider img.flip-horizontal {
    -webkit-transform: translateZ(0) scaleX(-1) !important;
    transform: translateZ(0) scaleX(-1) !important;
}

/* Additional sharpness for the background container */
.main-slider .tp-parallax-wrap,
.main-slider .tp-loop-wrap,
.main-slider .tp-mask-wrap {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Patient Promise Section - Modern & Compact Design */
.patient-promise-section {
    position: relative;
    background: #373737;
    padding: 60px 0 50px;
}

.patient-promise-section .promise-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Section title styling with centered alignment */
.patient-promise-section .sec-title-two.centered {
    text-align: center;
    margin-bottom: 35px;
}

.patient-promise-section .sec-title-two h2 {
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.patient-promise-section .sec-title-two h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background: #3B8B7A;
    transform: translateX(-50%);
}

.patient-promise-section .sec-title-two .text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.7em;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
}

/* Promise blocks container with better spacing */
.patient-promise-section .promise-blocks {
    position: relative;
    margin: 0 -20px;
}

.patient-promise-section .promise-blocks .col-md-4 {
    padding: 0 20px;
    margin-bottom: 0;
}

/* Individual promise block with modern card design */
.promise-block {
    position: relative;
    text-align: center;
    padding: 25px 20px;
    height: 100%;
    transition: all 0.3s ease;
}

/* Icon styling - clean and minimal */
.promise-block .icon-box {
    position: relative;
    margin-bottom: 15px;
}

.promise-block .icon-box img {
    width: 55px;
    height: 55px;
    display: inline-block;
    transition: all 0.4s ease;
}

.promise-block .icon-box span {
    font-size: 45px;
    color: #3B8B7A;
    line-height: 1;
    transition: all 0.4s ease;
}

/* Promise block heading */
.promise-block h3 {
    position: relative;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    line-height: 1.3em;
}

/* Promise block text */
.promise-block .text {
    position: relative;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6em;
    font-weight: 300;
}

/* Hover effect - subtle and elegant */
.promise-block:hover .icon-box img {
    transform: translateY(-5px);
}

.promise-block:hover .icon-box span {
    transform: translateY(-5px);
    color: #4fa593;
}

/* Get In Touch / Contact Info Icons */
/* Keep absolute positioning for left alignment */
.form-section .list-style-one li .icon,
.info-column .list-style-one li .icon {
    position: absolute;
    left: 0;
    top: 0;
}

.list-style-one .icon img {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
}

/* Email icon - slightly smaller for better visual balance */
.form-section .list-style-one li:nth-child(2) .icon img {
    width: 28px;
    height: 28px;
}

/* Phone icon - slightly larger for better visual balance */
.form-section .list-style-one li:nth-child(3) .icon img {
    width: 35px;
    height: 35px;
}

/* Responsive adjustments */
@media only screen and (max-width: 991px) {
    .patient-promise-section {
        padding: 50px 0 40px;
    }

    .patient-promise-section .sec-title-two {
        margin-bottom: 30px;
    }

    .patient-promise-section .sec-title-two .text {
        font-size: 14px;
    }

    .promise-block {
        padding: 20px 15px;
    }
}

@media only screen and (max-width: 767px) {
    .patient-promise-section {
        padding: 40px 0 30px;
    }

    .patient-promise-section .sec-title-two h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .patient-promise-section .sec-title-two {
        margin-bottom: 25px;
    }

    .patient-promise-section .promise-blocks .col-md-4 {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .promise-block {
        padding: 20px 15px;
    }

    .promise-block .icon-box {
        margin-bottom: 12px;
    }

    .promise-block .icon-box img {
        width: 48px;
        height: 48px;
    }

    .promise-block .icon-box span {
        font-size: 38px;
    }

    .promise-block h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .promise-block .text {
        font-size: 13px;
        line-height: 1.5em;
    }
}

/* ===== ABOUT US PAGE ENHANCEMENTS ===== */

/* Enhanced About Section Three - Combined Layout */
.about-section-three {
    padding: 60px 0 70px;
    background: #ffffff;
}

/* About blocks with spacing */
.about-section-three .about-block {
    margin-bottom: 60px;
    align-items: center;
}

.about-section-three .about-block:last-child {
    margin-bottom: 0;
}

/* Image right layout - swap column order on desktop */
.about-section-three .about-block.image-right .image-column {
    order: 2;
}

.about-section-three .about-block.image-right .content-column {
    order: 1;
}

/* Banner Image at top */
.about-section-three .big-image {
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    height: 300px;
}

.about-section-three .big-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
    display: block;
}

.about-section-three .big-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Our Story Image */
.about-section-three .story-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.about-section-three .story-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.about-section-three .story-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 139, 122, 0.15) 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

/* Title styling for Our Story */
.about-section-three .title-wrapper h2 {
    font-size: 36px;
    color: #3B8B7A;
    font-weight: 700;
    line-height: 1.3em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 20px;
}

.about-section-three .title-wrapper h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #3B8B7A;
}

.about-section-three .content-column .text p {
    font-size: 16px;
    line-height: 1.8em;
    color: #555555;
    margin-bottom: 20px;
}

.about-section-three .content-column .text p strong {
    color: #3B8B7A;
    font-weight: 600;
}

.about-section-three .row.clearfix {
    align-items: center;
}

/* Compact Community Highlights for Combined Section */
.community-highlight-compact {
    position: relative;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.community-highlight-compact:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.community-highlight-compact .icon {
    font-size: 32px;
    color: #3B8B7A;
    margin-bottom: 10px;
    display: block;
}

.community-highlight-compact h4 {
    font-size: 17px;
    color: #222222;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3em;
}

.community-highlight-compact .text {
    font-size: 15px;
    line-height: 1.7em;
    color: #666666;
    margin: 0;
}

/* Community & Culture Section */
.community-section {
    position: relative;
    padding: 80px 0;
    background: #f9f9f9;
}

.community-section .sec-title {
    margin-bottom: 50px;
}

.community-section .row.clearfix {
    align-items: center;
}

.community-highlight {
    position: relative;
    padding: 30px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.community-highlight:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(59, 139, 122, 0.15);
}

.community-highlight .icon {
    font-size: 36px;
    color: #3B8B7A;
    margin-bottom: 15px;
    display: block;
}

.community-highlight h3 {
    font-size: 19px;
    color: #222222;
    font-weight: 600;
    margin-bottom: 12px;
}

.community-highlight .text {
    font-size: 15px;
    line-height: 1.7em;
    color: #666666;
    margin: 0;
}

/* Community Image Wrapper */
.community-section .community-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.12);
    height: 100%;
    min-height: 520px;
}

.community-section .community-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-section .community-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 139, 122, 0.2) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* Enhanced Director Sections */
.specilazation-section .sec-title-two h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.specilazation-section .big-text {
    position: relative;
    display: inline-block;
}

.specilazation-section .text {
    font-weight: 400;
}

/* Director Image Wrappers - Same style as story-image-wrapper */
.director-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.director-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Dr. Snow Hu - crop to show face properly */
.director-section-1 .director-image-wrapper img {
    object-fit: cover;
    object-position: 23% center;
    min-height: 350px;
    max-height: 350px;
}

/* Dr. June Chun - crop to show face properly */
.director-section-2 .director-image-wrapper img {
    object-fit: cover;
    object-position: 70% center;
    min-height: 350px;
    max-height: 350px;
}

/* Overlay effects for director images */
.director-section-1 .director-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 139, 122, 0.15) 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

.director-section-2 .director-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 139, 122, 0.15) 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

/* Responsive Adjustments for About Us Page */

@media only screen and (max-width: 991px) {
    .community-section {
        padding: 60px 0;
    }

    .community-section .image-column {
        margin-top: 40px;
    }

    .about-section-three .image-column {
        margin-bottom: 30px;
    }

    .about-section-three .story-image-wrapper {
        min-height: 350px;
    }

    .community-section .community-image-wrapper {
        min-height: 400px;
    }

    /* Director sections - tablet adjustments */
    .director-section-1 .director-image-wrapper img,
    .director-section-2 .director-image-wrapper img {
        min-height: 280px;
        max-height: 280px;
    }
}

@media only screen and (max-width: 767px) {
    .community-section {
        padding: 50px 0;
    }

    .about-section-three {
        padding: 40px 0 50px;
    }

    .about-section-three .big-image {
        height: 300px;
        margin-bottom: 40px;
    }

    .about-section-three .title-wrapper h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .about-section-three .story-image-wrapper {
        min-height: 300px;
        margin-bottom: 30px;
    }

    .community-highlight {
        padding: 25px 20px;
    }

    .community-highlight h3 {
        font-size: 17px;
    }

    .community-section .community-image-wrapper {
        min-height: 350px;
        margin-bottom: 30px;
    }

    /* Director sections - mobile adjustments */
    .director-section {
        padding: 40px 0 30px !important;
    }

    .director-section-1 {
        margin-bottom: 30px !important;
    }

    .director-section-2 {
        margin-bottom: 50px !important;
    }

    /* Director images on mobile - much smaller */
    .director-section-1 .director-image-wrapper img,
    .director-section-2 .director-image-wrapper img {
        min-height: 200px;
        max-height: 200px;
    }

    .director-section .director-image-wrapper {
        margin-bottom: 25px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Improve text readability on mobile */
    .director-section .director-title h2 {
        font-size: 13px !important;
        letter-spacing: 2px !important;
    }

    .director-section .big-text {
        font-size: 26px !important;
        margin-bottom: 15px !important;
        line-height: 1.3em !important;
    }

    .director-section .text p {
        font-size: 14px !important;
        line-height: 1.7em !important;
        margin-bottom: 12px !important;
    }

    /* Compact highlights on mobile */
    .community-highlight-compact {
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .community-highlight-compact .icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .community-highlight-compact h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .community-highlight-compact .text {
        font-size: 14px;
        line-height: 1.6em;
    }

    /* Image-right layout: reset order on mobile (stack naturally) */
    .about-section-three .about-block.image-right .image-column,
    .about-section-three .about-block.image-right .content-column {
        order: 0;
    }

    /* Ensure images display on mobile */
    .about-section-three .about-block {
        margin-bottom: 40px;
    }
}

@media only screen and (max-width: 599px) {
    /* Extra small screens - even more compact */
    .specilazation-section .big-text {
        font-size: 22px !important;
    }

    .specilazation-section .sec-title-two h2 {
        font-size: 12px !important;
    }

    .about-section-three .big-image {
        height: 250px;
    }

    .about-section-three .story-image-wrapper {
        min-height: 250px;
    }
}

