/* 
 * Dr. Awad Al-Aryani Law Firm - Main Stylesheet
 * Primary Color: #760005 (Deep Red)
 * Secondary: White/Off-white
 * Fonts: Playfair Display (Headings), Inter (Body)
 */

:root {
    --primary-color: #760005;
    --primary-dark: #5a0004;
    --primary-light: #9e1b21;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --gray-light: #e0e0e0;
    --gray-dark: #333333;
    --text-color: #ffffff;
    /* Default text on dark bg (hero) is usually white, but body is dark. */
    --text-body: #333333;

    --font-heading: 'Marcellus', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1300px;
    /* Wider for the new header layout */
    --header-height: 90px;
    --top-bar-height: 40px;
    --transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Increased for sticky header */
}

html,
body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

.section {
    padding: 80px 0;
    color: var(--text-body);
    /* Reset for white sections */
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 16px 36px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 14px 28px;
        font-size: 0.85rem;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(118, 0, 5, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    background-color: transparent;
    /* Transparent as requested */
    color: #ccc;
    font-size: 0.8rem;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.top-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Header */
header {
    position: absolute;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    background-color: transparent;
    /* Transparent as requested */
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu-branding {
    display: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.8rem;
    border: none;
}

header.sticky {
    position: fixed;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 80px;
    border-bottom: none;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Page Hero Styles */
.page-hero {
    height: 350px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/banner/banner.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: calc(var(--header-height) + var(--top-bar-height));
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--white);
    opacity: 0.8;
}

.breadcrumbs .separator {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    display: inline-block;
}

.breadcrumbs span {
    color: var(--white);
}

@media (max-width: 768px) {
    .page-hero {
        height: 250px;
    }

    .page-hero-content h1 {
        font-size: 2.5rem;
    }
}

header.sticky .logo img {
    height: 50px;
}

header.sticky .nav-links a {
    color: #000000;
}

header.sticky .phone-link {
    color: #000000;
}

header.sticky .mobile-menu-btn {
    color: #000000;
}

header.sticky .nav-links a:hover,
header.sticky .nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.mobile-menu-close {
    display: none;
    position: fixed; /* Fixed to viewport for accuracy */
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1.8rem; /* Slightly smaller, more elegant */
    cursor: pointer;
    z-index: 1200; /* Higher than menu */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.nav-menu.active .mobile-menu-close {
    display: flex;
}

/* Hero Section */
.hero {
    height: 800px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/images/banner/banner.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero {
        height: 700px;
        background-size: cover;
        background-position: 40% center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 160px 0 80px;
        background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('assets/images/banner/banner.webp');
        background-size: cover;
        background-position: 30% center;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        padding: 120px 0 40px;
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/images/banner/banner.webp');
        background-size: cover;
        background-position: 25% center;
        background-attachment: scroll;
    }
}

.hero-content {
    width: 100%;
    max-width: 1300px;
    padding-left: 28px;
    padding-right: 28px;
    padding-top: 100px;
    z-index: 2;
}

@media (max-width: 1024px) {
    .hero-content {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.sub-headline {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .sub-headline {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .sub-headline {
        font-size: 0.85rem;
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 110%;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--white);
    max-width: 900px;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 64px;
        line-height: 110%;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
        line-height: 115%;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
        line-height: 120%;
    }
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 40px;
    color: #e8e8e8;
    font-weight: 300;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .hero p {
        font-size: 1.05rem;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        max-width: 100%;
        gap: 15px;
    }
}

/* Section specific overrides for dark text */
.section h2 {
    color: var(--text-body);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image-wrapper {
        padding-left: 0;
        padding-bottom: 20px;
        display: flex;
        justify-content: center;
    }

    .about-decoration {
        width: 80%;
        height: 80%;
        left: 10%;
        bottom: 0;
    }
}

.about-image-wrapper {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
    max-width: 420px;
    margin: 0 auto;
}

.about-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    /* Adjust based on look */
    height: 80%;
    /* Adjust based on look */
    background-color: #760005;
    /* Deep red accent */
    border-radius: 20px;
    z-index: 1;
    /* Behind image */
}

.about-img-main {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 20px;
    z-index: 2;
    /* In front of decoration */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    padding-right: 20px;
}

.section-label {
    display: block;
    color: #ff0000;
    /* Bright red for "WHO ARE WE?" */
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-text p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-text p {
        text-align: center;
    }
}

/* Services Section - Dark Red Redesign */
.services-section-dark {
    background-color: var(--primary-color);
    /* #760005 */
    color: var(--white);
    padding: 120px 0;
}

.services-section-dark .sub-headline {
    color: var(--white);
    opacity: 0.9;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.services-section-dark h2 {
    color: var(--white);
    font-size: 4.5rem;
    margin-bottom: 0;
    line-height: 1;
    font-family: var(--font-heading);
    font-weight: 400;
}

@media (max-width: 768px) {
    .services-section-dark h2 {
        font-size: 2.5rem;
    }
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
    flex-wrap: wrap;
    gap: 60px;
}

@media (max-width: 768px) {
    .services-header {
        margin-bottom: 50px;
        text-align: center;
        justify-content: center;
    }
}

.services-header-text {
    max-width: 550px;
    text-align: left;
    padding-top: 10px;
}

.services-header-text p {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 300;
}

.services-buttons {
    display: flex;
    gap: 20px;
}

@media (max-width: 480px) {
    .services-buttons {
        flex-direction: column;
        width: 100%;
    }

    .services-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.btn-white {
    background-color: var(--white);
    color: #000000;
    border: none;
    font-weight: 700;
    padding: 14px 35px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-white:hover {
    background-color: #f0f0f0;
    color: #000000;
}

.services-section-dark .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
}

.services-section-dark .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* RESTORED & EXTENDED CSS for Accordion */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: block;
    /* Changed from flex to block to allow stacking */
}

.service-summary {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 40px;
}

@media (max-width: 768px) {
    .service-summary {
        gap: 20px;
        padding: 20px 0;
    }
}

.service-item:first-child .service-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service-item.active .service-summary {
    background-color: var(--white);
    padding: 25px 20px;
    margin: 0 -20px;
    border-bottom-color: transparent;
    border-top-color: transparent;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    width: 250px;
    /* Match detailed image width for alignment */
    min-width: 250px;
    flex-shrink: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: auto;
    gap: 15px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    /* Reduced from 3rem */
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0;
    width: 100%;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.service-content p {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: none;
    width: 100%;
    margin-bottom: 0;
    opacity: 0.8;
    font-weight: 300;
    padding-top: 0;
    transition: color 0.3s ease;
}

/* Arrow */
.service-arrow {
    width: 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    padding-top: 5px;
    /* Visual alignment with title */
    transition: all 0.3s ease;
}

/* Active States */
.service-item.active .service-number,
.service-item.active .service-content h3,
.service-item.active .service-arrow {
    color: #000;
}

/* Hide the summary description when active */
.service-item.active .service-content p {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute;
    /* Take out of flow to prevent taking up space/affecting layout if needed, or just keep it invisible */
}

/* Actually, straightforward display none is better to remove it from flex flow if we want the title to potentially re-flow or just stand alone, but flex gap might remain. 
   Let's use opacity+absolute to keep animations smooth if we want, OR just simple display: none. 
   User said "didn't want show". 
   Let's try display: none for immediate removal.
*/
.service-item.active .service-content p {
    display: none;
}

.service-item.active .service-arrow {
    transform: rotate(180deg);
}

/* Details Section */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
}

.service-item.active .service-details {
    opacity: 1;
}

.service-details-inner {
    padding: 20px 0;
    /* Reduced from 40px */
    display: flex;
    gap: 40px;
    align-items: center;
    /* Center align items */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-details-inner img {
    width: 250px;
    height: 250px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.details-text {
    flex: 1;
    /* Take remaining space */
    color: #ffeced;
    font-size: 0.95rem;
    /* Slightly smaller */
    line-height: 1.6;
    font-weight: 300;
}

.details-text p {
    margin-bottom: 20px;
}

.details-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.details-text li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
        z-index: 1101;
        align-items: center;
        justify-content: center;
        padding: 50px 40px;
        overflow-y: auto;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1100;
    }

    .header-contact {
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .nav-menu-branding {
        display: block;
        margin-bottom: 50px;
        text-align: center;
    }

    .nav-menu-branding img {
        width: 120px;
        height: auto;
        filter: brightness(0) invert(1); /* Make it white */
    }

    .nav-links li {
        margin-bottom: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 500;
        width: 100%;
        display: block;
        color: var(--white) !important;
        padding: 20px 0;
        letter-spacing: 1.5px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--white) !important;
        border-bottom: none;
        padding-bottom: 20px;
    }

    .mobile-menu-btn {
        z-index: 1100;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu.active .nav-links {
        display: flex;
    }

    .services-header h2 {
        font-size: 3rem;
    }

    .service-content h3 {
        width: 100%;
        margin-bottom: 15px;
    }

    .service-content p {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .detailed-blog-list {
        grid-template-columns: 1fr;
    }

    .top-bar {
        display: none; /* Hide on smaller screens to save space */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-header {
        flex-direction: column;
        gap: 20px;
    }

    .service-summary {
        flex-direction: column;
        gap: 10px;
    }

    .service-number {
        font-size: 1.4rem;
        margin-bottom: 10px;
        width: 100%;
        min-width: 0;
    }

    .service-content {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .service-content h3 {
        font-size: 1.3rem;
        width: 100%;
        margin-bottom: 5px;
    }

    .service-content p {
        display: block;
        width: 100%;
        font-size: 0.9rem;
    }

    .service-arrow {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .service-details-inner {
        flex-direction: column;
    }

    .service-details-inner img,
    .details-text {
        width: 100%;
    }
}

/* News Section - News, Events & Bulletins */
.news-section {
    background-color: #f9f9f9;
    padding: 100px 0;
}

.news-header {
    margin-bottom: 60px;
}

.news-header h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-body);
    margin-bottom: 10px;
}

.header-divider {
    font-size: 1.5rem;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 30px;
    padding-bottom: 30px;
}

.side-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-view-all:hover {
    background-color: #5a0004;
    /* Darker shade */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(118, 0, 5, 0.3);
}

.news-grid::-webkit-scrollbar {
    display: none;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Featured Card Style (Image Overlay) */
.news-card.featured {
    grid-column: span 2;
    position: relative;
    min-height: 530px;
}

.news-card.featured .news-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-card.featured .news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: var(--white);
    z-index: 2;
    margin-top: auto;
}

.news-card.featured .news-title {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.news-card.featured .news-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    opacity: 1;
}

/* Side Card Style (Vertical Stack instead of Horizontal Split) */
.news-card.side {
    flex-direction: column;
    height: auto;
}

.news-card.side .news-image-wrapper {
    width: 100%;
    height: 220px;
}

.news-card.side .news-content {
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card.side .news-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.news-card.side .news-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Grid Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
        min-height: 450px;
    }

    .news-card.side {
        flex-direction: row; /* Horizontal layout looks better when full width */
        height: auto;
        min-height: 250px;
    }
    
    .news-card.side .news-image-wrapper {
        width: 40%;
        height: auto;
    }
    
    .news-card.side .news-content {
        width: 60%;
    }
}

@media (max-width: 650px) {
    .news-card.side {
        flex-direction: column;
    }

    .news-card.side .news-image-wrapper,
    .news-card.side .news-content {
        width: 100%;
    }

    .news-card.side .news-image-wrapper {
        height: 200px;
    }

    .news-card.featured .news-title {
        font-size: 1.6rem;
    }
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.news-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--white);
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.08);
}

.news-title {
    font-family: var(--font-heading);
    color: var(--text-body);
    line-height: 1.3;
}

.news-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Added standard for compatibility */
    line-clamp: 3;
}

/* News Page Specific List */
/* News Page Specific List - Grid Layout */
.news-list-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
}

.news-list-premium .news-card {
    height: 100%;
    /* Ensure full height in grid */
}

/* Specific adjustment for images in vertical cards within the news list */
.news-list-premium .news-card .news-image-wrapper {
    height: 350px;
}

@media (max-width: 1024px) {
    .news-list-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-list-premium {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .news-list-premium .news-card .news-image-wrapper {
        height: 220px;
    }
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.3;
    flex-grow: 1;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.news-card:hover .btn-text {
    gap: 15px;
}

/* News Modal Specifics */
#newsModal .modal-container {
    max-width: 800px;
}

#newsModal .modal-image {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#newsModal .modal-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 5px solid var(--primary-color);
}

#newsModal .modal-text h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 20px;
    color: #000;
}

#newsModal .designation {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 20px;
    }

    .news-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Our Team Section */
.team-section {
    padding: 100px 0;
    background-color: #fff;
}

.team-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.team-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    color: #000;
    margin-bottom: 20px;
}

.team-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 0 0 calc(25% - 22.5px);
    max-width: calc(25% - 22.5px);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Featured Card for Founder/Managers */
.team-card-featured {
    flex: 0 0 400px;
    max-width: 400px;
    margin: 0 auto 30px;
}

@media (max-width: 480px) {
    .team-card-featured {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.team-card-featured .team-image {
    height: 450px;
}

.team-card-featured .name {
    font-size: 22px;
}

.team-card-featured .designation {
    font-size: 15px;
}

/* Force full row */
.team-grid-full {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(118, 0, 5, 0.15);
}

.team-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Prioritize the top of the image (faces) */
}

/* Gradient overlay for the featured/active card image to match Figma */
.team-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(118, 0, 5, 0) 51.44%, #760005 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-image::after {
    opacity: 1;
}

.team-info {
    padding: 25px 20px;
    background: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

/* 8-Image Grid for Specific News Item */
.news-grid-8-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.news-grid-8-images img {
    width: 100%;
    height: 150px;
    /* Fitting size */
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.news-grid-8-images img:hover {
    transform: scale(1.03);
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.news-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.news-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .news-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .news-gallery {
        grid-template-columns: 1fr;
    }
    .news-gallery img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .news-grid-8-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid-8-images {
        grid-template-columns: 1fr;
    }
}

.team-card:hover .team-info {
    background-color: #760005;
    color: #fff;
}

.designation {
    display: block;
    font-size: 14px;
    color: #760005;
    margin-bottom: 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.team-card:hover .designation {
    color: rgba(255, 255, 255, 0.8);
}

.name {
    font-size: 18px;
    font-family: var(--font-heading);
    color: #333;
    margin: 0;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.team-card:hover .name {
    color: #fff;
}

.team-section .pagination-dots {
    display: none;
}

/* Responsive Team Section */
@media (max-width: 1024px) {
    .team-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .team-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        box-sizing: border-box;
    }

    .team-card {
        min-width: 280px; /* Fixed minimum width for slider items */
        max-width: 85%;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    .team-grid::-webkit-scrollbar {
        display: none;
    }

    .team-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .team-image {
        height: 400px;
    }

    .team-section .pagination-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 30px;
    }

    .team-section .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #e0e0e0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .team-section .dot.active {
        background-color: var(--primary-color);
    }
}

/* Stats and Logos Section */
.stats-logos-section {
    background-color: #fff;
    padding-bottom: 120px;
}

.stats-banner {
    background-size: cover;
    background-position: center;
    height: 300px;
    /* Slightly taller for more presence */
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    padding-bottom: 0;
}

.banner-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    gap: 75px;
}

.banner-content {
    max-width: 600px;
}

.banner-content .section-label {
    color: #760005;
    /* Red as per Figma */
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
}

.banner-content h2 {
    font-size: 35px;
    line-height: 1.2;
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0;
}

.app-links-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 280px;
}

.app-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-logo-img {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.app-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.app-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.3px;
}

.app-store-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    min-width: 145px;
}

