/* Custom utility class - kept for layout */
.max-w-kun {
    max-width: 1470px;
}

.max-w-kun mx-auto px-4 sm:px-6 lg:px-8 {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .max-w-kun mx-auto px-4 sm:px-6 lg:px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .max-w-kun mx-auto px-4 sm:px-6 lg:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Custom HSL Color Overrides */
:root {
    --color-secondary: hsl(35 25% 92%);
    --color-secondary-30: hsl(35 25% 92% / 0.3);
    --color-gold: hsl(38 60% 50%);
    --color-card: hsl(40 25% 97%);
    --color-border: hsl(35 20% 88%);
}

/* Global Font Enforcement - Backup (custom-fonts.css is loaded last) */
html,
body,
* {
    font-family: 'SST Arabic Roman', 'SST Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Secondary color with opacity variants */
.bg-secondary\/30,
.bg-secondary\/\[0\.3\] {
    background-color: hsl(35 25% 92% / 0.3) !important;
}

.bg-secondary {
    background-color: hsl(35 25% 92%) !important;
}

/* Gold color */
.text-gold {
    color: hsl(38 60% 50%) !important;
}

.bg-gold {
    background-color: hsl(38 60% 50%) !important;
}

/* Gold opacity variants */
.bg-gold\/10 {
    background-color: hsl(38 60% 50% / 0.1) !important;
}

.bg-gold\/5 {
    background-color: hsl(38 60% 50% / 0.05) !important;
}

/* Card color */
.bg-card {
    background-color: hsl(40 25% 97%) !important;
}

.bg-card\/95 {
    background-color: hsl(40 25% 97% / 0.95) !important;
}

/* Border color */
.border-border {
    border-color: hsl(35 20% 88%) !important;
}



/* On-Scroll animations: handled by AnimationSystem (Tailwind utility classes) */

/* ==========================================================================
   Individual Dropdown Menu Hover (Non-group approach)
   ========================================================================== */

/* Top level dropdown trigger */
.dropdown-container:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Nested dropdown trigger for submenu items */
.dropdown-container li:hover>ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Arrow rotation on hover */
.dropdown-container:hover .hgi-arrow-down-01 {
    transform: rotate(180deg);
}

/* ==========================================================================
   Secondary Header Dropdown Menu Hover (Scroll Header)
   ========================================================================== */

/* Top level dropdown trigger for secondary header */
.dropdown-container-secondary:hover .dropdown-menu-secondary,
.dropdown-container-secondary:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Ensure group-hover also works for secondary header */
.dropdown-container-secondary.group:hover .dropdown-menu-secondary,
.dropdown-container-secondary.group:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Nested dropdown trigger for submenu items in secondary header */
.dropdown-container-secondary li:hover>ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Arrow rotation on hover for secondary header */
.dropdown-container-secondary:hover .hgi-arrow-down-01 {
    transform: rotate(180deg);
}

/* ==========================================================================
   Dropdown Menu Scrollbar (Tailwind-compatible)
   ========================================================================== */

/* Custom scrollbar for dropdown menus */
.dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}

.dropdown-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.dropdown-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
.dropdown-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* ==========================================================================
   Search Popover Styles
   ========================================================================== */

.search-menu-item {
    position: static;
}

/* Search dropdown container that spans full width */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(.98);
    z-index: 1000;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

/* Show search dropdown when active */
.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: all;
    max-height: 600px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Service Rating & Feedback Styles
   ========================================================================== */

/* Star rating interactions */
.rating-stars .star-icon {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars .star-icon:hover {
    transform: scale(1.1);
}

/* Rating selection states */
.rating-stars.rating-selected {
    background: rgba(37, 147, 95, 0.05);
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
}

.rating-stars .star-icon {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars .star-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(37, 147, 95, 0.3));
}

.rating-stars .star-icon:active {
    transform: scale(1.05);
}

/* Selected rating glow effect */
.rating-stars.rating-selected .star-icon.text-sa-500 {
    filter: drop-shadow(0 0 8px rgba(37, 147, 95, 0.4));
}

/* Feedback buttons */
.feedback-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.feedback-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.feedback-btn:active {
    transform: scale(0.95);
}

/* Feedback button loading state */
.feedback-btn.loading {
    position: relative;
}

.feedback-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Selected feedback button styles */
.feedback-btn.selected {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Rate service button */
.rate-service-btn {
    transition: all 0.2s ease;
}

.rate-service-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Feedback message animation */
.feedback-message {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Service action cards hover effects */
.service-action-card:hover {
    transform: translateY(-2px);
}

.service-action-card .hgi {
    transition: transform 0.2s ease;
}

.service-action-card:hover .hgi {
    transform: scale(1.1);
}

/* ==========================================================================
   Admin Bar Language Switcher Styles
   ========================================================================== */

/* Admin bar language switcher - functional styles only, static dimensions removed */
#wp-admin-bar-teeqcore-admin-language .language-flag img {
    vertical-align: middle;
    object-fit: cover;
}

#wp-admin-bar-teeqcore-admin-language .ab-submenu .language-flag img {
    vertical-align: middle;
    object-fit: cover;
}

/* RTL support for language switcher */
.rtl #wp-admin-bar-teeqcore-admin-language .language-flag img {
    margin-right: 0;
    margin-left: 0;
}

