/* Energy Peyman - Professional Stylesheet */
:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary: #1e3a5f;
    --secondary-dark: #0f2942;
    --dark: #1f2937;
    --darker: #111827;
    --light: #f8fafc;
    --lighter: #f1f5f9;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

body.rtl { direction: rtl; text-align: right; }
body.ltr { direction: ltr; text-align: left; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; color: var(--darker); line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    border: 2px solid transparent; cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--lighter); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

.link-arrow { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: ''; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: var(--transition); flex-shrink: 0; }
.rtl .link-arrow::after { transform: rotate(-135deg); }
.link-arrow:hover { color: var(--primary-dark); gap: 10px; }

/* Badge */
.badge {
    display: inline-block; padding: 8px 18px;
    background: var(--lighter); color: var(--gray);
    border-radius: 50px; font-size: 13px; font-weight: 600;
    margin-bottom: 16px;
}
.badge-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }

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

/* Header */
.header { position: sticky; top: 0; z-index: 1000; background: var(--white); }

.header-top {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: var(--gray-light); font-size: 13px; padding: 10px 0;
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.contact-quick { display: flex; gap: 24px; }
.contact-quick a { color: var(--gray-light); display: flex; align-items: center; gap: 8px; }
.contact-quick a:hover { color: var(--primary); }
.contact-quick .icon { font-size: 16px; }

.lang-switch { display: flex; gap: 6px; }
.lang-switch a { color: rgba(255,255,255,0.88); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.lang-switch a:hover, .lang-switch a.active { background: var(--primary); color: var(--white); }

.header-main { padding: 16px 0; box-shadow: var(--shadow); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 55px; width: auto; }
.logo-icon { width: 55px; height: 55px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--white); }
.logo-text strong { display: block; font-size: 20px; font-weight: 800; color: var(--secondary); }
.logo-text small { display: block; font-size: 11px; color: var(--gray); margin-top: 2px; }

.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu a { padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 500; color: var(--dark); position: relative; }
.nav-menu a:hover { color: var(--primary); background: var(--lighter); }
.nav-menu a.active { background: var(--primary); color: var(--white); }

.mobile-toggle { display: none; width: 44px; height: 44px; background: var(--lighter); border: none; border-radius: var(--radius-sm); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* Hero */
.hero { position: relative; height: 420px; overflow: hidden; }
.hero--intl { height: 420px; min-height: 420px; }
.hero-slider .hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slider .hero-img,
.hero-slider .hero-slide .hero-img,
.hero-slider .hero-slide-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-controls {
    position: absolute; bottom: 22px; left: 0; right: 0; z-index: 4;
    display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-nav {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55); background: rgba(15,41,66,0.45);
    color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.hero-nav:hover { background: var(--primary); border-color: var(--primary); }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot {
    width: 10px; height: 10px; padding: 0; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.75); background: transparent; cursor: pointer;
    transition: var(--transition);
}
.hero-dot.is-active { background: var(--primary); border-color: var(--primary); transform: scale(1.15); }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, #2c5282 100%); }
.hero-placeholder--static,
.hero-placeholder--empty { background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 55%, #1e4a6e 100%); }
.hero--no-slider { height: 320px; min-height: 320px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,41,66,0.75), rgba(30,58,95,0.55)); z-index: 1; }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 2; color: var(--white); padding: 24px; }
.hero-title { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--white); margin: 12px 0 8px; }
.hero-tagline { font-size: 1.1rem; opacity: 0.95; max-width: 640px; margin-bottom: 8px; }
.hero-lead { font-size: 0.95rem; opacity: 0.85; max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-hero-outline { background: transparent; border: 2px solid rgba(255,255,255,0.9); color: var(--white); }
.btn-hero-outline:hover { background: var(--white); color: var(--secondary); }

.quick-nav { background: var(--white); border-bottom: 1px solid var(--lighter); box-shadow: var(--shadow); }
.quick-nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; list-style: none; padding: 12px 0; margin: 0; }
.quick-nav-list a { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--gray); border-radius: var(--radius-sm); }
.quick-nav-list a:hover { background: var(--lighter); color: var(--primary); }

