/* ============================================================
   BBM Technology - Main Theme Stylesheet
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --bbm-primary-dark: #0B1930;
    --bbm-primary: #122B52;
    --bbm-primary-light: #1E3A6E;
    --bbm-accent: #2563EB;
    --bbm-accent-hover: #1D4ED8;
    --bbm-accent-light: #3B82F6;
    --bbm-white: #FFFFFF;
    --bbm-off-white: #F8F9FB;
    --bbm-light-gray: #F1F5F9;
    --bbm-gray: #94A3B8;
    --bbm-dark-gray: #64748B;
    --bbm-text: #1E293B;
    --bbm-text-light: #475569;
    --bbm-border: #E2E8F0;
    --bbm-success: #10B981;
    --bbm-warning: #F59E0B;
    --bbm-gradient-primary: linear-gradient(135deg, #0B1930 0%, #1E3A6E 100%);
    --bbm-gradient-accent: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --bbm-gradient-overlay: linear-gradient(180deg, rgba(11,25,48,0.85) 0%, rgba(11,25,48,0.6) 100%);

    /* Typography */
    --bbm-font-primary: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    --bbm-font-heading: 'Inter', 'Noto Sans Thai', sans-serif;

    /* Spacing */
    --bbm-section-padding: 80px 0;
    --bbm-container-width: 1200px;
    --bbm-container-padding: 0 20px;

    /* Borders & Shadows */
    --bbm-radius-sm: 6px;
    --bbm-radius-md: 10px;
    --bbm-radius-lg: 16px;
    --bbm-radius-xl: 24px;
    --bbm-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --bbm-shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --bbm-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --bbm-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --bbm-shadow-card: 0 2px 20px rgba(0,0,0,0.06);

    /* Transitions */
    --bbm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bbm-transition-fast: all 0.15s ease;
    --bbm-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--bbm-font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--bbm-text);
    background-color: var(--bbm-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bbm-accent);
    text-decoration: none;
    transition: var(--bbm-transition);
}

a:hover {
    color: var(--bbm-accent-hover);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bbm-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--bbm-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--bbm-text-light);
}

/* --- Container --- */
.bbm-container {
    width: 100%;
    max-width: var(--bbm-container-width);
    margin: 0 auto;
    padding: var(--bbm-container-padding);
}

.bbm-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--bbm-container-padding);
}

/* --- Section --- */
.bbm-section {
    padding: var(--bbm-section-padding);
    position: relative;
}

.bbm-section-gray {
    background-color: var(--bbm-light-gray);
}

.bbm-section-dark {
    background: var(--bbm-gradient-primary);
    color: var(--bbm-white);
}

.bbm-section-dark h2,
.bbm-section-dark h3,
.bbm-section-dark h4,
.bbm-section-dark p {
    color: var(--bbm-white);
}

.bbm-section-dark p {
    color: rgba(255,255,255,0.8);
}

/* --- Section Header --- */
.bbm-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.bbm-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.bbm-section-header .bbm-subtitle {
    color: var(--bbm-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.bbm-section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--bbm-text-light);
}

.bbm-section-header .bbm-underline {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--bbm-gradient-accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.bbm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--bbm-font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--bbm-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--bbm-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.bbm-btn-primary {
    background: var(--bbm-gradient-accent);
    color: var(--bbm-white);
    border-color: var(--bbm-accent);
}

.bbm-btn-primary:hover {
    background: var(--bbm-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    color: var(--bbm-white);
}

.bbm-btn-outline {
    background: transparent;
    color: var(--bbm-white);
    border-color: var(--bbm-white);
}

.bbm-btn-outline:hover {
    background: var(--bbm-white);
    color: var(--bbm-primary-dark);
    transform: translateY(-2px);
}

.bbm-btn-outline-dark {
    background: transparent;
    color: var(--bbm-accent);
    border-color: var(--bbm-accent);
}

.bbm-btn-outline-dark:hover {
    background: var(--bbm-accent);
    color: var(--bbm-white);
    transform: translateY(-2px);
}

.bbm-btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.bbm-btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.bbm-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--bbm-transition);
    padding: 0;
}

.bbm-header.transparent {
    background: transparent;
}

.bbm-header.scrolled {
    background: rgba(11, 25, 48, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.bbm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    max-width: var(--bbm-container-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.bbm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.bbm-logo img,
.bbm-logo .custom-logo {
    height: 45px;
    width: auto;
}

.bbm-logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.bbm-logo-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--bbm-white);
    letter-spacing: 3px;
    line-height: 1;
}

.bbm-logo-tagline {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

.bbm-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.bbm-nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbm-nav-menu li {
    position: relative;
}

.bbm-nav-menu li a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--bbm-transition);
    border-radius: var(--bbm-radius-sm);
    text-decoration: none;
}