.rtl #wp-admin-bar-teeqcore-admin-language .ab-submenu .language-flag img {
    margin-right: 0;
    margin-left: 0;
}

/* High contrast mode - functional style kept for accessibility */
body.dga-high-contrast {
    filter: grayscale(1);
}

/* Icon figure - static dimensions removed, use Tailwind classes */
.icon-figure {
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

@keyframes airplane-r2-animation-keyframes {
    0% {
        transform: translate3d(-104px, 147px, 0px);
        animation-timing-function: linear;
    }

    63.1579% {
        transform: translate3d(-104px, 147px, 0px);
        animation-timing-function: linear;
    }

    100% {
        transform: translate3d(0px, 0px, 0px);
        animation-timing-function: linear;
    }
}

.icon-figure .airplane-r2-animation {
    animation: airplane-r2-animation-keyframes 1.9s linear 0s infinite normal forwards running;
}

/* Aeroplane - static dimensions removed, use Tailwind classes */
.aeroplane {
    position: relative;
    transform-style: preserve-3d;
}
@media (max-width: 1019px) {
    #site-header {
        top: 0 !important;
    }
}


@keyframes airplane-r1-animation-keyframes {
    0% {
        transform: translate3d(0px, 0px, 0px);
        animation-timing-function: linear;
    }

    63.1684% {
        transform: translate3d(0px, 0px, 0px);
        animation-timing-function: linear;
    }

    100% {
        transform: translate3d(106px, -122px, 0px);
        animation-timing-function: linear;
    }
}

.icon-figure .airplane-r1-animation {
    animation: airplane-r1-animation-keyframes 1.9s linear 0s infinite normal forwards running;
}

/* Speedmarkers - static dimensions removed, use Tailwind classes */
.speedmarker_L,
.speedmarker_R {
    position: relative;
    transform-style: preserve-3d;
}

@keyframes speedmarker-L-animation-keyframes {
    0% {
        transform: translate3d(0px, 0px, 0px);
        animation-timing-function: linear;
    }

    5.2579% {
        transform: translate3d(1px, -1px, 0px);
        animation-timing-function: linear;
    }

    10.5316% {
        transform: translate3d(1px, -0.9091px, 0px);
        animation-timing-function: linear;
    }

    15.7895% {
        transform: translate3d(0.9px, -0.8182px, 0px);
        animation-timing-function: linear;
    }

    21.0526% {
        transform: translate3d(-0.2px, 0.1616px, 0px);
        animation-timing-function: linear;
    }

    26.3211% {
        transform: translate3d(-0.175px, 0.1414px, 0px);
        animation-timing-function: linear;
    }

    31.5789% {
        transform: translate3d(-0.15px, -1.7359px, 0px);
        animation-timing-function: linear;
    }

    36.8421% {
        transform: translate3d(-0.125px, -1.4466px, 0px);
        animation-timing-function: linear;
    }

    42.1105% {
        transform: translate3d(0.7px, -0.1573px, 0px);
        animation-timing-function: linear;
    }

    47.3684% {
        transform: translate3d(-0.475px, 1.882px, 0px);
        animation-timing-function: linear;
    }

    52.6316% {
        transform: translate3d(-0.3167px, 0.2547px, 0px);
        animation-timing-function: linear;
    }

    57.8895% {
        transform: translate3d(-0.1584px, 1.1274px, 0px);
        animation-timing-function: linear;
    }

    63.1579% {
        transform: translate3d(0px, 0px, 0px);
        animation-timing-function: linear;
    }

    100% {
        transform: translate3d(108px, -111px, 0px);
        animation-timing-function: linear;
    }
}