/* Sections */
.section { padding: 80px 0; }
.section-gray { background: var(--light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { margin-top: 8px; }
.section-title { font-size: 1.75rem; color: var(--secondary); margin-bottom: 20px; }
.section-footer { text-align: center; margin-top: 40px; }

/* Welcome Section */
.welcome-section { background: var(--white); }
.welcome-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.welcome-text { color: var(--gray); line-height: 2; margin-bottom: 20px; }
.welcome-text p { margin-bottom: 16px; }

.cert-logos { display: flex; gap: 16px; margin: 30px 0 16px; flex-wrap: wrap; }
.cert-item { width: 75px; height: 75px; background: var(--white); border: 2px solid var(--lighter); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cert-item:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-item img { max-height: 50px; max-width: 50px; object-fit: contain; }
.cert-item span { font-size: 32px; }

.overview-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.overview-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--white); border: 2px solid var(--lighter); border-radius: var(--radius); transition: var(--transition); }
.overview-card:hover { border-color: var(--primary); transform: translateX(-8px); box-shadow: var(--shadow-md); }
.rtl .overview-card:hover { transform: translateX(8px); }
.ov-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.ov-text h4 { font-size: 16px; margin-bottom: 4px; color: var(--secondary); }
.ov-text span { font-size: 13px; color: var(--primary); font-weight: 500; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: var(--white);
    padding: 0 0 32px;
    border-radius: var(--radius);
    border: 2px solid var(--lighter);
    transition: var(--transition);
    overflow: hidden;
}

.service-card .service-img-box {
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid var(--lighter);
}

.service-card h3,
.service-card p,
.service-card .link-arrow {
    padding-left: 24px;
    padding-right: 24px;
}

.service-card h3 { padding-top: 4px; }

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--lighter);
    transition: var(--transition);
}

.project-card .project-img {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--lighter);
    margin-bottom: 0;
}
.service-icon { width: 65px; height: 65px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 20px; overflow: hidden; }
.service-icon img { width: 100%; height: 100%; object-fit: cover; }
.service-icon span { font-size: 30px; }
.service-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--secondary); }
.service-card p { font-size: 14px; color: var(--gray); margin-bottom: 16px; line-height: 1.8; }

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-img { min-height: 160px; max-height: 220px; background: var(--lighter); position: relative; }
.project-img img { max-height: 210px; }
.project-card:hover .project-img img { transform: scale(1.02); }
.placeholder-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, var(--lighter), var(--light)); }
.project-content { padding: 24px; }
.project-content h3 { font-size: 17px; margin-bottom: 10px; color: var(--secondary); }
.project-content p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }

/* Team Grid - Horizontal Cards */
.team-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.team-card { display: flex; align-items: center; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 2px solid var(--lighter); transition: var(--transition); width: 500px; padding: 16px; gap: 16px; }
.team-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.team-img { width: 90px; height: 110px; background: var(--lighter); overflow: hidden; position: relative; flex-shrink: 0; border-radius: var(--radius-sm); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-info { flex: 1; }
.team-info h4 { font-size: 15px; color: var(--secondary); margin-bottom: 4px; }
.team-info .position { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.team-info .education { font-size: 11px; color: var(--gray); margin-bottom: 8px; }
.team-info .bio { font-size: 11px; color: var(--gray); line-height: 1.7; }

/* RTL/LTR Team Card Direction - Image on LEFT for RTL (fa/ar) */
.rtl .team-card { flex-direction: row; }
.rtl .team-info { text-align: right; }
.ltr .team-card { flex-direction: row; }
.ltr .team-info { text-align: left; }

/* CTA Section - Now for Certificates */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 80px 0; }
.cta-content { max-width: 600px; margin: 0 auto; text-align: center; color: var(--white); }
.cta-content h2 { font-size: 2rem; margin-bottom: 16px; color: var(--white); }
.cta-content p { font-size: 16px; margin-bottom: 28px; opacity: 0.95; }

/* Certificates Home Grid */
.certs-home-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.cert-home-item { background: rgba(255,255,255,0.15); padding: 20px 30px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; transition: var(--transition); }
.cert-home-item:hover { background: rgba(255,255,255,0.25); transform: translateY(-4px); }
.cert-home-item img { height: 50px; width: auto; }
.cert-home-item .cert-icon { font-size: 40px; }
.cert-home-item .cert-name { color: var(--white); font-weight: 600; font-size: 14px; }

/* Page Header */
.page-header { background: linear-gradient(135deg, var(--secondary-dark), var(--secondary)); color: var(--white); padding: 60px 0; text-align: center; }
.page-header--intl { padding: 72px 0 64px; }
.page-header h1 { font-size: 2.25rem; color: var(--white); margin-bottom: 16px; }
.page-header-lead { max-width: 720px; margin: 0 auto 20px; font-size: 1.05rem; opacity: 0.92; line-height: 1.75; color: rgba(255,255,255,0.95); }
.badge-light { background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.25); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.9); }
.breadcrumb a { color: rgba(255,255,255,0.95); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb-sep { opacity: 0.5; }
.section-header-sub { color: var(--gray); margin-top: 12px; line-height: 1.75; max-width: 640px; }
.section-header--center .section-header-sub { margin-left: auto; margin-right: auto; }

/* About Page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; margin-bottom: 50px; }
.about-content h2 { margin-bottom: 20px; }
.content-text { color: var(--gray); line-height: 2; }
.content-text p { margin-bottom: 16px; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.stats-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: linear-gradient(135deg, var(--secondary-dark), var(--secondary)); padding: 50px; border-radius: var(--radius); }
.stat-card { text-align: center; color: var(--white); }
.stat-num { display: block; font-size: 3.5rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.8); }

/* Team Page */
.team-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.team-member-card { display: flex; gap: 24px; background: var(--white); padding: 28px; border-radius: var(--radius); border: 2px solid var(--lighter); transition: var(--transition); }
.team-member-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.member-img { width: 140px; height: 170px; background: var(--lighter); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; position: relative; }
.member-img img { width: 100%; height: 100%; object-fit: cover; }
.member-info h3 { font-size: 20px; color: var(--secondary); margin-bottom: 6px; }
.member-info .position { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.member-info .education { font-size: 12px; color: var(--gray); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--lighter); }
.member-info .bio { font-size: 13px; color: var(--gray); line-height: 1.8; }

/* RTL/LTR for Team Page - Image on LEFT for RTL */
.rtl .team-member-card { flex-direction: row; }
.rtl .member-info { text-align: right; }
.ltr .team-member-card { flex-direction: row; }
.ltr .member-info { text-align: left; }

/* Filter Tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; justify-content: center; }
.filter-tab { padding: 12px 24px; background: var(--lighter); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.filter-tab:hover, .filter-tab.active { background: var(--primary); color: var(--white); }
.filter-tab-img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }

/* Projects List */
.projects-list { display: flex; flex-direction: column; gap: 24px; }
.project-list-item { display: flex; gap: 28px; background: var(--white); padding: 24px; border-radius: var(--radius); border: 2px solid var(--lighter); transition: var(--transition); }
.project-list-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pli-img { width: 240px; min-height: 160px; max-height: 220px; flex-shrink: 0; }
.pli-content h3 { font-size: 20px; color: var(--secondary); margin-bottom: 10px; }
.pli-content p { font-size: 14px; color: var(--gray); margin-bottom: 14px; line-height: 1.8; }
.pli-meta { font-size: 13px; color: var(--gray); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 20px; }
.pli-meta span { display: flex; align-items: center; gap: 6px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.pagination a { padding: 12px 24px; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); font-weight: 500; }
.pagination a:hover { background: var(--primary-dark); }

/* Services Page */
.services-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-page-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--lighter);
    transition: var(--transition);
    overflow: hidden;
    padding: 0 0 24px;
}

.service-page-card .media-card--card,
.service-page-card .spc-img {
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid var(--lighter);
}

.service-page-card h3,
.service-page-card p,
.service-page-card .btn {
    padding-left: 24px;
    padding-right: 24px;
}