.bbm-nav-menu li a:hover,
.bbm-nav-menu li.current-menu-item a,
.bbm-nav-menu li.current_page_item a {
    color: var(--bbm-white);
    background: rgba(255,255,255,0.1);
}

.bbm-nav-cta {
    margin-left: 15px;
}

.bbm-nav-cta .bbm-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    background: var(--bbm-accent);
    color: var(--bbm-white);
    border: none;
    border-radius: var(--bbm-radius-md);
}

.bbm-nav-cta .bbm-btn:hover {
    background: var(--bbm-accent-hover);
    transform: translateY(-1px);
}

/* Hamburger */
.bbm-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    background: none;
    border: none;
}

.bbm-hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--bbm-white);
    transition: var(--bbm-transition);
    border-radius: 2px;
}

.bbm-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.bbm-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.bbm-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.bbm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bbm-primary-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.bbm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11,25,48,0.92) 0%, rgba(11,25,48,0.7) 50%, rgba(30,58,110,0.6) 100%);
    z-index: 1;
}

.bbm-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bbm-primary-dark) 0%, transparent 100%);
    z-index: 1;
}

.bbm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 120px 0 80px;
}

.bbm-hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--bbm-white);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.bbm-hero-content p {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 650px;
}

.bbm-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero decorative elements */
.bbm-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bbm-hero-particles .particle {
    position: absolute;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: bbm-float 15s infinite ease-in-out;
}

.bbm-hero-particles .particle:nth-child(1) {
    width: 300px; height: 300px;
    top: -100px; right: -50px;
    animation-delay: 0s;
}

.bbm-hero-particles .particle:nth-child(2) {
    width: 200px; height: 200px;
    bottom: 100px; right: 200px;
    animation-delay: -5s;
    background: rgba(37, 99, 235, 0.15);
}

.bbm-hero-particles .particle:nth-child(3) {
    width: 150px; height: 150px;
    top: 40%; left: 60%;
    animation-delay: -10s;
    background: rgba(255,255,255,0.05);
}

@keyframes bbm-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================================
   FEATURES ROW (below hero)
   ============================================================ */
.bbm-features-row {
    position: relative;
    z-index: 3;
    margin-top: -60px;
    padding: 0 0 60px;
}

.bbm-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bbm-feature-card {
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--bbm-shadow-lg);
    transition: var(--bbm-transition);
    position: relative;
    overflow: hidden;
}

.bbm-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bbm-gradient-accent);
    transform: scaleX(0);
    transition: var(--bbm-transition);
}

.bbm-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bbm-shadow-xl);
}

.bbm-feature-card:hover::before {
    transform: scaleX(1);
}

.bbm-feature-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bbm-radius-md);
    background: var(--bbm-light-gray);
    color: var(--bbm-accent);
    font-size: 1.6rem;
    transition: var(--bbm-transition);
}

.bbm-feature-card:hover .bbm-feature-icon {
    background: var(--bbm-gradient-accent);
    color: var(--bbm-white);
    transform: scale(1.1);
}

.bbm-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--bbm-text);
}

.bbm-feature-card p {
    font-size: 0.85rem;
    color: var(--bbm-dark-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.bbm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bbm-service-card {
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-card);
    transition: var(--bbm-transition);
    border: 1px solid var(--bbm-border);
    position: relative;
}

.bbm-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bbm-shadow-lg);
    border-color: var(--bbm-accent);
}

.bbm-service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.bbm-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--bbm-transition-slow);
}

.bbm-service-card:hover .bbm-service-card-image img {
    transform: scale(1.08);
}

.bbm-service-card-icon {
    position: absolute;
    top: 175px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bbm-gradient-accent);
    border-radius: var(--bbm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bbm-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.bbm-service-card-content {
    padding: 30px 24px 24px;
}

.bbm-service-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--bbm-text);
}

.bbm-service-card-content p {
    font-size: 0.9rem;
    color: var(--bbm-dark-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.bbm-service-card-content .bbm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bbm-accent);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--bbm-transition);
}

.bbm-service-card-content .bbm-read-more:hover {
    gap: 10px;
    color: var(--bbm-accent-hover);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.bbm-projects-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.bbm-filter-btn {
    padding: 8px 22px;
    border: 2px solid var(--bbm-border);
    border-radius: 50px;
    background: var(--bbm-white);
    color: var(--bbm-text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--bbm-transition);
    font-family: var(--bbm-font-primary);
}

.bbm-filter-btn:hover,
.bbm-filter-btn.active {
    background: var(--bbm-accent);
    color: var(--bbm-white);
    border-color: var(--bbm-accent);
}

.bbm-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.bbm-project-card {
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-card);
    transition: var(--bbm-transition);
    border: 1px solid var(--bbm-border);
}

.bbm-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bbm-shadow-lg);
}

