/**
 * تحسينات التصميم المتجاوب المتقدمة
 * Advanced Responsive Design Enhancements
 */

/* ===== MOBILE-FIRST APPROACH ===== */

/* تحسينات الخطوط للأجهزة المختلفة */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* body {
        font-size: 16px;
        line-height: 1.5;
    } */
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.6rem; }
}

@media (min-width: 769px) {
    html {
        font-size: 16px;
    }
}

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .top-bar .container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-info a {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .download-profile-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .main-nav .container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 10px 15px;
    }
    
    .header-logo {
        grid-column: 1;
        grid-row: 1;
        width: 110px;
        height: auto;
        margin-bottom: 0;
    }
    
    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 15px;
        text-align: center;
        border-radius: 5px;
        background: var(--light-bg);
        margin-bottom: 2px;
    }
    
    .search-box {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        width: 100%;
        max-width: 300px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 8px 35px 8px 12px;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding-top: 120px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 14px;
        text-align: center;
    }
    
    .hero-badge img {
        width: 80px;
        height: auto;
    }
}

/* ===== SERVICES RESPONSIVE ===== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .service-card {
        padding: 20px 15px;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* ===== QUICK ACCESS RESPONSIVE ===== */
@media (max-width: 768px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .quick-card {
        padding: 15px 10px;
        text-align: center;
    }
    
    .quick-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .quick-card h4 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .quick-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-card {
        padding: 20px 15px;
    }
}

/* ===== ACHIEVEMENTS RESPONSIVE ===== */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .achievement-card {
        padding: 20px 15px;
        text-align: center;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .achievement-card h4 {
        font-size: 1rem;
    }
    
    .achievement-card p {
        font-size: 0.85rem;
    }
}