.service-page-card h3 { padding-top: 4px; margin-bottom: 10px; }
.service-page-card p { margin-bottom: 16px; }
.service-page-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.spc-icon { width: 60px; height: 60px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: var(--radius-sm); overflow: hidden; }
.spc-icon img { width: 100%; height: 100%; object-fit: cover; }
.spc-icon span { font-size: 32px; }
.service-page-card h3 { font-size: 20px; color: var(--secondary); margin-bottom: 12px; }
.service-page-card p { font-size: 14px; color: var(--gray); margin-bottom: 20px; line-height: 1.8; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info h3 { font-size: 24px; margin-bottom: 28px; color: var(--secondary); }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; }
.ci-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 14px; color: var(--secondary); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--gray); }
.contact-item a { color: var(--primary); }

/* Contact Block - New Style */
.contact-block { background: var(--light); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; }
.contact-block-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-block-header .ci-icon { width: 40px; height: 40px; font-size: 18px; }
.contact-block-header strong { font-size: 16px; color: var(--secondary); }
.contact-block-content { color: var(--gray); font-size: 14px; line-height: 2; padding-right: 52px; }
.ltr .contact-block-content { padding-right: 0; padding-left: 52px; }

.contact-form-box { background: var(--light); padding: 40px; border-radius: var(--radius); }
.contact-form-box h3 { font-size: 24px; margin-bottom: 28px; color: var(--secondary); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--dark); }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; border: 2px solid var(--lighter); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; transition: var(--transition); background: var(--white); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Equipment Page - List Style */
.equipment-category { margin-bottom: 40px; }
.category-title { font-size: 20px; color: var(--secondary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 3px solid var(--primary); display: inline-block; }
.equipment-list { list-style: none; background: var(--white); border-radius: var(--radius); border: 2px solid var(--lighter); overflow: hidden; }
.equipment-list-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--lighter); transition: var(--transition); }
.equipment-list-item:last-child { border-bottom: none; }
.equipment-list-item:hover { background: var(--light); }
.eq-name { font-weight: 500; color: var(--dark); }
.eq-quantity { color: var(--primary); font-weight: 600; font-size: 14px; }

/* Gallery Grid - Smaller */
.gallery-grid-small { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-item-small { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.gallery-item-small img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item-small:hover img { transform: scale(1.1); }
.gallery-item-small .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: flex-end; padding: 12px; color: var(--white); font-size: 11px; font-weight: 500; opacity: 0; transition: var(--transition); }
.gallery-item-small:hover .gallery-overlay { opacity: 1; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: var(--white); font-size: 40px; cursor: pointer; }

/* Certificates Grid */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.certs-page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-card, .cert-page-card { background: var(--white); padding: 28px; border-radius: var(--radius); border: 2px solid var(--lighter); text-align: center; transition: var(--transition); }
.cert-card:hover, .cert-page-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.cert-card img, .cert-page-card img { max-height: 80px; margin: 0 auto 16px; }
.cert-placeholder { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 48px; margin-bottom: 16px; }
.cert-card h4, .cert-page-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--secondary); }
.issuer { font-size: 13px; color: var(--primary); margin-bottom: 8px; }
.cert-page-card p { font-size: 13px; color: var(--gray); }