.bbm-project-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.bbm-project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--bbm-transition-slow);
}

.bbm-project-card:hover .bbm-project-card-image img {
    transform: scale(1.08);
}

.bbm-project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11,25,48,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--bbm-transition);
}

.bbm-project-card:hover .bbm-project-card-overlay {
    opacity: 1;
}

.bbm-project-card-overlay a {
    color: var(--bbm-white);
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bbm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--bbm-transition);
}

.bbm-project-card-overlay a:hover {
    transform: scale(1.1);
    background: var(--bbm-accent-hover);
}

.bbm-project-card-content {
    padding: 25px 30px;
}

.bbm-project-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--bbm-text);
}

.bbm-project-card-content .bbm-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--bbm-dark-gray);
}

.bbm-project-card-content .bbm-project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bbm-project-card-content .bbm-project-meta i {
    color: var(--bbm-accent);
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.bbm-partners {
    padding: 50px 0;
    background: var(--bbm-white);
    border-top: 1px solid var(--bbm-border);
    border-bottom: 1px solid var(--bbm-border);
}

.bbm-partners-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bbm-partners-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bbm-border);
    background: var(--bbm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--bbm-transition);
    flex-shrink: 0;
    color: var(--bbm-text-light);
    font-size: 0.85rem;
}

.bbm-partners-nav:hover {
    border-color: var(--bbm-accent);
    color: var(--bbm-accent);
    background: var(--bbm-light-gray);
}

.bbm-partners-track {
    display: flex;
    align-items: center;
    gap: 50px;
    overflow: hidden;
    flex: 1;
    justify-content: flex-start;
    padding: 0 10px;
}

.bbm-partner-logo {
    flex-shrink: 0;
    height: 40px;
    opacity: 1;
    transition: var(--bbm-transition);
    filter: grayscale(0%);
}

.bbm-partner-logo:hover {
    transform: scale(1.05);
}

.bbm-partner-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bbm-dark-gray);
    white-space: nowrap;
    transition: var(--bbm-transition);
    letter-spacing: 1px;
}

.bbm-partner-logo-text:hover {
    color: var(--bbm-accent);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.bbm-cta-section {
    background: var(--bbm-gradient-primary);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bbm-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
}

.bbm-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
}

.bbm-cta-content {
    position: relative;
    z-index: 2;
}

.bbm-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bbm-white);
    margin-bottom: 16px;
}

.bbm-cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.bbm-footer {
    background: var(--bbm-primary-dark);
    color: rgba(255,255,255,0.8);
    padding-top: 70px;
}

.bbm-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bbm-footer-col h4 {
    color: var(--bbm-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.bbm-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--bbm-accent);
    border-radius: 2px;
}

.bbm-footer-col p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.bbm-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bbm-footer-col ul li {
    margin-bottom: 10px;
}

.bbm-footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--bbm-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbm-footer-col ul li a:hover {
    color: var(--bbm-white);
    padding-left: 5px;
}

.bbm-footer-col ul li a i {
    color: var(--bbm-accent);
    font-size: 0.8rem;
    min-width: 16px;
    margin-right: 6px;
    text-align: center;
}

.bbm-footer-logo {
    margin-bottom: 15px;
}

.bbm-footer-logo .bbm-logo-name {
    font-size: 2rem;
}

.bbm-footer-logo img {
    max-width: 220px;
    height: auto;
}

.bbm-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.bbm-footer-contact-item i {
    color: var(--bbm-accent);
    margin-top: 4px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.bbm-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.bbm-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--bbm-transition);
    font-size: 0.9rem;
}

.bbm-footer-social a:hover {
    background: var(--bbm-accent);
    color: var(--bbm-white);
    transform: translateY(-3px);
}

.bbm-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   PAGE HEADER / BREADCRUMB
   ============================================================ */
.bbm-page-header {
    background: var(--bbm-gradient-primary);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.bbm-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
}

.bbm-page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bbm-white);
    margin-bottom: 10px;
}

.bbm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.bbm-breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.bbm-breadcrumb a:hover {
    color: var(--bbm-white);
}

.bbm-breadcrumb span {
    color: rgba(255,255,255,0.4);
}

.bbm-breadcrumb .current {
    color: var(--bbm-accent-light);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.bbm-about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bbm-about-image {
    position: relative;
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-lg);
}

.bbm-about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bbm-about-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bbm-accent);
    color: var(--bbm-white);
    padding: 15px 20px;
    border-radius: var(--bbm-radius-md);
    font-weight: 700;
    font-size: 0.9rem;
}

.bbm-about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.bbm-about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Stats */
.bbm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.bbm-stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    box-shadow: var(--bbm-shadow-card);
    border: 1px solid var(--bbm-border);
    transition: var(--bbm-transition);
}