/* ===== FORMS RESPONSIVE ===== */
@media (max-width: 768px) {
    .consultation-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* منع الزوم في iOS */
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    /* تحسينات النماذج المحسنة */
    .enhanced-field {
        margin-bottom: 15px;
    }
    
    .form-progress {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .progress-text {
        font-size: 12px;
    }
    
    .validation-summary {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .error-message,
    .success-message {
        font-size: 12px;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 20px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-links {
        justify-content: center;
        gap: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===== FLOATING ELEMENTS RESPONSIVE ===== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
        font-size: 1.2rem;
    }
}

/* ===== MODAL AND POPUP RESPONSIVE ===== */
@media (max-width: 768px) {
    .modal,
    .popup {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .modal-content,
    .popup-content {
        padding: 20px 15px;
    }
    
    .modal-header h3,
    .popup-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-close,
    .popup-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}

/* ===== TABLES RESPONSIVE ===== */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 6px;
        white-space: nowrap;
    }
}

/* ===== CARDS AND GRIDS RESPONSIVE ===== */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-footer {
        padding: 10px 15px;
    }
}

/* ===== IMAGES RESPONSIVE ===== */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .lawyer-image img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
        display: block;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .lawyer-image {
        order: 1;
        margin-bottom: 20px;
    }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    /* تحسينات للأجهزة اللمسية */
    button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    .nav-menu a {
        padding: 15px 20px;
    }
    
    .quick-card,
    .service-card {
        padding: 20px;
    }
    
    /* إزالة hover effects على الأجهزة اللمسية */
    .service-card:hover,
    .quick-card:hover,
    .achievement-card:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-btn {
        width: auto;
        min-width: 150px;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .service-card,
    .quick-card,
    .achievement-card {
        padding: 15px 10px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* ===== LARGE SCREENS OPTIMIZATIONS ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .services-grid,
    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .header,
    .whatsapp-float,
    .back-to-top,
    .form-buttons {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 20px 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .quick-card,
    .achievement-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ffffff;
        --text-color: #000000;
        --border-color: #000000;
    }
    
    .service-card,
    .quick-card,
    .achievement-card {
        border: 2px solid #000000;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4a9eff;
        --secondary-color: #1a1a1a;
        --text-color: #e0e0e0;
        --light-bg: #2a2a2a;
        --white: #1a1a1a;
        --border-color: #404040;
    }
    
    
    .service-card,
    .quick-card,
    .achievement-card,
    .form-group input,
    .form-group textarea,
    .form-group select {
        /* background-color: #2a2a2a; */
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .header {
        /* background-color: #1a1a1a; */
        /* border-bottom: 1px solid #404040; */
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* تحسين الأداء للأنيميشن */
.smooth-scroll {
    scroll-behavior: smooth;
}

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===== UTILITY CLASSES ===== */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

.text-center-mobile {
    text-align: inherit;
}

@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* ===== MODERN HERO CAROUSEL OVERRIDES ===== */
@media (max-width: 992px) {
    .hero {
        background-attachment: scroll !important;
    }

    .hero-content,
    .hero-panel {
        backdrop-filter: blur(10px);
    }

    .hero-panel-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 112px 16px 36px !important;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-slide {
        transform: translateY(10px) scale(0.99);
    }

    .hero-content {
        padding: 24px 18px;
        border-radius: 26px;
    }

    .hero-content-top {
        align-items: center;
    }

    .hero-content h2 {
        line-height: 1.2;
    }

    .hero-content p {
        line-height: 1.8;
    }

    .hero-slide-index {
        min-width: 46px;
        min-height: 46px;
        border-radius: 14px;
    }

    .hero-badge {
        width: 82px;
        height: 82px;
        margin-bottom: 16px;
        border-radius: 22px;
    }

    .hero-badge .header-logo,
    .hero-badge img {
        width: 52px;
        height: 52px;
    }

    .hero-highlights span {
        justify-content: center;
    }

    .hero-proof {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .hero-proof-item strong {
        font-size: 1rem;
    }

    .hero-proof-item span,
    .hero-panel-note,
    .nav-dot small {
        font-size: 0.82rem;
    }

    .hero-buttons {
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
        min-width: 0;
    }

    .hero-panel {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .hero-panel h3 {
        font-size: 1.15rem;
    }

    .hero-bottom-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-nav {
        grid-template-columns: 1fr;
    }

    .nav-dot {
        min-height: 58px;
        align-items: center;
    }

    .hero-arrow {
        width: fit-content;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 104px !important;
    }

    .hero-slider {
        min-height: 650px;
    }

    .hero-content {
        padding: 22px 16px;
    }

    .hero-content-top {
        flex-direction: column;
        gap: 10px;
    }

    .hero-slide-index {
        align-self: center;
    }

    .hero-badge {
        width: 74px;
        height: 74px;
    }

    .hero-badge .header-logo,
    .hero-badge img {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 992px) {
    .hero-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-main {
        text-align: center;
        padding-bottom: 0;
    }

    .hero.hero-static .static-badge {
        margin-inline: auto;
    }

    .hero.hero-static h1,
    .hero.hero-static p {
        margin-inline: auto;
    }

    .hero-points,
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero.hero-static {
        padding: 118px 16px 48px !important;
    }

    .hero.hero-static h1 {
        font-size: clamp(2.2rem, 11vw, 3.4rem);
        line-height: 1.2;
    }

    .hero.hero-static p {
        font-size: 0.98rem;
        line-height: 1.85;
    }

    .hero-points span {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .hero-btn {
        width: min(100%, 320px);
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero carousel layout cleanup */
.hero.hero-carousel-refresh {
    min-height: auto !important;
    height: auto !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 8px;
    justify-items: center;
    padding: 104px 14px 18px !important;
}

.hero.hero-carousel-refresh .hero-slider {
    width: min(100%, 980px);
    min-height: 500px;
    overflow: visible;
}

.hero.hero-carousel-refresh .hero-slide {
    align-items: stretch;
}

.hero.hero-carousel-refresh .hero-slide.active {
    display: flex;
}

.hero.hero-carousel-refresh .hero-frame {
    min-height: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    justify-items: center;
    padding: 4px 0;
}

.hero.hero-carousel-refresh .hero-copy {
    width: 100%;
    max-width: 980px;
    margin: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 18px;
    text-align: center;
}

.hero.hero-carousel-refresh .hero-kicker {
    font-size: 0.74rem;
    padding: 8px 16px;
}

.hero.hero-carousel-refresh h2,
.hero.hero-carousel-refresh p {
    max-width: 100%;
    margin-inline: auto;
}

.hero.hero-carousel-refresh h2 {
    font-size: clamp(1.7rem, 2.7vw, 2.45rem);
    line-height: 1.22;
    margin-bottom: 8px;
}

.hero.hero-carousel-refresh p {
    max-width: 700px;
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 10px;
}

.hero.hero-carousel-refresh .hero-highlights {
    max-width: 680px;
    justify-content: center;
    margin: 2px auto 0;
    gap: 6px;
}

.hero.hero-carousel-refresh .hero-highlights span {
    font-size: 0.75rem;
    min-height: 32px;
    padding: 6px 11px;
}

.hero.hero-carousel-refresh .hero-buttons {
    margin-top: 6px;
    align-items: center;
    justify-content: center;
}

.hero.hero-carousel-refresh .hero-buttons .hero-btn {
    font-size: 0.84rem;
    padding: 9px 18px;
}

.hero.hero-carousel-refresh .hero-glance {
    width: 100%;
    max-width: 680px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: start;
    gap: 8px;
    justify-content: center;
    margin-top: 0;
}

.hero.hero-carousel-refresh .hero-glance-card {
    min-height: 76px;
    height: 100%;
    text-align: center;
    padding: 10px 8px;
    border-radius: 18px;
}

.hero.hero-carousel-refresh .hero-glance-card strong {
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.hero.hero-carousel-refresh .hero-glance-card span {
    font-size: 0.76rem;
    line-height: 1.45;
}

.hero.hero-carousel-refresh .hero-bottom-bar {
    width: min(100%, 720px);
    margin-top: 0;
    padding: 8px 8px 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(9, 33, 36, 0.34), rgba(9, 33, 36, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero.hero-carousel-refresh .hero-nav {
    width: 100%;
    max-width: 680px;
    flex: 0 1 auto;
    justify-content: center;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px !important;
    margin-top: 0;
    margin-bottom: 0;
}

.hero.hero-carousel-refresh .nav-dot {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 5px 6px;
    border-radius: 14px;
}

.hero.hero-carousel-refresh .nav-dot span {
    font-size: 0.9rem;
}

.hero.hero-carousel-refresh .nav-dot small {
    font-size: 0.68rem;
}

.hero.hero-carousel-refresh .hero-controls {
    width: 100%;
    max-width: 220px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    gap: 8px;
    padding-top: 0;
    clear: both;
}

.hero.hero-carousel-refresh .hero-arrow {
    font-size: 0.72rem;
    min-width: 68px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
}

.hero.hero-carousel-refresh .hero-progress {
    width: min(100%, 720px);
    margin-top: 2px;
}

@media (max-width: 1100px) {
    .hero.hero-carousel-refresh .hero-copy,
    .hero.hero-carousel-refresh .hero-glance {
        width: min(100%, 840px);
        margin-inline: auto;
    }

    .hero.hero-carousel-refresh .hero-nav,
    .hero.hero-carousel-refresh .hero-controls {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .hero.hero-carousel-refresh .hero-slider {
        min-height: 520px;
    }

    .hero.hero-carousel-refresh .hero-copy {
        padding: 18px 18px;
    }

    .hero.hero-carousel-refresh .hero-glance {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero.hero-carousel-refresh .hero-bottom-bar {
        align-items: center;
        padding: 8px 8px 12px;
    }
}

@media (max-width: 768px) {
    .hero.hero-carousel-refresh {
        padding: 100px 10px 16px !important;
        row-gap: 8px;
    }

    .hero.hero-carousel-refresh .hero-slider {
        min-height: auto;
        overflow: visible;
    }

    .hero.hero-carousel-refresh .hero-slide {
        position: absolute;
    }

    .hero.hero-carousel-refresh .hero-slide.active {
        position: relative;
    }

    .hero.hero-carousel-refresh .hero-frame {
        gap: 10px;
        padding: 0;
    }

    .hero.hero-carousel-refresh .hero-copy {
        padding: 16px 14px;
        text-align: center;
        border-radius: 20px;
    }

    .hero.hero-carousel-refresh h2,
    .hero.hero-carousel-refresh p {
        margin-inline: auto;
    }

    .hero.hero-carousel-refresh h2 {
        font-size: clamp(1.35rem, 5.4vw, 1.9rem);
        line-height: 1.25;
    }

    .hero.hero-carousel-refresh p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .hero.hero-carousel-refresh .hero-kicker {
        font-size: 0.7rem;
    }

    .hero.hero-carousel-refresh .hero-highlights span {
        font-size: 0.72rem;
        min-height: 30px;
        padding: 6px 10px;
    }

    .hero.hero-carousel-refresh .hero-highlights,
    .hero.hero-carousel-refresh .hero-buttons {
        justify-content: center;
    }

    .hero.hero-carousel-refresh .hero-highlights span {
        width: 100%;
        justify-content: center;
    }

    .hero.hero-carousel-refresh .hero-buttons {
        flex-direction: column;
        margin-top: 0;
    }

    .hero.hero-carousel-refresh .hero-buttons .hero-btn {
        width: 100%;
    }

    .hero.hero-carousel-refresh .hero-glance {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    .hero.hero-carousel-refresh .hero-glance-card {
        text-align: center;
        min-height: 74px;
    }

    .hero.hero-carousel-refresh .hero-glance-card strong {
        font-size: 1.08rem;
    }

    .hero.hero-carousel-refresh .hero-glance-card span {
        font-size: 0.8rem;
    }

    .hero.hero-carousel-refresh .hero-bottom-bar {
        width: 100%;
        padding: 8px 8px 10px;
        border-radius: 14px;
    }

    .hero.hero-carousel-refresh .hero-nav {
        grid-template-columns: 1fr;
        gap: 6px !important;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero.hero-carousel-refresh .nav-dot {
        max-width: none;
    }

    .hero.hero-carousel-refresh .nav-dot span {
        font-size: 0.82rem;
    }

    .hero.hero-carousel-refresh .nav-dot small {
        font-size: 0.66rem;
    }

    .hero.hero-carousel-refresh .hero-controls {
        width: 100%;
    }

    .hero.hero-carousel-refresh .hero-arrow {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.72rem;
        min-height: 32px;
    }
}

/* About section image cleanup */
.about-with-image {
    background: transparent !important;
}

.about-content {
    align-items: center;
}

.lawyer-image {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.lawyer-image img {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    border-radius: 18px;
    margin: 0;
}

@media (max-width: 768px) {
    .lawyer-image {
        margin-bottom: 16px;
    }

    .lawyer-image img {
        max-width: 100%;
        border-radius: 16px;
    }
}

/* Vision accent card text clarity */
.vision-card.vision-card-accent {
    background: linear-gradient(180deg, #1c5276 0%, #2f6a90 100%) !important;
}

.vision-card.vision-card-accent .vision-card-label {
    color: #ffe2a8 !important;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.vision-card.vision-card-accent h4 {
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.vision-card.vision-card-accent p {
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 1.02rem;
    line-height: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}