/* International layout utilities */
.section-header--center { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.prose-content { color: var(--gray); line-height: 1.9; font-size: 15px; white-space: pre-wrap; }
.prose-content--wide { max-width: 72ch; }
.prose-content--compact { font-size: 14px; line-height: 1.8; }
.content-heading { font-size: 1.5rem; color: var(--secondary); margin-bottom: 20px; }
.about-grid--intl { align-items: center; }
.img-frame--elevated { box-shadow: var(--shadow-lg); }
.stats-section--intl { margin-top: 48px; }
.filter-tabs--intl { margin-bottom: 48px; }
.projects-list--intl .project-list-item { align-items: stretch; }
.detail-page--intl { max-width: 900px; margin: 0 auto; }
.detail-meta--intl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; background: var(--light); padding: 28px; border-radius: var(--radius); margin-bottom: 32px; border: 1px solid var(--lighter); }
.detail-meta-item strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); margin-bottom: 6px; }
.detail-meta-item span { color: var(--dark); font-weight: 500; }
.detail-hero-img { margin-bottom: 32px; }
.team-page-grid--intl { gap: 28px; }
.team-member-card--manager { border-color: var(--primary); background: linear-gradient(to bottom, #fffbeb, var(--white)); }
.equipment-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.equipment-category-card { background: var(--white); border: 1px solid var(--lighter); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.equipment-category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--lighter); }
.equipment-count-badge { background: var(--primary); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.equipment-list--intl .equipment-list-item { padding: 12px 0; border-bottom: 1px solid var(--lighter); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.equipment-list--intl .equipment-list-item:last-child { border-bottom: none; }
.gallery-grid--intl { gap: 20px; }
.contact-grid--intl { gap: 40px; }
.contact-block--intl { background: var(--light); border-radius: var(--radius); padding: 20px; border: 1px solid var(--lighter); margin-bottom: 16px; }
.contact-form-box--intl { background: var(--white); border: 1px solid var(--lighter); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.faq-container--intl { max-width: 880px; }
.faq-item.open .faq-answer { max-height: 2000px; }
.pagination--intl { gap: 20px; }
.pagination-info { font-weight: 600; color: var(--gray); }
.cert-gallery-grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cert-logos--home .cert-item { text-decoration: none; }
.cta-section--certs .section-header h2 { color: var(--white); }
.cta-section--certs .section-header-sub { color: rgba(255,255,255,0.9); }
.ov-thumb {
    width: 100px;
    height: 76px;
    min-height: unset;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.ov-thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.ov-thumb .ov-thumb--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    background: linear-gradient(135deg, #fffbeb, var(--lighter));
}
.error-page--intl .error-code { display: block; font-size: 5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.error-page--intl h1 { font-size: 1.75rem; color: var(--secondary); margin-bottom: 12px; }
.error-lead { color: var(--gray); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cert-policy-card { background: var(--white); border: 1px solid var(--lighter); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.cert-policy-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 40px; align-items: start; }
.rtl .cert-policy-grid { direction: rtl; }
.cert-policy-body h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--secondary); }
.cert-issuer { font-size: 14px; color: var(--primary); margin-bottom: 20px; font-weight: 600; }
.prose-content { color: var(--gray); line-height: 1.9; font-size: 15px; max-width: 72ch; white-space: pre-wrap; }
.cert-view-hint { font-size: 12px; color: var(--gray-light); text-align: center; margin-top: 10px; }

.cert-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.cert-gallery-item { background: var(--white); border: 1px solid var(--lighter); border-radius: var(--radius); padding: 20px; text-align: center; transition: var(--transition); }
.cert-gallery-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cert-gallery-item h3 { font-size: 14px; margin-top: 16px; color: var(--secondary); line-height: 1.5; }
.cert-scan-card { cursor: zoom-in; }
.cert-scan-card img { width: 100%; max-height: 320px; object-fit: contain; background: var(--lighter); border-radius: var(--radius-sm); }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--white); font-size: 14px; max-width: 90%; text-align: center; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; border: 2px solid var(--lighter); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary); }
.faq-question { width: 100%; padding: 22px 24px; background: none; border: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 16px; font-weight: 600; text-align: inherit; color: var(--secondary); font-family: inherit; }
.faq-icon { font-size: 12px; transition: var(--transition); color: var(--gray); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: var(--transition); }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 24px 24px; }
.faq-answer { color: var(--gray); line-height: 1.9; }

/* Detail Pages */
.detail-page { max-width: 800px; margin: 0 auto; }
.detail-img { width: 100%; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow-md); }
.detail-meta { background: var(--light); padding: 24px; border-radius: var(--radius); margin-bottom: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-meta div { font-size: 14px; color: var(--gray); }
.detail-meta strong { color: var(--secondary); }
.detail-content { color: var(--gray); line-height: 2; }
.detail-content p { margin-bottom: 16px; }

.related-section { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--lighter); }
.related-section h3 { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--light); padding: 20px; border-radius: var(--radius); transition: var(--transition); display: block; }
.related-card:hover { background: var(--primary); color: var(--white); transform: translateY(-4px); }
.related-card img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.related-card span { font-weight: 600; font-size: 14px; }

/* Error Page */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page h1 { font-size: 8rem; color: var(--primary); margin-bottom: 16px; }
.error-page p { font-size: 20px; color: var(--gray); margin-bottom: 28px; }