.bbm-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bbm-shadow-lg);
    border-color: var(--bbm-accent);
}

.bbm-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bbm-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.bbm-stat-label {
    font-size: 0.85rem;
    color: var(--bbm-dark-gray);
    font-weight: 500;
}

/* Vision / Mission */
.bbm-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.bbm-vm-card {
    padding: 40px;
    border-radius: var(--bbm-radius-lg);
    background: var(--bbm-white);
    box-shadow: var(--bbm-shadow-card);
    border: 1px solid var(--bbm-border);
}

.bbm-vm-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--bbm-accent);
}

.bbm-vm-card h3 i {
    font-size: 1.2rem;
}

/* Core Values */
.bbm-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bbm-value-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    box-shadow: var(--bbm-shadow-card);
    transition: var(--bbm-transition);
}

.bbm-value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bbm-shadow-lg);
}

.bbm-value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: var(--bbm-radius-md);
    background: var(--bbm-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bbm-accent);
    font-size: 1.4rem;
    transition: var(--bbm-transition);
}

.bbm-value-card:hover .bbm-value-icon {
    background: var(--bbm-gradient-accent);
    color: var(--bbm-white);
}

/* Team */
.bbm-team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.bbm-team-card {
    width: calc((100% - 90px) / 4);
    text-align: center;
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-card);
    transition: var(--bbm-transition);
}

.bbm-team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bbm-shadow-lg);
}

.bbm-team-photo {
    height: 250px;
    overflow: hidden;
    background: var(--bbm-light-gray);
}

.bbm-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--bbm-transition-slow);
}

.bbm-team-card:hover .bbm-team-photo img {
    transform: scale(1.05);
}

.bbm-team-info {
    padding: 20px;
}

.bbm-team-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.bbm-team-info p {
    font-size: 0.85rem;
    color: var(--bbm-accent);
    margin-bottom: 0;
    font-weight: 500;
}

/* ============================================================
   SERVICES PAGE (Detail)
   ============================================================ */
.bbm-services-detail-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bbm-service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-card);
    border: 1px solid var(--bbm-border);
}

.bbm-service-detail-card:nth-child(even) {
    direction: rtl;
}

.bbm-service-detail-card:nth-child(even) > * {
    direction: ltr;
}

.bbm-service-detail-image {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.bbm-service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbm-service-detail-content {
    padding: 40px;
}

.bbm-service-detail-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--bbm-text);
}

.bbm-service-detail-content p {
    color: var(--bbm-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.bbm-service-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.bbm-service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--bbm-text-light);
}

.bbm-service-features-list li i {
    color: var(--bbm-success);
    font-size: 0.8rem;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.bbm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bbm-product-card {
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-card);
    border: 1px solid var(--bbm-border);
    transition: var(--bbm-transition);
}

.bbm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bbm-shadow-lg);
    border-color: var(--bbm-accent);
}

.bbm-product-card-image {
    height: 220px;
    overflow: hidden;
    background: var(--bbm-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bbm-product-card-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--bbm-transition-slow);
}

.bbm-product-card:hover .bbm-product-card-image img {
    transform: scale(1.05);
}

.bbm-product-card-content {
    padding: 20px;
    text-align: center;
}

.bbm-product-card-content h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--bbm-text);
}

.bbm-product-card-content p {
    font-size: 0.82rem;
    color: var(--bbm-dark-gray);
    margin-bottom: 0;
}

.bbm-product-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bbm-light-gray);
    color: var(--bbm-accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 10px;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.bbm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bbm-blog-card {
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-card);
    border: 1px solid var(--bbm-border);
    transition: var(--bbm-transition);
}

.bbm-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bbm-shadow-lg);
}

.bbm-blog-card-image {
    height: 220px;
    overflow: hidden;
}

.bbm-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--bbm-transition-slow);
}

.bbm-blog-card:hover .bbm-blog-card-image img {
    transform: scale(1.08);
}

.bbm-blog-card-content {
    padding: 24px;
}

.bbm-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--bbm-dark-gray);
}

.bbm-blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bbm-blog-card-meta i {
    color: var(--bbm-accent);
}

.bbm-blog-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.bbm-blog-card-content h3 a {
    color: var(--bbm-text);
    transition: var(--bbm-transition);
}

.bbm-blog-card-content h3 a:hover {
    color: var(--bbm-accent);
}

.bbm-blog-card-content p {
    font-size: 0.9rem;
    color: var(--bbm-dark-gray);
    margin-bottom: 16px;
}

.bbm-blog-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bbm-light-gray);
    color: var(--bbm-accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.bbm-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.bbm-contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bbm-contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    box-shadow: var(--bbm-shadow-card);
    border: 1px solid var(--bbm-border);
    transition: var(--bbm-transition);
}

