/* ==========================================================================
   First Class Contracting — Luminous, Open & Dynamic Floating Hero
   Inspired by The Depth Co. Architecture:
   - 100% Transparent Floating Header (Photo extends to the top of the browser)
   - Clean, Bright, Luminous Photo Lighting (No Muddy Green Tint)
   - Grand White Cairo Typography with Glowing Gold Accent Bar
   - Smooth Ken Burns Slide Carousel of Real Projects
   ========================================================================== */

:root {
    --fc-primary: #179D38;
    --fc-primary-dark: #135926;
    --fc-primary-deep: #071c11;
    --fc-gold: #FECB66;
    --fc-gold-hover: #ffd988;
    --fc-gold-dark: #d49500;
    --fc-ink: #071c11;
    --fc-text-light: #ffffff;
    --fc-text-muted: rgba(255, 255, 255, 0.92);
    --fc-border-gold: rgba(254, 203, 102, 0.25);
}

/* -------------------------------------------------------------
   Floating Transparent Topbar (Airy & Open like The Depth Co.)
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   Topbar Hidden for maximum space and clean modern header
   ------------------------------------------------------------- */
.depth-topbar {
    display: none !important;
}

/* -------------------------------------------------------------
   Main Floating Header (100% Transparent, No Dark Ceiling)
   ------------------------------------------------------------- */