/* Footer */
.footer { background: linear-gradient(135deg, var(--secondary-dark), var(--secondary)); color: rgba(255,255,255,0.8); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-logo { height: 50px; margin-bottom: 16px; }
.footer-brand strong { display: block; font-size: 20px; color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.9; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: var(--transition); }
.social-links a:hover { background: var(--primary); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 16px; margin-bottom: 24px; }
.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.88); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-contact li { font-size: 14px; display: flex; gap: 10px; }
.footer-contact .icon { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding: 24px 0; text-align: center; font-size: 14px; color: rgba(255,255,255,0.6); }

/* Messages */
.messages-container { position: fixed; top: 100px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.rtl .messages-container { right: auto; left: 20px; }
.alert { padding: 18px 24px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 320px; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.alert-success { background: var(--success); color: var(--white); }
.alert-error { background: var(--error); color: var(--white); }
.alert button { background: none; border: none; color: inherit; font-size: 24px; cursor: pointer; line-height: 1; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: var(--shadow-md); }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }
.rtl .back-to-top { right: auto; left: 30px; }

/* No Results */
.no-results { text-align: center; color: var(--gray); padding: 60px 20px; font-size: 16px; }

/* Responsive */
@media (max-width: 1024px) {
    .welcome-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid, .certs-page-grid { grid-template-columns: repeat(3, 1fr); }
    .cert-policy-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-section { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-meta { grid-template-columns: 1fr; }
    .gallery-grid-small { grid-template-columns: repeat(4, 1fr); }
    .team-card { width: 100%; max-width: 500px; }
}

@media (max-width: 1024px) {
    .about-hero-inner { grid-template-columns: 1fr; }
    .about-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .logo-tagline { display: none; }
    .nav-menu--primary a { padding: 14px 18px; font-size: 15px; }
    .about-pillars { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .header-main { position: relative; overflow: visible; }
    .nav-inner { position: relative; }

    .mobile-toggle { display: flex; }
    
    .header-top-inner { justify-content: center; }
    .contact-quick { display: none; }
    
    .services-grid, .projects-grid, .services-page-grid { grid-template-columns: 1fr; }
    .gallery-grid-small { grid-template-columns: repeat(3, 1fr); }
    .certs-grid, .certs-page-grid { grid-template-columns: repeat(2, 1fr); }
    .team-page-grid { grid-template-columns: 1fr; }
    .team-member-card { flex-direction: column !important; align-items: center; text-align: center; }
    .member-img { width: 160px; height: 200px; }
    .member-info { text-align: center !important; }
    
    .project-list-item { flex-direction: column; }
    .pli-img { width: 100%; height: 200px; }
    .quick-nav-list { gap: 2px; }
    .quick-nav-list a { padding: 6px 10px; font-size: 12px; }
    .hero, .hero--intl { height: 300px; min-height: 300px; }
    .hero-controls { bottom: 14px; }
    .equipment-layout { grid-template-columns: 1fr; }
    .pli-img { width: 100%; height: 200px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    
    .form-row { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .stats-section { grid-template-columns: 1fr; padding: 30px; }
    .stat-num { font-size: 2.5rem; }
    
    .team-card { width: 100%; flex-direction: column !important; text-align: center; }
    .team-img { width: 100px; height: 120px; margin: 0 auto; }
    .team-info { text-align: center !important; }
    
    .contact-block-content { padding-right: 0; padding-left: 0; }
    .certs-home-grid { flex-direction: column; align-items: center; }
}

/* Standard image frames — full image visible inside frame */
.img-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--lighter);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 140px;
}

.img-frame img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.img-frame--contain {
    aspect-ratio: auto;
    max-height: none;
}

.img-frame:hover img { transform: scale(1.02); }

/* Unified media card system */
.media-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--lighter);
    border: 2px solid var(--lighter);
    box-shadow: var(--shadow);
}

.media-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.media-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.media-card:hover img { transform: scale(1.02); }

.media-card--wide {
    min-height: 200px;
    max-height: 420px;
    width: 100%;
    margin-bottom: 28px;
}

.media-card--card {
    min-height: 160px;
    max-height: 220px;
    width: 100%;
    margin-bottom: 16px;
}

.media-card--gallery {
    aspect-ratio: 4 / 3;
    max-height: 200px;
    width: 100%;
}

.media-card--cert {
    aspect-ratio: 1;
    max-height: 110px;
    max-width: 110px;
    margin: 0 auto 14px;
}

.media-card--related {
    aspect-ratio: 16 / 10;
    max-height: 100px;
    width: 100%;
    margin-bottom: 10px;
}

.media-card--portrait {
    aspect-ratio: 3 / 4;
    max-height: 120px;
    width: 90px;
    flex-shrink: 0;
}

.detail-img {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 28px;
    border: 2px solid var(--lighter);
    box-shadow: var(--shadow-md);
}


.spc-img, .service-img-box {
    aspect-ratio: 16 / 10;
    max-height: 180px;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--lighter);
    border: 2px solid var(--lighter);
}