.bbm-contact-info-card:hover {
    transform: translateX(5px);
    border-color: var(--bbm-accent);
}

.bbm-contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--bbm-radius-md);
    background: var(--bbm-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bbm-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bbm-contact-info-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.bbm-contact-info-card p {
    font-size: 0.9rem;
    color: var(--bbm-dark-gray);
    margin-bottom: 0;
}

/* Contact Form */
.bbm-contact-form {
    background: var(--bbm-white);
    padding: 40px;
    border-radius: var(--bbm-radius-lg);
    box-shadow: var(--bbm-shadow-lg);
}

.bbm-contact-form h3 {
    margin-bottom: 24px;
}

.bbm-form-group {
    margin-bottom: 20px;
}

.bbm-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bbm-text);
}

.bbm-form-group input,
.bbm-form-group textarea,
.bbm-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bbm-border);
    border-radius: var(--bbm-radius-md);
    font-family: var(--bbm-font-primary);
    font-size: 0.95rem;
    color: var(--bbm-text);
    transition: var(--bbm-transition);
    background: var(--bbm-off-white);
}

.bbm-form-group input:focus,
.bbm-form-group textarea:focus,
.bbm-form-group select:focus {
    outline: none;
    border-color: var(--bbm-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--bbm-white);
}

.bbm-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.bbm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Map */
.bbm-map-container {
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-md);
    margin-top: 40px;
    height: 350px;
}

.bbm-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.bbm-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.bbm-single-content h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.bbm-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--bbm-dark-gray);
}

.bbm-single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbm-single-meta i {
    color: var(--bbm-accent);
}

.bbm-single-featured-image {
    width: 100%;
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.bbm-single-featured-image img {
    width: 100%;
    height: auto;
}

.bbm-single-body {
    font-size: 1.05rem;
    line-height: 1.9;
}

.bbm-single-body h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.bbm-single-body h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.bbm-single-body p {
    margin-bottom: 20px;
}

.bbm-single-body img {
    border-radius: var(--bbm-radius-md);
    margin: 20px 0;
}

.bbm-single-body ul,
.bbm-single-body ol {
    margin: 16px 0;
    padding-left: 24px;
    list-style-position: outside;
}

.bbm-single-body ul {
    list-style-type: disc;
}

.bbm-single-body ol {
    list-style-type: decimal;
}

.bbm-single-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.bbm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.bbm-pagination a,
.bbm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--bbm-radius-sm);
    border: 2px solid var(--bbm-border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bbm-text-light);
    transition: var(--bbm-transition);
}

.bbm-pagination a:hover {
    border-color: var(--bbm-accent);
    color: var(--bbm-accent);
}

.bbm-pagination .current {
    background: var(--bbm-accent);
    color: var(--bbm-white);
    border-color: var(--bbm-accent);
}

/* ============================================================
   SEARCH & 404 PAGES
   ============================================================ */
.bbm-search-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto;
    gap: 10px;
}

.bbm-search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--bbm-border);
    border-radius: var(--bbm-radius-md);
    font-size: 1rem;
    font-family: var(--bbm-font-primary);
}

.bbm-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--bbm-accent);
}

.bbm-search-form button {
    padding: 14px 24px;
    background: var(--bbm-accent);
    color: var(--bbm-white);
    border: none;
    border-radius: var(--bbm-radius-md);
    cursor: pointer;
    font-family: var(--bbm-font-primary);
    font-weight: 600;
    transition: var(--bbm-transition);
}

.bbm-search-form button:hover {
    background: var(--bbm-accent-hover);
}

.bbm-404-content,
.bbm-search-content {
    text-align: center;
    padding: 80px 20px;
}