.store-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

.store-btn svg {
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-label {
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .app-links-block {
        width: 100%;
        align-items: center;
    }
    .app-store-btns {
        justify-content: center;
    }
}

/* Legacy .app-links kept for other pages */
.app-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.app-links img {
    height: 50px;
    width: auto;
    display: block;
}

.app-links img {
    height: 50px;
    /* Precise height */
    width: auto;
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 80px auto;
    max-width: 1050px;
    position: relative;
    z-index: 10;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 60px auto;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        margin: 40px auto;
        gap: 20px;
    }
}

.stat-card {
    background-color: #F6F6F6;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    background-color: #760005;
    color: #fff !important;
}

.stat-card h3 {
    font-size: 64px;
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1;
    transition: color 0.3s ease;
}

.stat-card:hover h3 {
    color: #fff !important;
}

.stat-card h3 {
    color: #700000;
}

.stat-card p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: inherit;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 220px;
}

.stat-card:hover p {
    color: #fff !important;
}

.logos-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 50px auto 0;
    padding: 40px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-grid {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 30px;
    align-items: center;
    animation: logo-scroll 40s linear infinite;
    padding: 10px 0;
}

.logos-grid:hover {
    animation-play-state: paused;
}

@keyframes logo-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Removed static grid media queries as we now use a carousel */