.spc-img img, .service-img-box img {
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
}

.pli-img {
    width: 220px;
    max-width: 100%;
    min-height: 140px;
    max-height: 200px;
    flex-shrink: 0;
}

.cert-page-card img, .cert-card img {
    max-height: 80px;
    max-width: 80px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.cert-page-card .media-card--cert img {
    max-height: 100%;
    max-width: 100%;
}

.related-card img {
    height: 100px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.related-card .media-card--related {
    margin-bottom: 10px;
}

/* Nav icons — desktop hide, mobile show */
.nav-icon { display: none; }
.nav-label { display: inline; }

.ov-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.overview-card .ov-img { width: 64px; height: 64px; }

.service-img-box {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--lighter);
    border: 2px solid var(--lighter);
}

.service-card:hover .service-img-box img { transform: scale(1.06); }

.project-img, .pli-img, .member-img, .team-img {
    border: 2px solid var(--lighter);
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.member-img { max-height: 170px; width: 130px; }
.team-img { max-height: 120px; width: 90px; }

.detail-img.img-frame { aspect-ratio: 16 / 9; max-height: 320px; }

/* Gallery grid — card style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    max-width: 100%;
}

.gallery-item {
    position: relative;
    min-height: 140px;
    max-height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    background: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

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

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,41,66,0.92), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}

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

/* Hero — reasonable size */
.hero { height: min(420px, 55vh); min-height: 240px; }
.hero-overlay {
    background: linear-gradient(to bottom, rgba(15,41,66,0.15), rgba(15,41,66,0.55));
}

/* Header mobile */
.header-main { position: relative; }
.header-main .nav-inner { position: relative; }

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .media-card--wide { max-height: 280px; }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-item { max-height: 140px; }
    .media-card--wide { max-height: 220px; }
    .media-card--card { max-height: 160px; }
    .pli-img { width: 100%; max-height: 160px; }

    /* Attractive mobile menu */
    .nav-menu {
        display: none !important;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 10px;
        gap: 6px;
        background: linear-gradient(165deg, #0f2942 0%, #1e3a5f 100%);
        box-shadow: 0 16px 40px rgba(0,0,0,0.25);
        border-radius: var(--radius);
        border: 1px solid rgba(255,255,255,0.12);
        z-index: 1001;
        max-height: 75vh;
        overflow-y: auto;
        animation: menuSlideIn 0.25s ease;
    }

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

    .nav-menu.show { display: flex !important; }

    .nav-menu li { width: 100%; list-style: none; }

    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 16px;
        border-radius: 10px;
        color: rgba(255,255,255,0.92) !important;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
        font-weight: 600;
        font-size: 14px;
        transition: var(--transition);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--primary) !important;
        color: var(--white) !important;
        border-color: var(--primary);
        transform: translateX(-4px);
        box-shadow: 0 4px 12px rgba(245,158,11,0.35);
    }

    .ltr .nav-menu a:hover,
    .ltr .nav-menu a.active { transform: translateX(4px); }

    .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .nav-menu a.active .nav-icon,
    .nav-menu a:hover .nav-icon {
        background: rgba(255,255,255,0.2);
    }

    .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-item { max-height: 120px; }
    .container { padding: 0 16px; }
    .logo-text strong { font-size: 16px; }
    .logo-img { height: 44px; }
    .hero { height: min(280px, 45vh); }
}