.bbm-404-content h1 {
    font-size: 8rem;
    color: var(--bbm-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.bbm-404-content h2 {
    margin-bottom: 16px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.bbm-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bbm-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.bbm-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bbm-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.bbm-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bbm-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.bbm-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bbm-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.bbm-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bbm-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.bbm-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.bbm-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.bbm-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.bbm-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.bbm-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Counter animation */
.bbm-counter {
    display: inline-block;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.pt-0 { padding-top: 0 !important; }

/* ============================================================
   ELEMENTOR OVERRIDES
   ============================================================ */
.elementor-page .bbm-header + .site-content {
    padding-top: 0;
}

.elementor-page .bbm-footer {
    margin-top: 0;
}

/* Ensure Elementor editor doesn't conflict */
body.elementor-editor-active .bbm-header {
    position: relative;
}

/* Placeholder images with gradient */
.bbm-placeholder-image {
    background: linear-gradient(135deg, var(--bbm-light-gray) 0%, #dde4ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bbm-gray);
    font-size: 2rem;
}

/* WordPress alignment classes */
.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ============================================================
   WORDPRESS GALLERY STYLES (ENHANCED)
   ============================================================ */

/* Gutenberg Block Gallery Override */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .wp-block-gallery {
        grid-template-columns: 1fr !important;
    }
}

.wp-block-gallery .wp-block-image {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: var(--bbm-transition);
    margin: 0 !important;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    width: 100% !important;
    height: auto;
}

.wp-block-gallery .wp-block-image img {
    border-radius: 0;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-gallery .wp-block-image:hover {
    box-shadow: none;
    transform: none;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.08);
}

.wp-block-gallery .wp-block-image figcaption {
    background: linear-gradient(to top, rgba(11, 25, 48, 0.8) 0%, transparent 100%);
    color: var(--bbm-white);
    padding: 30px 15px 15px;
    font-size: 0.9rem;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transition: var(--bbm-transition);
}

.wp-block-gallery .wp-block-image:hover figcaption {
    opacity: 1;
}

/* Classic Gallery Override */
.gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .gallery {
        grid-template-columns: 1fr !important;
    }
}

.gallery-item {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: var(--bbm-transition);
    position: relative;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    height: auto;
}

.gallery-icon img {
    border: none !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
}

.gallery-item:hover {
    box-shadow: none;
    transform: none;
}

.gallery-item:hover .gallery-icon img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(11, 25, 48, 0.8) 0%, transparent 100%);
    color: var(--bbm-white);
    padding: 30px 15px 15px;
    font-size: 0.9rem;
    margin: 0 !important;
    box-sizing: border-box;
    opacity: 0;
    transition: var(--bbm-transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ============================================================
   SERVICES HORIZONTAL CARDS (PAGE SERVICES)
   ============================================================ */
.bbm-services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bbm-service-horizontal-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    background: var(--bbm-white);
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--bbm-transition);
    min-height: 250px;
}

.bbm-service-horizontal-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.bbm-service-hc-content {
    flex: 0 0 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.bbm-service-hc-content h3 {
    font-size: 1.5rem;
    color: var(--bbm-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.bbm-service-hc-content p {
    color: var(--bbm-dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.bbm-service-hc-link {
    display: inline-flex;
    align-items: center;
    color: var(--bbm-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--bbm-transition);
    margin-top: auto;
    align-self: flex-start;
}

.bbm-service-hc-link i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: var(--bbm-transition);
}

.bbm-service-hc-link:hover {
    color: var(--bbm-primary);
}

.bbm-service-hc-link:hover i {
    transform: translateX(4px);
}

.bbm-service-hc-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.bbm-service-hc-image img,
.bbm-service-hc-image .bbm-placeholder-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bbm-service-hc-image .bbm-placeholder-bg {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.bbm-service-hc-image-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 150px;
    background: linear-gradient(to right, var(--bbm-white) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

@media (max-width: 768px) {
    .bbm-service-horizontal-card {
        flex-direction: column;
    }
    
    .bbm-service-hc-content,
    .bbm-service-hc-image {
        flex: 0 0 100%;
    }
    
    .bbm-service-hc-image {
        min-height: 250px;
    }
    
    .bbm-service-hc-image-fade {
        top: auto;
        bottom: -1px;
        left: 0;
        right: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to top, var(--bbm-white) 0%, rgba(255,255,255,0) 100%);
    }
    
    .bbm-service-hc-content {
        padding: 30px 20px;
    }
}

/* ============================================================
   CUSTOM LIGHTBOX
   ============================================================ */
.bbm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 25, 48, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bbm-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.bbm-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.bbm-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--bbm-radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: block;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.bbm-lightbox.active .bbm-lightbox-img {
    transform: scale(1);
}

.bbm-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.bbm-lightbox-close:hover {
    color: var(--bbm-accent);
}

.bbm-lightbox-prev, .bbm-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.bbm-lightbox-prev:hover, .bbm-lightbox-next:hover {
    background: var(--bbm-accent);
}

.bbm-lightbox-prev {
    left: 20px;
}

.bbm-lightbox-next {
    right: 20px;
}

/* ============================================================
   MAP CONTAINER
   ============================================================ */
.bbm-map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-card);
    margin-top: 40px;
    position: relative;
    background-color: var(--bbm-light-gray);
}

.bbm-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 992px) {
    .bbm-map-container {
        height: 500px;
    }
}

/* ============================================================
   PROJECTS BENTO LAYOUT
   ============================================================ */
.bbm-section-projects-bento {
    background-color: #f8fafc;
    padding-top: 40px;
}

/* Filter Bar */
.bbm-projects-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bbm-white);
    padding: 8px 15px;
    border-radius: var(--bbm-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.bbm-filter-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bbm-filter-link {
    color: var(--bbm-dark-gray);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--bbm-radius-sm);
    transition: var(--bbm-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbm-filter-link i {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--bbm-transition);
}

.bbm-filter-link:hover, .bbm-filter-link.active {
    background: var(--bbm-light-gray);
    color: var(--bbm-primary);
}

.bbm-filter-link.active {
    background: var(--bbm-primary);
    color: var(--bbm-white);
}

.bbm-filter-link.active i {
    color: var(--bbm-white);
}

.bbm-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbm-search-form {
    display: flex;
    background: #f1f5f9;
    border-radius: var(--bbm-radius-sm);
    overflow: hidden;
}

.bbm-search-form input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.85rem;
    width: 200px;
    outline: none;
}

.bbm-search-form button {
    background: transparent;
    border: none;
    padding: 0 15px;
    color: var(--bbm-dark-gray);
    cursor: pointer;
}

.bbm-btn-filter-toggle {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 7px 12px;
    border-radius: var(--bbm-radius-sm);
    font-size: 0.85rem;
    color: var(--bbm-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: var(--bbm-transition);
}

.bbm-btn-filter-toggle:hover {
    background: #f1f5f9;
}

/* Bento Grid */
.bbm-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-bottom: 50px;
}

.bbm-bento-card {
    position: relative;
    border-radius: var(--bbm-radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #cbd5e1;
    transition: var(--bbm-transition);
}

.bbm-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.bbm-bento-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.bbm-bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    color: var(--bbm-white);
}

.bbm-bento-badge {
    display: inline-block;
    background: var(--bbm-accent);
    color: var(--bbm-white);
    font-size: 0.9rem;
    padding: 6px 15px;
    border-radius: var(--bbm-radius-sm);
    margin-bottom: 15px;
    font-weight: 600;
}

.bbm-bento-content h3 {
    color: var(--bbm-white);
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.bbm-bento-content h3 a {
    color: var(--bbm-white);
    text-decoration: none;
}

.bbm-bento-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    flex-wrap: wrap;
}

.bbm-bento-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbm-btn-details {
    display: inline-block;
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--bbm-white);
    padding: 10px 20px;
    border-radius: var(--bbm-radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--bbm-transition);
    backdrop-filter: blur(5px);
}

.bbm-btn-details:hover {
    background: var(--bbm-white);
    color: var(--bbm-primary);
}

/* Grid Sizes */
.bbm-bento-hero {
    grid-column: span 2;
    grid-row: span 2;
}

.bbm-bento-hero .bbm-bento-content h3 {
    font-size: 2rem;
}

.bbm-bento-portrait {
    grid-column: span 1;
    grid-row: span 2;
}

.bbm-bento-square {
    grid-column: span 1;
    grid-row: span 1;
}

.bbm-bento-square .bbm-bento-content {
    padding: 15px;
}

.bbm-bento-square .bbm-bento-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.bbm-bento-square .bbm-bento-meta {
    gap: 10px;
    font-size: 0.8rem;
}

/* Pagination */
.bbm-bento-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.bbm-bento-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.bbm-bento-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bbm-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--bbm-radius-sm);
    color: var(--bbm-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--bbm-transition);
}