.logo-box {
    background-color: #F6F6F6;
    height: 100px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .logo-box {
        width: 140px;
        height: 70px;
        padding: 8px;
    }
}

.logo-box img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-box:hover {
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Team Member Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-container {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2001;
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2002;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    min-height: 550px;
}

.modal-image {
    height: 100%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text .designation {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    display: block;
}

.modal-text h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    color: #000;
    margin-bottom: 25px;
    font-weight: 400;
}

.bio-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 30px;
}

.bio-scroll::-webkit-scrollbar {
    width: 4px;
}

.bio-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bio-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.modal-text .specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-text .spec-tag {
    background: #f8f8f8;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #333;
    border: 1px solid #eee;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    0% {
        transform: translateY(40px) scale(0.98);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content-grid>* {
    animation: contentFadeIn 0.6s ease forwards;
    opacity: 0;
}

.modal-image {
    animation-delay: 0.2s;
}

.modal-text {
    animation-delay: 0.4s;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Responsive Modal */
@media (max-width: 992px) {
    .modal-content-grid {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 400px;
    }

    .modal-text {
        padding: 40px;
    }

    .modal-container {
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Mobile Modal - Full Redesign */
@media (max-width: 600px) {
    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-container {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 92vh;
        overflow-y: auto;
        overflow-x: hidden;
        animation: modalSlideFromBottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    }

    .modal-content-grid {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    /* Drag handle indicator */
    .modal-container::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 12px auto 0;
    }

    /* Image: compact square/portrait on mobile */
    .modal-image {
        height: 380px;
        overflow: hidden;
        border-radius: 0;
        position: relative;
    }

    .modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    /* Close button repositioned inside image */
    .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* Text area */
    .modal-text {
        padding: 24px 20px 32px;
        justify-content: flex-start;
    }

    .modal-text .designation {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .modal-text h2 {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .bio-scroll {
        max-height: 140px;
        margin-bottom: 20px;
        padding-right: 8px;
    }

    .modal-text p {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .modal-text .specialties {
        gap: 8px;
    }

    .modal-text .spec-tag {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}

@keyframes modalSlideFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .banner-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 0 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: 50px;
    }

/* Removed static grid media queries */
}

@media (max-width: 768px) {
    .stats-banner {
        height: auto;
        padding: 80px 0;
    }

    .banner-content h2 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .stat-card {
        padding: 40px 20px;
        min-height: auto;
    }

/* Removed static grid media queries */
}

/* Detailed Internal Pages Styles */

/* Detailed Services Grid */
.detailed-services-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "image info";
    gap: 60px;
    align-items: center;
}

.service-detail-card.reverse {
    grid-template-areas: "info image";
}

/* RTL Support for Service Cards */
.rtl-mode .service-detail-card {
    grid-template-areas: "info image";
}

.rtl-mode .service-detail-card.reverse {
    grid-template-areas: "image info";
}

.service-detail-image {
    grid-area: image;
}

.service-detail-info {
    grid-area: info;
}

.service-detail-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-cat {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.service-detail-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 20px;
}

.service-detail-info p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.service-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #444;
}

.service-features li i {
    color: var(--primary-color);
    margin-top: 4px;
}

/* Detailed Team List */
.detailed-team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-detail-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-detail-card:hover {
    transform: translateY(-10px);
}

.team-detail-image {
    height: 400px;
    overflow: hidden;
}

.team-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-detail-content {
    padding: 30px;
}

.team-detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.team-detail-content .designation {
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.team-detail-content .bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-tag {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
}

/* Blog Post List */
.detailed-blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    height: 100%;
}

.blog-post-image {
    position: relative;
    height: 200px;
    width: 100%;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    line-height: 1;
}

.blog-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.blog-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.blog-post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 10px 0 15px;
    line-height: 1.3;
}

.blog-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.blog-post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more-link {
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more-link:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {

    .service-detail-card,
    .blog-post-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "info";
        gap: 30px;
    }

    .service-detail-card.reverse {
        grid-template-areas: "image" "info";
    }

    .blog-post-card {
        padding: 0;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .detailed-services-grid {
        gap: 50px;
    }

    .service-detail-info h3,
    .news-page-content h2 {
        font-size: 2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--primary-color);
    padding: 120px 0;
    color: var(--white);
}

.testimonials-header {
    margin-bottom: 70px;
}

.testimonials-header .section-label {
    color: var(--white);
    opacity: 0.8;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
}

.testimonials-header h2 {
    color: var(--white);
    font-size: 56px;
    margin-top: 15px;
    font-family: var(--font-heading);
    font-weight: 400;
}

.testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    /* Space for scrollbar or shadow */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.testimonial-card {
    min-width: 600px;
    /* Fixed width for slider effect */
    scroll-snap-align: center;
    background-color: var(--white);
    padding: 40px 30px;
    /* Reduced vertical padding */
    border-radius: 12px;
    color: var(--text-body);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 85%;
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    /* Reduced margin */
}

.avatar {
    width: 65px;
    height: 65px;
    background-color: #E6E6E6;
    border-radius: 50%;
    flex-shrink: 0;
    /* Ensure avatar doesn't shrink */
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar span {
    font-size: 24px;
    font-weight: 600;
    color: #760005;
    /* Brand color */
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.user-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 400;
}

.stars {
    color: #FF9D00;
    font-size: 16px;
    display: flex;
    gap: 2px;
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.testimonials-section .pagination-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.testimonials-section .dot {
    background-color: rgba(255, 255, 255, 0.3);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonials-section .dot:hover {
    transform: scale(1.1);
}

.testimonials-section .dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}


/* Responsive Testimonials */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .testimonial-card {
        min-width: 85%;
        scroll-snap-align: center;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonials-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .testimonials-header h2 {
        font-size: 38px;
    }

    .testimonials-section {
        padding: 80px 0;
    }
}

/* Contact Form Section */
.contact-form-section {
    background: url('assets/images/form/form.webp');
    background-size: cover;
    background-position: center bottom;
    /* Anchor to the table at the bottom */
    background-repeat: no-repeat;
    padding: 30px 0;
    min-height: 580px;
    /* Reduced further to show exactly ~3 shelf rows above the table */
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.contact-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.contact-left {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Centered in the left column to align with the desk/hammer area */
    margin-top: 60px;
    /* Readjusted for even shorter section height */
}

.form-crest {
    max-width: 380px;
    width: 100%;
    height: auto;
}

.contact-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .contact-right {
        justify-content: center;
        width: 100%;
    }
}

.form-card {
    background-color: var(--white);
    padding: 50px 45px;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    /* Adjusted to Figma proportions */
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-card h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 35px;
    font-weight: 400;
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A0A0A0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.form-checkbox .highlight {
    color: #760005;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background-color: #760005;
    /* Exact Figma Red */
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: none;
    /* Figma uses Title Case */
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Responsive Contact Form */
@media (max-width: 1024px) {
    .contact-content {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }

    .contact-right {
        justify-content: center;
    }

    .form-crest {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .form-card {
        padding: 40px 25px;
    }

    .form-card h2 {
        font-size: 32px;
    }

    .contact-form-section {
        padding: 80px 0;
    }
}

/* New Footer Styles */
.new-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
    font-family: 'Inter', sans-serif;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    max-width: 280px;
    /* Increased to match figma scale better */
    margin-bottom: 25px;
}

.co-info p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--white);
    text-transform: none;
}

.footer-col.links ul li {
    margin-bottom: 12px;
}

.footer-col.links ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-col.links ul li a:hover {
    color: var(--white);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item img.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-top: 2px;
    filter: brightness(0) invert(1);
    /* Ensure icons are white */
}

.contact-item p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.social-links-rounded {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.social-links-rounded a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-links-rounded a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Ensures icons appear white */
}

.social-links-rounded a:hover {
    background-color: var(--white);
}

.social-links-rounded a:hover img {
    filter: none;
    /* Show original color or keep it dark if needed */
    /* If the red background is used, maybe filter it to primary color */
}

.working-hours h3 {
    margin-bottom: 15px;
}

.working-hours p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: left;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Responsiveness for new footer */
@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
        gap: 40px;
    }

    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-main-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Contact Page Specific Styles */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 80px;
    /* Offset for fixed header if needed, or check existing hero */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.contact-page-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info-card h2,
.contact-form-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c2c2c;
    position: relative;
    padding-bottom: 15px;
}

.contact-info-card h2::after,
.contact-form-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #760005;
    /* Brand color */
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    background-color: #f4f4f4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: #760005;
    font-size: 20px;
}

.info-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.info-content p a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.info-content p a:hover {
    color: #760005;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .contact-form-wrapper .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form-wrapper .form-group {
    margin-bottom: 20px;
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fcfcfc;
    transition: all 0.3s;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: #760005;
    background-color: #fff;
    outline: none;
}

.contact-form-wrapper .btn-submit {
    width: 100%;
}

.map-section {
    height: 500px;
    width: 100%;
    position: relative;
    /* Map embed fills this */
}

.map-section iframe {
    filter: grayscale(20%);
    /* Optional: Adds a slightly premium, muted look */
}

/* Contact Page Specific Styles */
.contact-page-section {
    padding: 80px 0;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-block .section-label {
    color: var(--primary-color);
}

.contact-info-block h2 {
    font-family: var(--font-heading);
    color: #000;
    font-size: 40px;
    margin: 15px 0 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #F9F9F9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    font-family: var(--font-heading);
    margin-bottom: 5px;
    font-size: 20px;
    color: #000;
}

.map-section {
    width: 100%;
    height: 450px;
    background: #eee;
}

@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-info-block {
        text-align: center;
    }

    .info-item {
        justify-content: center;
        text-align: left;
    }

    .form-card {
        margin: 0 auto;
    }
}
/* ============================================
   Animations & Reveal Effects
   ============================================ */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reveal on Scroll Base Classes */
.reveal-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.fade-up {
    transform: translateY(30px);
}

.reveal-on-scroll.fade-left {
    transform: translateX(40px);
}

.reveal-on-scroll.fade-right {
    transform: translateX(-40px);
}

.reveal-on-scroll.fade-in {
    transform: none;
}

.reveal-on-scroll.scale-in {
    transform: scale(0.9);
}

/* Active State Triggered by JS */
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Hero Staggered Animation */
.animate-hero-text {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.animate-hero-text:nth-child(1) { animation-delay: 0.2s; }
.animate-hero-text:nth-child(2) { animation-delay: 0.4s; }
.animate-hero-text:nth-child(3) { animation-delay: 0.6s; }
.animate-hero-text:nth-child(4) { animation-delay: 0.8s; }

/* Enhanced Hover Effects */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px; /* More space */
    left: 0;
    width: 0;
    height: 3px; /* Slightly thicker */
    background-color: var(--primary-light);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.sticky .nav-links a::after {
    background-color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.team-card, .news-card, .blog-card {
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s ease !important;
}

.team-card:hover, .news-card:hover, .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.service-item {
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .service-item:hover {
        transform: none;
    }
}

/* Fixed Language Switcher */
.lang-switcher-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: var(--font-body);
}

.lang-switcher-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    border: 1.5px solid rgba(255,255,255,0.1);
}

.lang-switcher-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(118, 0, 5, 0.4);
}

.lang-switcher-dropdown {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background-color: var(--white);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 150px;
    border: 1px solid rgba(0,0,0,0.08);
}

.lang-switcher-fixed:hover .lang-switcher-dropdown,
.lang-switcher-fixed.active .lang-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-switcher-dropdown a {
    color: var(--text-body);
    padding: 14px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.lang-switcher-dropdown a:last-child {
    border-bottom: none;
}

.lang-switcher-dropdown a:hover {
    background-color: #fcfcfc;
    color: var(--primary-color);
    padding-left: 25px;
}

@media (max-width: 768px) {
    .lang-switcher-fixed {
        bottom: 20px;
        right: 20px;
    }
    
    .lang-switcher-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
    
    .lang-switcher-dropdown {
        min-width: 130px;
        bottom: calc(100% + 10px);
    }
}

/* RTL Support */
body.rtl-mode {
    direction: rtl;
    text-align: right;
}

body.rtl-mode .about-grid,
body.rtl-mode .services-header,
body.rtl-mode .news-grid,
body.rtl-mode .team-grid {
    direction: rtl;
}

body.rtl-mode .lang-switcher-fixed {
    right: auto;
    left: 25px;
}

@media (max-width: 768px) {
    body.rtl-mode .lang-switcher-fixed {
        left: 20px;
    }
}

/* Language specific images */
body.rtl-mode .img-en {
    display: none !important;
}
body.rtl-mode .img-ar {
    display: block !important;
}
body:not(.rtl-mode) .img-ar {
    display: none !important;
}
body:not(.rtl-mode) .img-en {
    display: block !important;
}

/* Unify and reduce main heading sizes on mobile screens */
@media (max-width: 768px) {
    h1.animate-hero-text,
    .section h2,
    .services-section-dark h2,
    .team-category-header h2,
    .about-text h2,
    .news-header h2,
    .banner-content h2,
    .testimonials-header h2,
    .contact-info-block h2,
    .contact-form-wrapper h2,
    .about-page-intro h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
}