/* Corporate icon system */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    color: currentColor;
}

.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-mark .icon { color: var(--primary-light); }

.lang-switch a {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 11px;
    min-width: 36px;
    text-align: center;
}

.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(145deg, var(--lighter), var(--light));
    color: var(--gray-light);
}

.media-placeholder--cert {
    min-height: 80px;
    aspect-ratio: 1;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
}

.meta-item .icon { color: var(--primary); opacity: 0.85; }

.ci-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    flex-shrink: 0;
}

.ci-icon .icon { color: inherit; }

.back-to-top .icon-chevron { display: block; }

/* Primary nav — compact (desktop & mobile) */
.nav-menu--primary { gap: 2px; }
.nav-menu--primary a {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}
.logo-tagline { display: block; max-width: 280px; line-height: 1.35; }

/* About page redesign */
.about-hero-band {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    padding: 48px 0;
    border-bottom: 1px solid var(--lighter);
}
.about-hero-inner {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 40px;
    align-items: center;
}
.img-frame--about-hero { min-height: 280px; max-height: 360px; padding: 16px; }
.about-hero-card h2 { font-size: 1.75rem; color: var(--secondary); margin-bottom: 12px; }
.about-hero-tagline { color: var(--gray); margin-bottom: 24px; line-height: 1.7; }
.about-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.about-stat-pill {
    background: var(--white);
    border: 1px solid var(--lighter);
    border-radius: var(--radius);
    padding: 14px 18px;
    min-width: 110px;
    box-shadow: var(--shadow);
}
.about-stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.about-stat-label { font-size: 12px; color: var(--gray); }
.about-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.about-pillar {
    background: var(--white);
    border: 1px solid var(--lighter);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.about-pillar:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.about-pillar-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fffbeb, var(--lighter));
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    color: var(--primary);
}
.about-pillar h3 { font-size: 1rem; margin-bottom: 10px; color: var(--secondary); }
.about-pillar p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 14px; }
.about-story-text { margin: 0 auto; }
.about-certs-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.about-cert-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--lighter);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
}
.about-cert-chip:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.img-frame--chip { width: 88px; height: 88px; min-height: 88px; padding: 6px; }
.about-cert-label { font-size: 11px; font-weight: 600; color: var(--secondary); line-height: 1.4; }
.cta-section--compact { padding: 56px 0; }

/* Rich footer */
.footer--rich { padding-top: 56px; }
.footer-grid--rich {
    grid-template-columns: minmax(280px, 1.5fr) 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.footer-brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.footer-tagline {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.footer-about-text {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 16px;
    max-height: 11.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}
.footer-about-text p { margin-bottom: 0.4em; }
.footer-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.footer-mini-stats span {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}
.footer-mini-stats b { color: var(--primary-light); font-weight: 700; }
.footer-read-more { color: var(--primary-light); font-size: 13px; }
.footer-subheading { margin-top: 22px; margin-bottom: 10px; color: var(--white); }
.footer-contact-mini { list-style: none; font-size: 12px; line-height: 1.65; color: rgba(255, 255, 255, 0.75); }
.footer-contact-mini li { margin-bottom: 10px; }
.footer-contact-label { display: block; color: var(--primary-light); font-weight: 600; margin-bottom: 2px; }
.footer-certs {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-certs h4 { color: var(--white); margin-bottom: 18px; font-size: 15px; }
.footer-certs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 96px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}
.footer-cert-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.footer-cert-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.footer-cert-item span {
    font-size: 10px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

/* Desktop nav: text only */
@media (min-width: 769px) {
    .nav-menu a { display: inline-flex; align-items: center; }
    .nav-icon { display: none !important; }
}

/* Mobile nav: icons + labels */
@media (max-width: 768px) {
    .nav-menu--primary a {
        display: flex;
        align-items: center;
        gap: 14px;
        font-weight: 600;
        letter-spacing: 0.01em;
        padding: 14px 20px;
    }

    .nav-menu--primary .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.95);
    }

    .nav-menu--primary a.active .nav-icon,
    .nav-menu--primary a:hover .nav-icon {
        background: var(--primary);
        color: var(--white);
    }
}

@media (max-width: 1024px) {
    .footer-grid--rich { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}