.site-header {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1001;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Quick Contact Dropdown in Header */
.depth-quick-contact-dropdown {
    position: relative;
    display: inline-block;
}

.depth-quick-contact-dropdown .depth-btn-yellow {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.depth-quick-contact-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid rgba(16, 43, 27, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    padding: 1.25rem;
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

html[dir="ltr"] .depth-quick-contact-menu {
    left: auto;
    right: 0;
}

.depth-quick-contact-dropdown:hover .depth-quick-contact-menu,
.depth-quick-contact-dropdown.open .depth-quick-contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.quick-contact-header {
    border-bottom: 1px solid rgba(16, 43, 27, 0.08);
    padding-bottom: 0.8rem;
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    text-align: right;
}

html[dir="ltr"] .quick-contact-header {
    text-align: left;
}

.quick-contact-header strong {
    font-size: 0.96rem;
    color: #0f172a;
    font-weight: 800;
}

.quick-contact-header small {
    font-size: 0.76rem;
    color: #15803d;
    font-weight: 700;
    margin-top: 2px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s ease;
    margin-bottom: 0.4rem;
}

.quick-contact-item:hover {
    background: rgba(23, 157, 56, 0.08);
    transform: translateX(-3px);
}

html[dir="ltr"] .quick-contact-item:hover {
    transform: translateX(3px);
}

.quick-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.quick-contact-icon.phone-icon {
    background: rgba(23, 157, 56, 0.12);
    color: #179D38;
}

.quick-contact-icon.email-icon {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.quick-contact-icon.whatsapp-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.quick-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: right;
}

html[dir="ltr"] .quick-contact-text {
    text-align: left;
}

.quick-contact-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.quick-contact-val {
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-contact-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.5rem 0.6rem;
    border-top: 1px solid rgba(16, 43, 27, 0.08);
    margin-top: 0.5rem;
}

.quick-contact-social-title {
    font-size: 0.76rem;
    font-weight: 750;
    color: #475569;
}

.quick-contact-social-icons {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.quick-contact-social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(16, 43, 27, 0.06);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-contact-social-icons a:hover {
    background: #179D38;
    color: #ffffff;
    transform: translateY(-2px);
}

.quick-contact-full-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 1rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #0e5c26 0%, #179d38 100%);
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
    transition: all 0.25s ease;
}

.quick-contact-full-btn:hover {
    background: linear-gradient(135deg, #137731 0%, #1cb542 100%);
    color: #ffffff !important;
}

/* Mobile Drawer Social Icons */
.mobile-drawer-social {
    padding: 12px 16px;
    margin: 8px 12px 14px;
    background: rgba(23, 157, 56, 0.06);
    border: 1px solid rgba(23, 157, 56, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mobile-drawer-social-label {
    font-size: 0.82rem;
    font-weight: 750;
    color: #0f172a;
}

.mobile-drawer-social-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mobile-drawer-social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(16, 43, 27, 0.1);
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-drawer-social-icons a:hover {
    background: #179D38;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Dark mode for Quick Contact Menu & Mobile Social */
html[data-theme="dark"] .depth-quick-contact-menu {
    background: #101924;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

html[data-theme="dark"] .quick-contact-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quick-contact-header strong {
    color: #f8fafc;
}

html[data-theme="dark"] .quick-contact-header small {
    color: #4ade80;
}

html[data-theme="dark"] .quick-contact-item {
    color: #f8fafc;
}

html[data-theme="dark"] .quick-contact-item:hover {
    background: rgba(34, 197, 94, 0.12);
}

html[data-theme="dark"] .quick-contact-val {
    color: #f1f5f9;
}

html[data-theme="dark"] .quick-contact-label {
    color: #94a3b8;
}

html[data-theme="dark"] .quick-contact-social-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quick-contact-social-title {
    color: #94a3b8;
}

html[data-theme="dark"] .quick-contact-social-icons a {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

html[data-theme="dark"] .quick-contact-social-icons a:hover {
    background: #22c55e;
    color: #0b1a11;
}

html[data-theme="dark"] .quick-contact-full-btn {
    background: #090e15;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

html[data-theme="dark"] .quick-contact-full-btn:hover {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80 !important;
}

html[data-theme="dark"] .mobile-drawer-social {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

html[data-theme="dark"] .mobile-drawer-social-label {
    color: #f1f5f9;
}

html[data-theme="dark"] .mobile-drawer-social-icons a {
    background: #090e15;
    border-color: rgba(255, 255, 255, 0.1);
    color: #4ade80;
}

html[data-theme="dark"] .mobile-drawer-social-icons a:hover {
    background: #22c55e;
    color: #090e15;
}

.site-header.scrolled {
    position: fixed !important;
    top: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.site-header.scrolled .depth-brand-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

.site-header.scrolled .depth-brand-subtitle {
    color: #15803d !important;
    text-shadow: none !important;
}

.site-header.scrolled .depth-brand-logo-img {
    filter: none !important;
}

.site-header.scrolled .depth-main-nav a,
.site-header.scrolled .nav-dropdown-trigger {
    color: #334155 !important;
    text-shadow: none !important;
}

.site-header.scrolled .depth-main-nav a:hover,
.site-header.scrolled .depth-main-nav a.active,
.site-header.scrolled .depth-nav-dropdown:hover .nav-dropdown-trigger,
.site-header.scrolled .depth-nav-dropdown.open .nav-dropdown-trigger,
.site-header.scrolled .nav-dropdown-trigger.active {
    color: #15803d !important;
}

.site-header.scrolled .depth-main-nav a.active::after,
.site-header.scrolled .nav-dropdown-trigger.active::after,
.site-header.scrolled .depth-nav-dropdown:hover .nav-dropdown-trigger::after,
.site-header.scrolled .depth-nav-dropdown.open .nav-dropdown-trigger::after {
    background: #15803d !important;
}

.site-header.scrolled .depth-lang-btn,
.site-header.scrolled .depth-search-btn {
    color: #334155 !important;
    text-shadow: none !important;
}

.site-header.scrolled .depth-search-btn:hover {
    color: #15803d !important;
    background: #f1f5f9 !important;
}

.site-header.scrolled .menu-toggle {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.site-header.scrolled .menu-toggle span {
    background: #0f172a !important;
}

body:not(.page-home) .site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

body:not(.page-home) .site-header .depth-brand-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

body:not(.page-home) .site-header .depth-brand-subtitle {
    color: #15803d !important;
    text-shadow: none !important;
}

body:not(.page-home) .site-header .depth-brand-logo-img {
    filter: none !important;
}

body:not(.page-home) .site-header .depth-main-nav a,
body:not(.page-home) .site-header .nav-dropdown-trigger {
    color: #334155 !important;
    text-shadow: none !important;
}

body:not(.page-home) .site-header .depth-main-nav a:hover,
body:not(.page-home) .site-header .depth-main-nav a.active,
body:not(.page-home) .site-header .depth-nav-dropdown:hover .nav-dropdown-trigger,
body:not(.page-home) .site-header .depth-nav-dropdown.open .nav-dropdown-trigger,
body:not(.page-home) .site-header .nav-dropdown-trigger.active {
    color: #15803d !important;
}

body:not(.page-home) .site-header .depth-main-nav a.active::after,
body:not(.page-home) .site-header .nav-dropdown-trigger.active::after,
body:not(.page-home) .site-header .depth-nav-dropdown:hover .nav-dropdown-trigger::after,
body:not(.page-home) .site-header .depth-nav-dropdown.open .nav-dropdown-trigger::after {
    background: #15803d !important;
}

body:not(.page-home) .site-header .depth-lang-btn,
body:not(.page-home) .site-header .depth-search-btn {
    color: #334155 !important;
    text-shadow: none !important;
}

body:not(.page-home) .site-header .menu-toggle span {
    background: #0f172a !important;
}

body:not(.page-home) .site-header .menu-toggle {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body:not(.page-home) .depth-topbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body:not(.page-home) .depth-topbar-social a,
body:not(.page-home) .depth-topbar-info a {
    color: #475569 !important;
    text-shadow: none !important;
}

body:not(.page-home) .depth-topbar-social a:hover,
body:not(.page-home) .depth-topbar-info a:hover {
    color: #15803d !important;
}

.depth-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

/* Brand Logo */
.depth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0;
}

.depth-brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.depth-brand-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.15;
}

.depth-brand-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.depth-brand-subtitle {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--fc-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Nav Menu Items */
.depth-main-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.depth-main-nav a {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.depth-main-nav a:hover,
.depth-main-nav a.active {
    color: #4ade80;
}

.depth-main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 15%;
    left: 15%;
    height: 2.5px;
    background: linear-gradient(90deg, #179D38, #22c55e);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    border-radius: 2px;
}

/* ── Dropdown Navigation Element (المزيد) ── */
.depth-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
}

.nav-dropdown-arrow {
    font-size: 0.68rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    opacity: 0.85;
}

.depth-nav-dropdown:hover .nav-dropdown-arrow,
.depth-nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--fc-gold);
}

.depth-nav-dropdown:hover .nav-dropdown-trigger,
.depth-nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown-trigger.active {
    color: var(--fc-gold);
}

.nav-dropdown-trigger.active::after,
.depth-nav-dropdown:hover .nav-dropdown-trigger::after,
.depth-nav-dropdown.open .nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 15%;
    left: 15%;
    height: 2px;
    background: var(--fc-gold);
    border-radius: 2px;
}

/* Dropdown Menu Box */
.depth-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 315px;
    background: #ffffff;
    border: 1px solid rgba(23, 157, 56, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(23, 157, 56, 0.08);
    padding: 8px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    pointer-events: none;
}

/* Invisible bridge so mouse hover doesn't break between button and menu */
.depth-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
}

.depth-nav-dropdown:hover .depth-dropdown-menu,
.depth-nav-dropdown.open .depth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Items */
.depth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 11px;
    text-decoration: none !important;
    color: #0f172a !important;
    text-shadow: none !important;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
    background: transparent;
}

.depth-dropdown-item:last-child {
    margin-bottom: 0;
}

.depth-dropdown-item::after {
    display: none !important;
}

.dropdown-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 157, 56, 0.08);
    color: #179D38;
    font-size: 0.95rem;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.dropdown-item-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.dropdown-item-text small {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Hover & Active States */
.depth-dropdown-item:hover {
    background: rgba(23, 157, 56, 0.08) !important;
}

.depth-dropdown-item:hover .dropdown-item-icon {
    background: linear-gradient(135deg, #179D38 0%, #0d5423 100%);
    color: #ffffff !important;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(23, 157, 56, 0.3);
}

.depth-dropdown-item:hover .dropdown-item-text strong {
    color: #179D38 !important;
}

.depth-dropdown-item:hover .dropdown-item-chevron {
    transform: translateX(-4px);
    color: #179D38;
    opacity: 1;
}

.depth-dropdown-item.active {
    background: rgba(23, 157, 56, 0.1) !important;
}

.depth-dropdown-item.active .dropdown-item-icon {
    background: #179D38;
    color: #ffffff !important;
}

.depth-dropdown-item.active .dropdown-item-text strong {
    color: #179D38 !important;
    font-weight: 800;
}

/* Header Left Controls (Language, Search, Bright Yellow/Gold Contact Button) */
.depth-header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language Badge */
.depth-lang-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.depth-lang-btn:hover {
    color: var(--fc-gold);
}

/* Search Trigger Button */
.depth-search-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.15rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.depth-search-btn:hover {
    color: var(--fc-gold);
    background: rgba(255, 255, 255, 0.12);
}

/* Striking First Class Brand Green CTA Button (Matches Company Identity) */
.depth-btn-yellow {
    background: linear-gradient(135deg, #179D38 0%, #135926 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.65rem 1.45rem;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 16px rgba(23, 157, 56, 0.35);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}

.depth-btn-yellow:hover {
    background: linear-gradient(135deg, #135926 0%, #0e4b20 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 157, 56, 0.5);
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   Hero Section: Luminous, Open, Real Project Imagery
   ------------------------------------------------------------- */
.depth-hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 175px 0 95px;
    background-color: #0b1a11;
    overflow: hidden;
    isolation: isolate;
}

/* Real Projects Background Carousel (Smooth Ken Burns Slow Zoom) */
.depth-hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.depth-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
    will-change: opacity, transform;
    pointer-events: none;
}

.depth-hero-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Clean, Luminous, Restful Scrim Overlay with Targeted Contrast */
.depth-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.12) 0%, rgba(6, 28, 14, 0.6) 100%),
        linear-gradient(180deg, rgba(6, 28, 14, 0.48) 0%, rgba(0, 0, 0, 0.2) 28%, rgba(6, 28, 14, 0.58) 72%, rgba(6, 28, 14, 0.9) 100%);
    pointer-events: none;
}

/* Hero Content - Centered, Heroic & Open */
.depth-hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Atmospheric Radial Contrast Glow Behind Text */
.depth-hero-container::before {
    display: none !important;
}

/* 1. Luxury Architectural Eyebrow Badge */
.depth-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.depth-hero-eyebrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(134, 239, 172, 0.6);
    transform: translateY(-2px);
}

.depth-hero-eyebrow i {
    color: #86efac;
    font-size: 0.98rem;
    filter: drop-shadow(0 0 8px rgba(134, 239, 172, 0.7));
}

/* Main Headline - Bold, Grand White Cairo Typography with Razor-Sharp Shadows */
.depth-hero-title {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif !important;
    font-size: clamp(2.3rem, 4.8vw, 4.3rem);
    font-weight: 900;
    line-height: 1.25;
    color: #ffffff !important;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 4px 14px rgba(0, 0, 0, 0.9),
        0 8px 30px rgba(0, 0, 0, 0.85);
}

.depth-hero-line-1 {
    display: block;
    margin-bottom: 0.35rem;
}

.depth-hero-line-2 {
    display: inline-block;
    position: relative;
}

/* Luminous Emerald Accent Gradient (Replaces clumsy highlighter bar) */
.depth-emerald-accent-text,
.depth-gold-accent-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 45%, #22c55e 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 4px 14px rgba(23, 157, 56, 0.5));
}

.depth-emerald-accent-text::before,
.depth-gold-accent-text::before {
    display: none !important;
}

/* Subtitle Description - Open, Floating Architectural Typography (No Dark Box) */
.depth-hero-description {
    font-size: clamp(1.04rem, 1.55vw, 1.24rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.95);
    max-width: 820px;
    margin: 0 auto 1.8rem;
    font-weight: 600;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 3px 12px rgba(0, 0, 0, 0.9);
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* 4. Glassmorphic Trust & Stat Chips Strip */
.depth-hero-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 2.2rem;
    max-width: 980px;
}

.depth-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 99px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.depth-hero-trust-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(134, 239, 172, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 157, 56, 0.3);
}

.depth-hero-trust-item i {
    color: #86efac;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 6px rgba(134, 239, 172, 0.7));
}

/* Hero Action Buttons Group */
.depth-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.depth-btn-whatsapp-hero {
    background: linear-gradient(135deg, #179D38 0%, #0d5924 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.98rem;
    padding: 0.85rem 2.2rem;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 24px rgba(23, 157, 56, 0.45);
    border: 1px solid rgba(134, 239, 172, 0.3);
}

.depth-btn-whatsapp-hero:hover {
    background: linear-gradient(135deg, #1cb843 0%, #137731 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(23, 157, 56, 0.65);
    color: #ffffff !important;
}

.depth-btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-weight: 750;
    font-size: 0.98rem;
    padding: 0.85rem 2.2rem;
    border-radius: 99px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.depth-btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Slider Pagination Dots (Gold Accent) */
.depth-hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
    z-index: 3;
    position: relative;
}

.depth-hero-dot {
    width: 34px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.depth-hero-dot:hover {
    background: rgba(34, 197, 94, 0.7);
}

.depth-hero-dot.active {
    width: 52px;
    background: linear-gradient(90deg, #179D38, #22c55e);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

/* -------------------------------------------------------------
   Transition Pillars Section (Brand Colors: Emerald & Gold)
   ------------------------------------------------------------- */
.depth-pillars-section {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    padding-bottom: 50px;
}

.depth-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.depth-pillar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(23, 157, 56, 0.16);
    border-top: 4px solid #179D38;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.depth-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: #179D38;
    transition: height 0.3s ease, background 0.3s ease;
}

.depth-pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(23, 157, 56, 0.12);
    border-color: rgba(23, 157, 56, 0.32);
}

.depth-pillar-card:hover::before {
    height: 5px;
    background: linear-gradient(90deg, #135926, #179D38, #135926);
}

/* Circular Emblem with Signature First Class Brand Green (Direct Logo Echo) */
.depth-pillar-icon-badge {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    margin: 0 auto 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #179D38 0%, #135926 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 157, 56, 0.16), 0 10px 22px rgba(23, 157, 56, 0.28);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.depth-pillar-card:hover .depth-pillar-icon-badge {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(23, 157, 56, 0.25), 0 14px 28px rgba(23, 157, 56, 0.38);
}

.depth-pillar-icon-badge i,
.depth-pillar-icon-badge svg {
    font-size: 2.1rem;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.depth-pillar-card:hover .depth-pillar-icon-badge i,
.depth-pillar-card:hover .depth-pillar-icon-badge svg {
    transform: scale(1.06);
}

.depth-pillar-title {
    font-size: 1.45rem;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 0.8rem;
}

.depth-pillar-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* -------------------------------------------------------------
   Interactive Quick Search Modal
   ------------------------------------------------------------- */
.depth-search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 1.5rem 2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.depth-search-modal.active {
    display: flex;
    opacity: 1;
}

.depth-search-box {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(23, 157, 56, 0.2);
    animation: searchModalSlide 0.3s ease;
}

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

.depth-search-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 0.75rem;
}

.depth-search-header i {
    color: var(--fc-primary);
    font-size: 1.25rem;
}

.depth-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-family: inherit;
    color: #111827;
    background: transparent;
}

.depth-search-close {
    background: transparent;
    border: none;
    font-size: 1.35rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.depth-search-close:hover {
    color: #111827;
}

.depth-search-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 1rem 1.4rem;
}

.depth-search-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.depth-search-tag {
    background: #f4f8f4;
    color: #135926;
    padding: 0.4rem 0.85rem;
    border-radius: 99px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(23, 157, 56, 0.15);
    transition: all 0.2s ease;
}

.depth-search-tag:hover {
    background: var(--fc-gold);
    color: var(--fc-primary-deep);
    border-color: var(--fc-gold);
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (min-width: 992px) {
    .depth-btn-yellow {
        display: inline-flex !important;
    }
    .depth-lang-btn {
        display: inline-flex !important;
    }
    .site-header .menu-toggle {
        display: none !important;
    }
    .main-nav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .depth-topbar {
        display: none !important;
    }

    .depth-main-nav,
    .depth-header-controls .depth-lang-btn,
    .depth-header-controls .depth-btn-yellow {
        display: none !important;
    }

    .site-header {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%) !important;
        overflow: visible !important;
    }

    .depth-nav-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.85rem !important;
        min-height: 60px !important;
        box-sizing: border-box !important;
    }

    .depth-brand {
        gap: 0.45rem !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .depth-brand-logo-img {
        height: 40px !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .depth-brand-title {
        font-size: 0.98rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .depth-brand-subtitle {
        font-size: 0.52rem !important;
        letter-spacing: 0.04em !important;
    }

    .depth-header-controls {
        gap: 0.35rem !important;
        flex-shrink: 0 !important;
    }

    .depth-search-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
    }

    .site-header .menu-toggle {
        display: flex !important;
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    .depth-hero-container::before {
        right: 0 !important;
        left: 0 !important;
    }

    /* Mobile Drawer */
    .main-nav {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 999999 !important;
        padding: 1rem 1rem 1.5rem !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-16px) !important;
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 20px 60px rgba(19, 89, 38, 0.2) !important;
    }

    .main-nav.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .mobile-nav-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.1rem !important;
        width: 100% !important;
        margin-bottom: 0.85rem !important;
        flex-grow: 1 !important;
    }

    .mobile-nav-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0.62rem 0.75rem !important;
        font-size: 0.96rem !important;
        font-weight: 700 !important;
        color: #131A15 !important;
        border-bottom: 1px solid rgba(23, 157, 56, 0.08) !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        text-shadow: none !important;
        border-radius: 8px !important;
    }

    .mobile-nav-links a i.fa-chevron-left {
        color: #179D38 !important;
        font-size: 0.82rem !important;
        transition: transform 0.2s ease !important;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        color: #135926 !important;
        padding-right: 0.95rem !important;
        background: #F7FAF5 !important;
        border-right: 3px solid #179D38 !important;
        font-weight: 800 !important;
    }

    .mobile-nav-links a:hover i.fa-chevron-left,
    .mobile-nav-links a.active i.fa-chevron-left {
        color: #135926 !important;
        transform: translateX(-4px) !important;
    }

    .mobile-nav-quick-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding-top: 0.75rem !important;
        border-top: 1px solid rgba(23, 157, 56, 0.14) !important;
        flex-shrink: 0 !important;
    }

    .mobile-nav-quick-actions .depth-btn-yellow {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .mobile-nav-quick-actions .btn {
        padding: 0.65rem 1rem !important;
        font-size: 0.92rem !important;
    }

    .depth-nav-wrap {
        min-height: 66px;
    }

    .depth-hero {
        min-height: 82vh;
        padding: 120px 0 70px;
        background-position: center center;
    }

    .depth-hero-eyebrow {
        font-size: 0.76rem !important;
        padding: 5px 14px !important;
        margin-bottom: 1rem !important;
        gap: 6px !important;
        max-width: 92% !important;
        line-height: 1.4 !important;
        border-radius: 99px !important;
    }

    .depth-hero-title {
        font-size: clamp(1.8rem, 6.8vw, 2.35rem);
        line-height: 1.3;
        margin-bottom: 1rem;
        text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
    }

    .depth-hero-description {
        font-size: 0.96rem !important;
        line-height: 1.75 !important;
        margin-bottom: 1.4rem !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
        color: rgba(255, 255, 255, 0.96);
    }

    .depth-hero-trust-strip {
        gap: 8px !important;
        margin-bottom: 1.6rem !important;
    }

    .depth-hero-trust-item {
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
    }

    .depth-hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1.5rem;
    }

    .depth-hero-actions > * {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.6rem !important;
    }

    .depth-pillars-section {
        margin-top: -30px;
    }

    .depth-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .depth-pillar-card {
        padding: 2rem 1.4rem;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 420px) {
    .depth-brand-subtitle {
        display: none !important;
    }
    .depth-brand-title {
        font-size: 0.92rem !important;
    }
    .depth-brand-logo-img {
        height: 36px !important;
    }
    .depth-nav-wrap {
        padding: 0 0.5rem !important;
    }
}

/* ==========================================================================
   Certificates & Accreditations (Matching firstclassksa.com High-Res Layout)
   ========================================================================== */
#certificates {
    scroll-margin-top: 90px;
    padding-top: 4.5rem;
}

.home-certificates .home-heading h2 {
    color: #0f172a !important;
    font-weight: 800;
}

/* Filter Tabs - Single Clean Row */
.cert-filter-wrap {
    display: flex !important;
    gap: 0.6rem !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 1.5rem auto 2.6rem !important;
    padding: 4px 6px;
    max-width: 100%;
}

.cert-filter-pill {
    padding: 8px 22px !important;
    border-radius: 99px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border: 1.5px solid rgba(16, 43, 27, 0.1) !important;
    background: #ffffff !important;
    color: #64766b !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    white-space: nowrap !important;
}

.cert-filter-pill:hover {
    border-color: #159b3e !important;
    color: #159b3e !important;
    transform: translateY(-2px);
}

.cert-filter-pill.active {
    background: linear-gradient(135deg, #159b3e 0%, #0e7a30 100%) !important;
    color: #ffffff !important;
    border-color: #159b3e !important;
    box-shadow: 0 4px 14px rgba(21, 155, 62, 0.35) !important;
    transform: translateY(-2px);
}

/* Certificate Card Container (With Royal Emerald Top Accent) */
.home-certificate-card {
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1px solid rgba(23, 157, 56, 0.14) !important;
    border-top: 5px solid #179D38 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    padding: 1.5rem !important;
    min-height: 330px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.home-certificate-card::after {
    display: none !important;
}

.home-certificate-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(23, 157, 56, 0.35) !important;
    border-top-color: #22c55e !important;
    box-shadow: 0 20px 45px rgba(23, 157, 56, 0.12) !important;
}

/* Certificate Logo Box - Spacious & High-Res */
.certificate-logo-v2 {
    height: 145px !important;
    min-height: 145px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8faf8 !important;
    border: 1px solid rgba(23, 157, 56, 0.12) !important;
    border-radius: 16px !important;
    padding: 0.85rem 1.2rem !important;
    margin-bottom: 1.1rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.3s ease, background 0.3s ease !important;
}

.home-certificate-card:hover .certificate-logo-v2 {
    border-color: rgba(23, 157, 56, 0.25) !important;
    background: #ffffff !important;
}

.certificate-logo-v2 img {
    max-width: 90% !important;
    max-height: 95px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.03));
    transition: transform 0.3s ease !important;
}

.home-certificate-card:hover .certificate-logo-v2 img {
    transform: scale(1.05) !important;
}

/* Multi-Logos Container (Balady + Amana Jeddah) */
.cert-multi-logos {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    height: 100% !important;
}

.cert-multi-logos img:first-child {
    max-height: 52px !important;
    max-width: 82% !important;
}

.cert-multi-logos img:last-child {
    max-height: 48px !important;
    max-width: 65% !important;
}

/* Card Content Typography - Warm Gold & Authoritative */
.cert-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cert-card-title {
    color: #0f172a !important; /* Authoritative Deep Slate */
    font-size: 1.15rem !important;
    font-weight: 850 !important;
    margin: 0.25rem 0 0.35rem !important;
    line-height: 1.35 !important;
    transition: color 0.25s ease !important;
}

html[data-theme="dark"] .cert-card-title {
    color: #f1f5f9 !important;
}

.home-certificate-card:hover .cert-card-title {
    color: #179D38 !important;
}

.cert-card-issuer {
    color: #798a80 !important;
    font-size: 0.85rem !important;
    margin: 0 0 1rem !important;
    line-height: 1.4 !important;
}

/* Meta Box with License Number */
.cert-meta-box {
    background: #f8faf8 !important;
    border: 1px solid rgba(23, 157, 56, 0.14) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
}

.cert-meta-label {
    font-size: 0.8rem !important;
    color: #556b5f !important;
    font-weight: 600 !important;
}

.cert-meta-val {
    font-size: 0.95rem !important;
    font-weight: 850 !important;
    color: #179D38 !important;
    letter-spacing: 0.5px !important;
    font-family: inherit !important;
}

/* Mobile Responsiveness for Certificates */
@media (max-width: 768px) {
    #certificates {
        padding-top: 3.5rem;
        scroll-margin-top: 75px;
    }

    .home-certificates .home-heading h2 {
        font-size: 1.9rem !important;
        margin-top: 0.5rem;
    }

    .home-certificates .home-heading p {
        font-size: 0.9rem !important;
    }

    .cert-filter-wrap {
        gap: 0.35rem !important;
        margin: 1.2rem 0 1.8rem !important;
        justify-content: center !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px !important;
    }

    .cert-filter-pill {
        padding: 6px 15px !important;
        font-size: 0.82rem !important;
        flex-shrink: 0;
    }

    .home-certificate-card {
        padding: 1.3rem 1.1rem !important;
        min-height: auto !important;
        border-radius: 18px !important;
    }

    .certificate-logo-v2 {
        height: 145px !important;
        min-height: 145px !important;
        padding: 0.75rem 1rem !important;
    }

    .certificate-logo-v2 img {
        max-height: 98px !important;
        max-width: 92% !important;
    }

    .cert-multi-logos {
        gap: 0.45rem !important;
    }

    .cert-multi-logos img:first-child {
        max-height: 56px !important;
        max-width: 85% !important;
    }

    .cert-multi-logos img:last-child {
        max-height: 52px !important;
        max-width: 70% !important;
    }

    .cert-card-title {
        font-size: 1.05rem !important;
    }
}