.icon-figure .speedmarker-L-animation {
    animation: speedmarker-L-animation-keyframes 1.9s linear 0s infinite normal forwards running;
}

@keyframes speedmarker-R-animation-keyframes {
    0% {
        transform: translate3d(0px, 0px, 0px);
        animation-timing-function: linear;
    }

    5.2579% {
        transform: translate3d(1px, -1px, 0px);
        animation-timing-function: linear;
    }

    10.5316% {
        transform: translate3d(1px, -0.9091px, 0px);
        animation-timing-function: linear;
    }

    15.7895% {
        transform: translate3d(0.9px, -0.8182px, 0px);
        animation-timing-function: linear;
    }

    21.0526% {
        transform: translate3d(-0.2px, 0.1616px, 0px);
        animation-timing-function: linear;
    }

    26.3211% {
        transform: translate3d(-0.175px, 0.1414px, 0px);
        animation-timing-function: linear;
    }

    31.5789% {
        transform: translate3d(-0.15px, -1.7359px, 0px);
        animation-timing-function: linear;
    }

    36.8421% {
        transform: translate3d(-0.125px, -1.4466px, 0px);
        animation-timing-function: linear;
    }

    42.1105% {
        transform: translate3d(0.7px, -0.1573px, 0px);
        animation-timing-function: linear;
    }

    47.3684% {
        transform: translate3d(-0.475px, -1.118px, 0px);
        animation-timing-function: linear;
    }

    52.6316% {
        transform: translate3d(-0.3167px, -1.7453px, 0px);
        animation-timing-function: linear;
    }

    57.8895% {
        transform: translate3d(0.8416px, -0.8726px, 0px);
        animation-timing-function: linear;
    }

    63.1579% {
        transform: translate3d(0px, 0px, 0px);
        animation-timing-function: linear;
    }

    100% {
        transform: translate3d(108px, -111px, 0px);
        animation-timing-function: linear;
    }
}

.icon-figure .speedmarker-R-animation {
    animation: speedmarker-R-animation-keyframes 1.9s linear 0s infinite normal forwards running;
}

.swiper-cards .swiper-slide img {
    transition: 250ms all ease;
}

.swiper-cards .swiper-slide:not(.swiper-slide-active) img {
    opacity: .05;
}

.swiper-cards .swiper-slide {
    opacity: .2;
}

.swiper-cards .swiper-slide.swiper-slide-active {
    opacity: 1;
}

.hero-images-swiper {
    opacity: 0;
}

.hero-images-swiper.swiper-initialized {
    opacity: 1;
}

/* Revert content utility - allows content to use default browser styles */
.-revert-content * {
    all: revert;
    max-width: 100%;
    height: auto;
    contain-intrinsic-size: initial !important;
}

/* Google Reviews Testimonials Slider */
.testimonials-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: hsl(38 60% 50%);
    transform: scale(1.2);
}

.testimonials-swiper-button-prev.swiper-button-disabled,
.testimonials-swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================================================
   Recruitment Widget - Halis Legal
   ========================================================================== */

.recruitment-widget .recruitment-tab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recruitment-widget .recruitment-tab:hover:not(.tab-active) {
    background-color: hsl(38 60% 50% / 0.08);
}

.recruitment-widget .recruitment-tab:focus-visible {
    outline: 2px solid hsl(38 60% 50%);
    outline-offset: 2px;
}

.recruitment-widget .recruitment-panel {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.recruitment-widget .recruitment-form input:focus,
.recruitment-widget .recruitment-form select:focus,
.recruitment-widget .recruitment-form textarea:focus {
    box-shadow: 0 0 0 2px hsl(38 60% 50% / 0.3);
}

.recruitment-widget .recruitment-form-message:not(.hidden) {
    animation: recruitment-message-in 0.4s ease-out;
}

@keyframes recruitment-message-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recruitment-widget .recruitment-submit:disabled {
    cursor: not-allowed;
}

/* Static styles removed - use Tailwind classes instead */

/* Buttons and links are reset in reset.css - functional properties maintained */

.comment-body {
    margin-bottom: 40px;
}