.bbm-bento-pagination .page-numbers.current,
.bbm-bento-pagination .page-numbers:hover {
    background: var(--bbm-accent);
    color: var(--bbm-white);
    border-color: var(--bbm-accent);
}

.bbm-bento-pagination .page-numbers.next,
.bbm-bento-pagination .page-numbers.prev {
    width: auto;
    padding: 0 15px;
    gap: 8px;
}

/* Bottom CTA */
.bbm-bento-cta {
    background: var(--bbm-primary);
    border-radius: var(--bbm-radius-md);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bbm-white);
    box-shadow: 0 8px 20px rgba(15,23,42,0.1);
}

.bbm-bento-cta-icon {
    font-size: 2rem;
    color: rgba(255,255,255,0.15);
    margin-right: 15px;
}

.bbm-bento-cta-text {
    flex: 1;
}

.bbm-bento-cta-text h2 {
    color: var(--bbm-white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.bbm-bento-cta-text p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.85rem;
}

.bbm-bento-cta-btn .bbm-btn {
    white-space: nowrap;
}

/* ============================================================
   SINGLE PROJECT LAYOUT
   ============================================================ */

/* Header */
.bbm-project-detail-header {
    background: var(--bbm-primary-dark);
    padding: 60px 0;
    color: var(--bbm-white);
}

.bbm-project-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--bbm-white);
}

.bbm-project-detail-header .bbm-header-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 20px;
}

.bbm-project-detail-header .bbm-breadcrumb {
    color: rgba(255,255,255,0.5);
}

.bbm-project-detail-header .bbm-breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.bbm-project-detail-header .bbm-breadcrumb a:hover {
    color: var(--bbm-accent-light);
}

.bbm-project-detail-header .bbm-breadcrumb span {
    margin: 0 10px;
}

/* Content Grid */
.bbm-project-detail-content {
    background: var(--bbm-white);
    padding: 60px 0 20px 0;
}

.bbm-project-meta-top {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--bbm-dark-gray);
    font-size: 0.9rem;
}

.bbm-project-meta-top span i {
    color: var(--bbm-accent);
    margin-right: 5px;
}

.bbm-single-project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Info Section */
.bbm-project-cat-subtitle {
    color: var(--bbm-text);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.bbm-project-main-title {
    color: var(--bbm-accent);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 700;
}

.bbm-project-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.bbm-info-card {
    display: flex;
    align-items: center;
    background: var(--bbm-light-gray);
    padding: 15px 20px;
    border-radius: var(--bbm-radius-sm);
    flex: 1;
    min-width: 150px;
}

.bbm-info-icon {
    font-size: 1.5rem;
    color: var(--bbm-dark-gray);
    margin-right: 15px;
}

.bbm-info-text {
    display: flex;
    flex-direction: column;
}

.bbm-info-text .label {
    font-size: 0.75rem;
    color: var(--bbm-dark-gray);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.bbm-info-text .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bbm-text);
}

.bbm-project-description {
    color: var(--bbm-text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.bbm-project-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bbm-btn-outline-dark {
    border-color: var(--bbm-border);
    color: var(--bbm-text);
}

.bbm-btn-outline-dark:hover {
    background: var(--bbm-light-gray);
    color: var(--bbm-primary);
}

/* Image Section */
.bbm-single-project-image {
    border-radius: var(--bbm-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbm-shadow-lg);
    position: relative;
}

.bbm-single-project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Gallery Section */
.bbm-project-gallery-section {
    margin-top: 80px;
}

.bbm-gallery-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--bbm-text);
}

.bbm-gallery-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bbm-gallery-filter button {
    background: var(--bbm-white);
    border: 1px solid var(--bbm-border);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--bbm-text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--bbm-transition);
}

.bbm-gallery-filter button:hover,
.bbm-gallery-filter button.active {
    background: var(--bbm-accent);
    color: var(--bbm-white);
    border-color: var(--bbm-accent);
}

.bbm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bbm-gallery-item {
    position: relative;
    border-radius: var(--bbm-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.bbm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--bbm-transition-slow);
}

.bbm-gallery-item:hover img {
    transform: scale(1.05);
}

.bbm-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,25,48,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--bbm-transition);
}

.bbm-gallery-item:hover .bbm-gallery-overlay {
    opacity: 1;
}

.bbm-gallery-overlay i {
    color: var(--bbm-white);
    font-size: 2rem;
    transform: scale(0.5);
    transition: var(--bbm-transition);
}

.bbm-gallery-item:hover .bbm-gallery-overlay i {
    transform: scale(1);
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.bbm-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 25, 48, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bbm-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.bbm-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.bbm-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--bbm-radius-md);
    box-shadow: var(--bbm-shadow-xl);
}

.bbm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--bbm-white);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.bbm-lightbox-close:hover {
    color: var(--bbm-accent);
}

.bbm-lightbox-prev, .bbm-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--bbm-white);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: var(--bbm-radius-sm);
}

.bbm-lightbox-prev:hover, .bbm-lightbox-next:hover {
    background: var(--bbm-accent);
}

.bbm-lightbox-prev {
    left: 30px;
}

.bbm-lightbox-next {
    right: 30px;
}

/* ============================================================
   SERVICE MOBILE CARD (From Mockup 3)
   ============================================================ */
.bbm-services-detail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bbm-service-mobile-card {
    display: flex;
    align-items: center;
    background: var(--bbm-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--bbm-radius-md);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    transition: var(--bbm-transition);
}

.bbm-service-mobile-card:hover {
    box-shadow: var(--bbm-shadow-md);
    transform: translateY(-3px);
}

.bbm-service-mc-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eff6ff; /* light blue */
    color: var(--bbm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 20px;
}

.bbm-service-mc-content {
    flex-grow: 1;
}

.bbm-service-mc-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--bbm-primary-dark);
}

.bbm-service-mc-content p {
    font-size: 0.9rem;
    color: var(--bbm-dark-gray);
    margin-bottom: 0;
    line-height: 1.4;
}

.bbm-service-mc-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* ============================================================
   HIDE MOBILE NAV ELEMENTS ON DESKTOP
   ============================================================ */
.bbm-nav-mobile-header,
.bbm-nav-socials {
    display: none;
}

@media (min-width: 769px) {
    .bbm-nav-menu li a i {
        display: none !important;
    }
}

/* ============================================================
   RESPONSIVE UTILITY CLASSES
   ============================================================ */
@media (min-width: 769px) {
    .bbm-hidden-desktop {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .bbm-hidden-mobile {
        display: none !important;
    }
}
