/* ============================================================
   Amgomed Website Stylesheet
   ============================================================ */

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

:root {
    --primary: #a8518a;         /* Amgomed plum — from logo wordmark */
    --primary-dark: #8a3f6f;    /* deeper plum for hovers */
    --primary-light: #f6ecf2;
    --accent: #3c8478;          /* teal — the logo's raised-arms swoosh */
    --accent-dark: #2f6a60;
    --accent-red: #e43030;      /* red — the figure's head dot (highlights/CTA) */
    --brand-grey: #a8a8a8;      /* the logo's broken circle */
    --dark: #292929;            /* primary body text on the real site */
    --gray: #6c6c6c;
    --light-gray: #f7f7f7;
    --white: #ffffff;
    --border: #e6e6e6;
    --shadow: 0 4px 20px rgba(168, 81, 138, 0.10);
    --shadow-hover: 0 10px 34px rgba(168, 81, 138, 0.20);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.7;
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p { margin-bottom: 15px; }

/* ============================================================
   Top Bar
   ============================================================ */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.top-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.top-contact a, .top-contact span { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.top-contact a:hover { color: var(--accent); }
.top-social a {
    color: var(--white);
    margin-left: 12px;
    font-size: 1rem;
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.top-social a:hover { background: var(--accent); transform: translateY(-2px); }

/* ============================================================
   Navigation / Header
   ============================================================ */
.main-header {
    background: var(--white);
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.logo img {
    height: 54px;
    width: auto;
    display: block;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}
.main-nav > ul > li {
    position: relative;
}
.main-nav > ul > li > a {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    color: var(--dark);
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    background: var(--primary);
    color: var(--white);
}
.main-nav li.has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.7rem;
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 230px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
    display: block;
    border-top: 3px solid var(--primary);
}
.main-nav li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    font-size: 0.9rem;
}
.dropdown li a:hover { background: var(--primary-light); color: var(--primary); padding-left: 25px; }

.mobile-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

/* ============================================================
   Hero / Slider
   ============================================================ */
.hero {
    position: relative;
    min-height: 640px;
    color: var(--white);
    overflow: hidden;
    background: #241019;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transform: scale(1.07);
    transition: opacity 1s ease, transform 7s ease;
    background-size: cover; background-position: center;
}
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg,
        rgba(38,16,28,0.93) 0%,
        rgba(138,63,111,0.82) 48%,
        rgba(60,132,120,0.55) 100%);
}
.hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Cpath d='M30 0L30 60M0 30L60 30'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.35;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); z-index: 2; }
.hero-slide .container { position: relative; z-index: 3; }
.hero-content { max-width: 760px; padding: 90px 0; }
.hero-subtitle {
    display: inline-block; color: #fff;
    text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.82rem; font-weight: 600;
    margin-bottom: 20px; padding: 6px 0 10px;
    border-bottom: 2px solid var(--accent-red);
    opacity: 0; transform: translateY(18px);
}
.hero h1 {
    color: var(--white); font-size: 3.1rem; line-height: 1.14;
    margin-bottom: 20px; font-weight: 800;
    opacity: 0; transform: translateY(24px);
}
.hero h1 .hero-highlight { color: #ffd7ec; }
.hero p {
    font-size: 1.14rem; margin-bottom: 30px; max-width: 620px;
    opacity: 0; transform: translateY(20px);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }
.hero-slide.active .hero-subtitle { animation: heroUp .7s .10s ease forwards; }
.hero-slide.active h1           { animation: heroUp .8s .25s ease forwards; }
.hero-slide.active p            { animation: heroUp .8s .42s ease forwards; }
.hero-slide.active .hero-cta    { animation: heroUp .8s .56s ease forwards; }
/* controls */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.45); background: rgba(0,0,0,0.18);
    color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.hero-arrow:hover { background: var(--accent-red); border-color: var(--accent-red); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }
.hero-dots {
    position: absolute; bottom: 26px; left: 0; right: 0; z-index: 6;
    display: flex; gap: 10px; justify-content: center;
}
.hero-dots button {
    width: 12px; height: 12px; border-radius: 50%; cursor: pointer; padding: 0;
    border: 2px solid #fff; background: transparent; transition: all .25s;
}
.hero-dots button.active { background: var(--accent-red); border-color: var(--accent-red); width: 30px; border-radius: 6px; }
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #222;
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 2px solid #222;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: transparent; color: var(--primary); }

/* ============================================================
   Page Banner
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, rgba(138,63,111,0.92), rgba(38,16,28,0.94)),
        url('../images/hero-dna-bg.jpg') center/cover;
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}
.page-banner h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.page-banner p { font-size: 1.1rem; max-width: 800px; margin: 0 auto; opacity: 0.95; }
.breadcrumb {
    margin-top: 20px;
    font-size: 0.9rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ============================================================
   Section
   ============================================================ */
.section { padding: 80px 0; }
.section-light { background: var(--light-gray); }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title .subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.section-title h2 { font-size: 2.4rem; }
.section-title .lead { max-width: 700px; margin: 15px auto 0; color: var(--gray); }

/* ============================================================
   About Section (homepage)
   ============================================================ */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-image img { width: 100%; }
.about-content .subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================================
   Why Us Cards
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent);
}
.feature-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s;
}
.feature-card:hover .icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg);
}
.feature-card h4 { margin-bottom: 12px; }
.feature-card p { color: var(--gray); font-size: 0.95rem; }
.feature-card .read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================================
   Product Cards
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-card .product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(168,81,138,0.72));
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover .product-image::after { opacity: 1; }
.product-card .product-image .placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.product-card .product-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-info { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.product-info h3 a { color: var(--dark); }
.product-info h3 a:hover { color: var(--primary); }
.product-info p {
    color: var(--gray);
    font-size: 0.92rem;
    flex: 1;
}
.product-info .read-more {
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================================
   Director / Team Cards
   ============================================================ */
.director-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.director-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.director-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.director-image {
    width: 140px;
    height: 140px;
    margin: 30px auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid var(--primary-light);
}
.director-info {
    padding: 0 25px 30px;
    text-align: center;
}
.director-info h3 { font-size: 1.2rem; margin-bottom: 5px; }
.director-info .position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.director-info .bio { color: var(--gray); font-size: 0.9rem; text-align: left; }

/* ============================================================
   Partner Cards
   ============================================================ */
.partner-list { display: flex; flex-direction: column; gap: 30px; }
.partner-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
    border-left: 4px solid var(--primary);
}
.partner-card .partner-logo {
    width: 100%;
    height: 130px;
    background: var(--primary-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
}
.partner-card h3 { color: var(--primary); margin-bottom: 5px; }
.partner-card .country {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}
.partner-card .website { display: inline-block; margin-top: 10px; font-weight: 600; }

/* ============================================================
   Job listings
   ============================================================ */
.job-list { display: flex; flex-direction: column; gap: 20px; }
.job-card {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    transition: all 0.3s;
}
.job-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.job-info h3 { margin-bottom: 5px; }
.job-info .meta { color: var(--gray); font-size: 0.9rem; }
.job-info .meta span { margin-right: 15px; }

/* ============================================================
   Content (rich text from CMS)
   ============================================================ */
.content-area h3, .content-area h4 {
    margin-top: 25px;
    color: var(--primary-dark);
}
.content-area ul {
    margin: 15px 0 15px 25px;
}
.content-area li { margin-bottom: 8px; }
.content-area p { color: #444; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}
.contact-info-box {
    background: var(--primary);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
}
.contact-info-box h3 { color: var(--white); margin-bottom: 25px; }
.contact-info-box .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: start;
}
.contact-info-box .info-item .icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.contact-info-box .info-item h5 { color: var(--white); margin-bottom: 5px; font-size: 1rem; }
.contact-info-box .info-item p, .contact-info-box .info-item a {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}
.contact-info-box .info-item a:hover { color: var(--accent); }

.contact-form { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   CTA section (Business Relationship banner — live site style)
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 70px 0;
    position: relative;
}
.cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-text { flex: 1 1 600px; }
.cta-section h2 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}
.cta-section h2 .cta-underline {
    display: block;
    width: 280px;
    max-width: 60%;
    height: 2px;
    background: rgba(255,255,255,0.6);
    margin-top: 10px;
}
.cta-section p {
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 700px;
    color: rgba(255,255,255,0.95);
    margin: 0;
}
.cta-btn-wrap { flex: 0 0 auto; }
.btn-cta {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.3s;
    text-decoration: none;
}
.btn-cta:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================================
   Footer (live site dark style with world-map vibe)
   ============================================================ */
.main-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
    position: relative;
    overflow: hidden;
}
.footer-logo {
    height: 46px; width: auto;
    background: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.main-footer::before {
    /* faint world map silhouette */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 60%, rgba(255,255,255,0.04) 0, transparent 30%),
                      radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0, transparent 40%),
                      radial-gradient(circle at 80% 65%, rgba(255,255,255,0.04) 0, transparent 30%);
    pointer-events: none;
}
.main-footer .container { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 0.9fr;
    gap: 50px;
    margin-bottom: 35px;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

/* Contact items */
.footer-contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: start;
}
.footer-icon {
    color: var(--primary);
    flex-shrink: 0;
    font-size: 1rem;
    width: 22px;
}
.footer-contact-item strong {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    margin-right: 8px;
    min-width: 60px;
}
.footer-contact-item a,
.footer-contact-item span {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
}
.footer-contact-item a:hover { color: var(--primary); }

/* Quick links */
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 14px; }
.footer-links ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
}
.footer-links ul li a:hover { color: var(--primary); padding-left: 5px; }

/* Social + PDF row */
.footer-social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 20px;
}
.footer-follow {
    display: flex;
    align-items: center;
    gap: 12px;
}
.follow-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    margin-right: 8px;
}
.social-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
}
.social-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}
.btn-pdf {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-pdf:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Footer bottom */
.footer-bottom {
    padding: 22px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-brand {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.footer-brand:hover { color: var(--white); }
.footer-bottom-nav { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-bottom-nav a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    text-decoration: none;
}
.footer-bottom-nav a:hover { color: var(--primary); }

/* ============================================================
   Alerts / messages
   ============================================================ */
.alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero { min-height: 560px; }
    .hero-content { padding: 70px 0; }
    .hero-arrow { width: 42px; height: 42px; font-size: 1.2rem; }
    .hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
    .logo img { height: 46px; }
    .about-section, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-social-row { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-nav { justify-content: center; }
    .cta-flex { flex-direction: column; align-items: flex-start; }
    .partner-card { grid-template-columns: 1fr; }
    .partner-card .partner-logo { width: 200px; }

    .mobile-toggle { display: block; }
    .main-nav {
        flex-basis: 100%;
        margin-top: 15px;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li { width: 100%; }
    .main-nav > ul > li > a { padding: 12px 15px; border-radius: 0; border-bottom: 1px solid var(--border); }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-gray);
        padding: 0;
        border-top: none;
    }
    .dropdown li a { padding-left: 35px; }
}

@media (max-width: 600px) {
    .top-bar-inner { font-size: 0.8rem; }
    .top-contact { gap: 10px; }
    .section { padding: 50px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-banner { padding: 50px 0 40px; }
    .page-banner h1 { font-size: 1.8rem; }
    .hero { min-height: 480px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-content { padding: 60px 0; }
    .hero-arrow { display: none; }
    .hero-cta .btn { padding: 11px 22px; font-size: 0.85rem; }
    .logo img { height: 40px; }
}

/* ================================================================
   EXACT HOMEPAGE MATCH (amgomed.org) — sections & overrides
   ================================================================ */
.eyebrow { display:block; text-transform:uppercase; letter-spacing:2px; font-size:0.8rem; font-weight:600; color:#9a9a9a; margin-bottom:14px; }
.eyebrow.magenta { color:var(--primary); }
.ttl-underline { position:relative; padding-bottom:16px; margin-bottom:22px; }
.ttl-underline::after { content:''; position:absolute; left:0; bottom:0; width:46px; height:3px; background:var(--primary); }
.btn-dark { background:#292929; border-color:#292929; color:#fff; }
.btn-dark:hover { background:transparent; color:#292929; border:2px solid #292929; }
.hex-deco { position:absolute; top:10px; left:0; width:340px; height:280px; background:url('../images/hex-pattern-light.png') left top/contain no-repeat; opacity:.55; pointer-events:none; z-index:1; }
.hex-deco.right { left:auto; right:0; }

/* HERO overrides — translucent dark panel, magenta 2nd line, uppercase */
.hero-content { background:linear-gradient(120deg, rgba(28,14,24,.42), rgba(28,14,24,.14)); padding:44px 48px 48px; max-width:640px; border-radius:2px; }
.hero-line { display:block; width:64px; height:3px; background:var(--primary); margin-bottom:22px; opacity:0; transform:translateY(18px); }
.hero-slide.active .hero-line { animation:heroUp .7s .04s ease forwards; }
.hero-subtitle { border-bottom:none; padding:0; margin-bottom:14px; font-size:0.8rem; letter-spacing:3px; }
.hero h1 { text-transform:uppercase; font-size:2.7rem; line-height:1.12; letter-spacing:.4px; margin-bottom:18px; }
.hero h1 .hero-highlight { color:#c96fac; }
.hero p { text-transform:none; font-size:1.03rem; opacity:.96; }
.hero-scroll { position:absolute; left:50%; margin-left:-13px; bottom:64px; z-index:6; display:none; }
.hero-scroll .mouse { display:block; width:26px; height:44px; border:2px solid rgba(255,255,255,.7); border-radius:14px; position:relative; }
.hero-scroll .mouse::before { content:''; position:absolute; left:50%; top:8px; width:4px; height:8px; margin-left:-2px; background:#fff; border-radius:2px; animation:scrollDot 1.5s infinite; }
@keyframes scrollDot { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(10px)} }
.hero-hex { position:absolute; left:0; right:0; bottom:0; height:64px; z-index:4; pointer-events:none; background:url('../images/hex-pattern.png') center bottom/auto 130px repeat-x; opacity:.22; }
@media (min-width:992px){ .hero-scroll{ display:block; } }

/* WHO WE ARE */
.wwa { position:relative; background:#f4f4f4; padding:80px 0; overflow:hidden; }
.wwa-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:60px; align-items:start; position:relative; z-index:2; }
.wwa-left h2 { font-size:1.85rem; line-height:1.4; color:#2b2b2b; font-weight:700; }
.wwa-right { padding-top:34px; }
.wwa-right p { color:#666; line-height:1.9; }

/* FOCUS BAND */
.focus-band { position:relative; background:#3a3f4c center/cover; }
.focus-band::before { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(60,66,80,.86) 0%, rgba(70,76,92,.66) 55%, rgba(28,28,28,.94) 72%); }
.focus-inner { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:30px; min-height:150px; }
.focus-text { display:flex; align-items:center; gap:18px; color:#fff; font-size:1.12rem; font-weight:500; background:rgba(0,0,0,.26); padding:20px 28px; max-width:720px; }
.focus-plus { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border:1px solid rgba(255,255,255,.5); font-size:1.2rem; flex-shrink:0; }
.focus-btn { flex-shrink:0; }
.focus-band::after { content:''; position:absolute; right:23%; top:22%; bottom:22%; width:2px; background:var(--primary); z-index:2; }

/* WHAT WE DO */
.wwd { background:#fff; padding:90px 0; }
.wwd-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.wwd-left p { color:#666; line-height:1.9; margin-bottom:16px; }
.wwd-list { list-style:none; margin:0 0 26px; padding:0; }
.wwd-list li { position:relative; padding-left:22px; margin-bottom:8px; color:#444; font-weight:600; }
.wwd-list li::before { content:''; position:absolute; left:0; top:9px; width:8px; height:8px; border-radius:50%; background:var(--primary); }
.wwd-right { position:relative; }
.wwd-accent { position:absolute; top:-18px; left:-18px; width:120px; height:120px; background:var(--primary); z-index:1; }
.wwd-img { position:relative; z-index:2; width:100%; height:430px; object-fit:cover; border-radius:2px; box-shadow:0 20px 50px rgba(0,0,0,.18); }

/* REDEFINING / PRODUCTS BAND */
.redef { position:relative; background:linear-gradient(120deg,#eef1f4,#f7eef3); padding:70px 0; overflow:hidden; }
.redef-grid { display:grid; grid-template-columns:0.85fr 1.15fr; gap:40px; align-items:center; }
.redef-line { display:block; width:46px; height:3px; background:var(--primary); margin-bottom:20px; }
.redef-left h2 { font-size:1.9rem; color:#2b2b2b; margin-bottom:16px; }
.redef-quote { font-style:italic; color:#555; font-size:1.05rem; margin-bottom:24px; }
.redef-banner { width:100%; height:auto; filter:drop-shadow(0 14px 26px rgba(0,0,0,.14)); }

/* WHY AMGOMED */
.why { position:relative; background:#f4f4f4; padding:84px 0; overflow:hidden; }
.why-grid { display:grid; grid-template-columns:0.9fr 1.1fr; gap:50px; align-items:start; position:relative; z-index:2; }
.why-left p { color:#666; line-height:1.9; }
.why-rule { display:block; width:100%; max-width:360px; height:1px; background:#d8d8d8; margin-top:26px; position:relative; }
.why-rule::after { content:''; position:absolute; right:0; top:-1px; width:70px; height:3px; background:var(--primary); }
.why-cards { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.why-card { position:relative; background:#fff; padding:28px 24px 24px; box-shadow:0 8px 28px rgba(0,0,0,.06); }
.why-card::before { content:''; position:absolute; top:0; right:0; width:34px; height:6px; background:var(--primary); }
.why-ic { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; background:var(--primary); color:#fff; font-size:1.4rem; margin-bottom:16px; }
.why-card h4 { font-size:1.15rem; color:#2b2b2b; margin-bottom:10px; }
.why-card p { color:#777; font-size:0.92rem; line-height:1.7; margin-bottom:14px; }
.why-card .read-more { color:#2b2b2b; font-weight:600; font-size:0.9rem; }
.why-card .read-more:hover { color:var(--primary); }

/* FIGHT THE FIGHT BAND */
.fight { position:relative; background:#cfcfcf center/cover; padding:90px 0; }
.fight::before { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(244,244,244,.95) 0%, rgba(244,244,244,.55) 46%, rgba(244,244,244,.1) 72%); }
.fight-grid { position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.fight-left h2 { font-size:2rem; color:#2b2b2b; line-height:1.25; }
.fight-right { position:relative; padding-top:10px; }
.fight-line { display:block; width:100%; height:1px; background:rgba(0,0,0,.22); margin-bottom:20px; position:relative; }
.fight-line::after { content:''; position:absolute; right:0; top:-.5px; width:80px; height:2px; background:var(--primary); }
.fight-right p { color:#333; font-weight:600; line-height:1.8; font-size:0.98rem; }
.fight-right strong { color:#2b2b2b; }

/* BUSINESS RELATIONSHIP band (footer CTA) -> magenta */
.cta-section { background:var(--primary); color:#fff; padding:66px 0; }
.cta-section h2 { color:#fff; }
.cta-text p { color:rgba(255,255,255,.94); }
.cta-underline { background:#fff !important; }
.btn-cta { background:#292929; color:#fff; border:2px solid #292929; padding:14px 32px; font-weight:600; border-radius:4px; text-transform:uppercase; letter-spacing:.5px; }
.btn-cta:hover { background:transparent; color:#fff; border-color:#fff; }

/* footer column titles */
.footer-title { color:#fff; font-size:1rem; text-transform:uppercase; letter-spacing:1px; margin-bottom:18px; position:relative; padding-bottom:12px; }
.footer-title::after { content:''; position:absolute; left:0; bottom:0; width:40px; height:2px; background:var(--primary); }

/* homepage responsive */
@media (max-width:991px){
  .wwa-grid,.wwd-grid,.redef-grid,.why-grid,.fight-grid { grid-template-columns:1fr; gap:34px; }
  .wwa-right{ padding-top:0; }
  .focus-inner{ flex-direction:column; align-items:flex-start; padding:26px 0; }
  .focus-band::after{ display:none; }
  .hero-content{ padding:32px 28px; max-width:100%; }
  .hero h1{ font-size:2rem; }
}
@media (max-width:600px){
  .why-cards { grid-template-columns:1fr; }
  .wwa-left h2,.fight-left h2{ font-size:1.5rem; }
  .wwd-accent{ width:80px; height:80px; top:-12px; left:-12px; }
  .wwd-img{ height:280px; }
  .hero-content{ background:rgba(28,14,24,.52); }
}

/* header / nav — exact-match tweaks */
.top-bar { background:var(--primary); }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.main-nav > ul > li > a { text-transform:uppercase; letter-spacing:.6px; font-size:0.82rem; font-weight:600; color:#3a3a3a; }
.main-nav > ul > li.active > a, .main-nav > ul > li > a:hover { color:var(--primary); background:transparent; }
.header-search { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; color:#3a3a3a; font-size:1rem; border-left:1px solid #e6e6e6; padding-left:14px; flex-shrink:0; }
.header-search:hover { color:var(--primary); }
@media (max-width:991px){ .header-search{ display:none; } }

/* ============================================================
   INNER PAGES  (banners, CMS pages, products, directors,
   partners, careers, contact)  — matches real amgomed.org
   ============================================================ */

/* ---- Banner (left-aligned, per-page background via --banner-img) ---- */
.page-banner {
    position: relative;
    background: linear-gradient(90deg, rgba(20,16,20,.86) 0%, rgba(20,16,20,.55) 42%, rgba(20,16,20,.18) 72%, rgba(20,16,20,.05) 100%),
        var(--banner-img, url('../images/hero-dna-bg.jpg')) center/cover no-repeat;
    color: #fff;
    padding: 92px 0 74px;
    text-align: left;
    overflow: hidden;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
    color: #fff; font-size: 2.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0 0 16px; max-width: 760px; line-height: 1.12;
}
.page-banner p { color: rgba(255,255,255,.92); font-size: 1.02rem; max-width: 620px; margin: 0; line-height: 1.7; }
.pb-line { display: block; width: 64px; height: 3px; background: var(--primary); margin-bottom: 22px; }
.page-banner-dark {
    background: linear-gradient(100deg, rgba(10,20,34,.90), rgba(14,42,48,.82)),
        var(--banner-img, linear-gradient(120deg,#122436,#0d3b40)) center/cover no-repeat;
}

/* ---- CMS page two-column layout ---- */
.page-layout { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: start; }
.page-body.has-aside .page-layout { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
.page-body:not(.has-aside) .page-main { max-width: 980px; }
.page-main .eyebrow { color: #8a8a8a; }
.page-main .ttl-underline { font-size: 2rem; color: var(--dark); }

.page-aside { position: relative; }
.aside-frame { position: relative; margin-top: 18px; }
.aside-frame::before { content: ''; position: absolute; left: 0; top: -18px; width: 58%; height: 74px; background: var(--primary); z-index: 0; }
.aside-frame img { position: relative; z-index: 1; width: 100%; display: block; box-shadow: 0 18px 40px rgba(0,0,0,.14); }

.cp-box { position: relative; z-index: 2; width: 78%; margin: -90px 0 0 auto; background: var(--primary); color: #fff; padding: 26px 28px 34px; box-shadow: 0 20px 44px rgba(0,0,0,.22); }
.cp-box h3 { color: #fff; font-size: 1.35rem; margin: 0 0 12px; }
.cp-box p { color: rgba(255,255,255,.94); font-size: .92rem; line-height: 1.6; margin: 0 0 12px; }
.cp-box-kick { font-weight: 700; letter-spacing: .5px; font-size: .85rem; }
.cp-quote { position: absolute; right: 22px; bottom: 6px; font-size: 2.6rem; line-height: 1; color: rgba(255,255,255,.75); font-family: Georgia, serif; }

/* ---- Content typography (used by CMS pages + product details) ---- */
.content-area .cp-sub { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 26px 0 10px; }
.content-area p { color: #5f6368; line-height: 1.85; margin: 0 0 16px; font-size: .98rem; }
.content-area ul.cp-list { list-style: none; margin: 0 0 16px; padding: 0; }
.content-area ul.cp-list li { position: relative; padding-left: 22px; color: #5f6368; line-height: 1.7; margin-bottom: 8px; }
.content-area ul.cp-list li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.content-area ul.cp-list li strong { color: var(--dark); }
.br-h { color: var(--primary); font-size: 1.5rem; margin: 34px 0 14px; }
.br-contact { background: var(--light-gray); border-left: 4px solid var(--primary); padding: 26px 28px; margin-top: 28px; }
.br-contact h4 { color: var(--primary); font-size: 1.02rem; margin: 0 0 14px; }
.br-contact p { margin: 0 0 8px; font-size: .94rem; color: #555; }
.br-join { color: var(--primary) !important; font-weight: 600; margin-top: 14px !important; }

/* ---- Buttons ---- */
.btn-sm { padding: 9px 20px; font-size: .82rem; }
.btn-teal { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-teal:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---- Products page (grid + sidebar) ---- */
.products-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: start; }
.products-main .product-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.05); overflow: hidden; }
.product-card .product-image { background: linear-gradient(165deg, #f6f6f7 0%, #f4edf1 100%); aspect-ratio: 900 / 624; height: auto; display: block; padding: 0; overflow: hidden; }
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { padding: 22px; }
.product-info::before { content: ''; display: block; width: 44px; height: 5px; background: var(--primary); margin-bottom: 16px; }
.product-info h3 { font-size: 1.12rem; margin: 0 0 12px; }
.product-info h3 a { color: var(--dark); }
.product-info h3 a:hover { color: var(--primary); }
.product-info p { color: #6a6a6a; font-size: .92rem; line-height: 1.6; margin: 0 0 18px; }

.products-aside { background: #fff; border: 1px solid var(--border); align-self: start; }
.prod-side-head { display: flex; justify-content: space-between; align-items: center; background: var(--primary); color: #fff; padding: 16px 20px; font-weight: 700; }
.prod-side-head:hover { color: #fff; }
.prod-side-list { list-style: none; margin: 0; padding: 0; }
.prod-side-list li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--border); color: #444; font-size: .9rem; }
.prod-side-list li a:hover { background: var(--primary-light); color: var(--primary); }
.prod-side-list li.active a { background: var(--primary); color: #fff; }
.prod-side-list li.all a { font-weight: 600; }
.prod-side-list li a span { opacity: .55; }
.prod-side-pdf { padding: 20px; }
.prod-side-pdf .eyebrow { margin-bottom: 10px; }
.btn-pdf { display: flex; align-items: center; gap: 8px; background: var(--dark); color: #fff; padding: 14px 16px; font-size: .82rem; font-weight: 600; }
.btn-pdf:hover { background: var(--primary); color: #fff; }

/* ---- Product detail ---- */
.pd-image { background: #f0f0f0; aspect-ratio: 900 / 624; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-image .placeholder { font-size: 5rem; }
.pd-details { background: #fff; padding: 30px; }
.pd-name { color: var(--primary); font-size: 1.3rem; margin: 0 0 18px; }
.pd-details h4 { font-size: 1rem; color: var(--dark); margin: 18px 0 10px; }
.pd-details ul { list-style: none; margin: 0 0 16px; padding: 0; }
.pd-details ul li { position: relative; padding-left: 22px; color: #5f6368; line-height: 1.7; margin-bottom: 8px; font-size: .94rem; }
.pd-details ul li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.pd-details ul li strong, .pd-details p strong { color: var(--dark); }
.pd-details p { color: #5f6368; margin: 0 0 8px; font-size: .94rem; }
.pd-info { display: block; width: 100%; text-align: center; margin-top: 22px; }

.promise-band { background: #2b2b2b; color: #fff; padding: 30px 0; }
.promise-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.promise-band .pb-line { margin-bottom: 10px; }
.promise-band h3 { color: #fff; margin: 0; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px; }
.promise-band .btn { background: var(--primary); border-color: var(--primary); color: #fff; }
.promise-band .btn:hover { background: #fff; color: var(--primary); }

/* ---- Directors (text cards) ---- */
.director-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.director-card { position: relative; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.05); padding: 34px 34px 30px; text-align: left; }
.director-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); transform: none; }
.dir-num { position: absolute; top: 0; right: 0; padding: 8px 14px; font-size: .8rem; color: #bbb; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.director-card h3 { font-size: 1.2rem; color: var(--dark); margin: 0 0 12px; }
.dir-rule { display: block; width: 40px; height: 2px; background: var(--primary); margin-bottom: 16px; }
.director-card p { color: #6a6a6a; font-size: .93rem; line-height: 1.75; margin: 0; }

/* ---- Partners ---- */
.partner-list { display: flex; flex-direction: column; }
.partner-item { padding: 26px 0 30px; border-bottom: 1px solid var(--border); }
.partner-item:last-child { border-bottom: none; }
.partner-head { display: flex; align-items: center; gap: 30px; margin-bottom: 16px; }
.partner-logo { width: 210px; min-width: 210px; height: 112px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 14px; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-name-fallback { font-weight: 700; color: var(--primary); font-size: 1.1rem; text-align: center; }
.partner-title { font-size: 1.18rem; font-weight: 700; color: var(--dark); margin: 0; line-height: 1.4; }
.partner-title .psep { color: #c4c4c4; font-weight: 400; margin: 0 8px; }
.partner-title .pcountry { color: var(--dark); }
.partner-desc { color: #5f6368; line-height: 1.8; font-size: .95rem; margin: 0 0 12px; }
.partner-web { display: inline-block; color: var(--accent); font-weight: 500; font-size: .92rem; text-decoration: none; }
.partner-web:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .partner-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .partner-logo { width: 100%; min-width: 0; }
}

/* ---- Careers / Vacancy ---- */
.vacancy-title { color: var(--primary); font-size: 2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 26px; }
.vacancy-desc { max-width: none; margin-bottom: 44px; }
.vacancy-desc .cp-sub { margin-top: 0; }
.vacancy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; margin-bottom: 40px; }
.vacancy-card { position: relative; display: block; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.05); padding: 32px 32px 30px; }
.vacancy-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.vac-num { position: absolute; top: 0; right: 0; padding: 8px 14px; font-size: .8rem; color: #bbb; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vac-icon { color: var(--primary); display: block; margin-bottom: 14px; }
.vac-rule { display: block; width: 40px; height: 2px; background: var(--primary); margin-bottom: 16px; }
.vacancy-card h3 { color: var(--dark); font-size: 1.15rem; margin: 0 0 12px; }
.vac-loc { font-weight: 600; color: #555; font-size: .95rem; }
.vac-more { color: var(--primary); font-weight: 600; font-size: .9rem; }
.vacancy-foot { color: #6a6a6a; line-height: 1.8; font-size: .95rem; margin: 0 0 16px; max-width: 1000px; }
.vacancy-cta { text-align: center; margin-top: 30px; }
.vacancy-cta .btn { background: var(--primary); border-color: var(--primary); color: #fff; }
.vacancy-cta .btn:hover { background: var(--primary-dark); }

/* ---- Contact ---- */
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-bottom: 34px; }
.contact-card { position: relative; display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.05); padding: 26px 24px; }
.cc-icon { flex: 0 0 auto; width: 46px; height: 46px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border-radius: 4px; }
.cc-body h4 { text-transform: uppercase; font-size: .95rem; color: var(--dark); margin: 0 0 10px; letter-spacing: .3px; }
.cc-body p { color: #6a6a6a; font-size: .9rem; line-height: 1.6; margin: 0 0 8px; }
.cc-body a { color: var(--accent); }
.contact-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.contact-actions .btn-dark { flex: 0 0 auto; }
.contact-note { color: #6a6a6a; font-size: .95rem; flex: 1; min-width: 200px; }
.find-us { display: flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 700; letter-spacing: 1px; color: #777; text-transform: uppercase; }
.soc { width: 34px; height: 34px; background: #3a3a3a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-transform: lowercase; }
.soc:hover { background: var(--primary); color: #fff; }
.contact-loc-title { color: var(--primary); font-size: 1.05rem; margin: 0; }
.contact-map { margin: 16px 0 40px; }
.contact-map iframe { display: block; width: 100%; }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.05); padding: 36px; max-width: 900px; }
.contact-form-wrap h3 { margin: 0 0 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Inner-page responsive ---- */
@media (max-width: 900px) {
    .page-body.has-aside .page-layout,
    .products-layout { grid-template-columns: 1fr; }
    .products-main .product-grid,
    .director-grid, .vacancy-grid, .contact-cards { grid-template-columns: 1fr; }
    .partner-card { grid-template-columns: 1fr; text-align: center; }
    .partner-card .partner-logo { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 16px; justify-content: center; }
    .cp-box { width: 100%; margin: -60px 0 0; }
    .aside-frame::before { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 1.9rem; }
    .promise-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HOMEPAGE POPUP BOX  (admin-controlled: enable / timer / image)
   ============================================================ */
.popup-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,14,20,.72); opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup-overlay.closing { opacity: 0; }
.popup-box { position: relative; background: #fff; border-radius: 6px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: 36px 30px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.2,.8,.2,1); text-align: center; }
.popup-overlay.open .popup-box { transform: translateY(0) scale(1); }
.popup-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: none; background: transparent; color: #333; font-size: 1.9rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: background .2s, color .2s; }
.popup-close:hover { background: var(--primary-light); color: var(--primary); }
.popup-imglink { display: block; }
.popup-img { display: block; width: 100%; height: auto; border-radius: 4px; }
.popup-caption { margin: 16px 0 4px; font-size: 1.05rem; color: var(--dark); font-weight: 500; line-height: 1.5; }
.popup-timer { margin: 14px 0 0; font-size: .9rem; color: #8a8a8a; }
@media (max-width: 600px) { .popup-box { padding: 30px 16px 18px; } .popup-close { top: 6px; right: 8px; } }

/* ============================================================
   CANDIDATE APPLICATION FORM  (apply.php)
   ============================================================ */
.af-wrap { max-width: 1200px; margin: 0 auto; }
.app-form .af-section { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 24px 26px 26px; margin-bottom: 24px; }
.app-form legend { font-size: 1.12rem; font-weight: 700; color: var(--primary); padding: 0 10px; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.af-full { grid-column: 1 / -1; }
.af-field { display: flex; flex-direction: column; }
.af-field label { font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.af-field input, .af-field select, .af-field textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: .92rem; font-family: inherit; background: #fff; color: var(--dark); }
.af-field input:focus, .af-field select:focus, .af-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.af-field textarea { resize: vertical; min-height: 72px; }
.af-field .req { color: var(--accent-red); }
.af-hint { font-size: .76rem; color: #999; margin-top: 5px; }
.af-repeat { position: relative; border: 1px dashed var(--border); border-radius: 6px; padding: 18px 20px 6px 44px; margin-bottom: 14px; }
.af-repeat-num { position: absolute; left: 14px; top: 16px; width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.af-check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--dark); cursor: pointer; }
.af-check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--primary); }
.af-submit { text-align: center; margin-top: 6px; }
.af-submit .btn { padding: 14px 46px; font-size: 1rem; }
.af-success { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 52px 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.af-success h2 { color: var(--accent); margin: 0 0 14px; }
.af-success p { color: #5f6368; max-width: 560px; margin: 0 auto 24px; line-height: 1.7; }
@media (max-width: 640px) { .af-grid { grid-template-columns: 1fr; } .app-form .af-section { padding: 18px 16px 20px; } }

/* ============================================================
   MULTI-STEP APPLICATION WIZARD  (apply.php)
   ============================================================ */
.wiz-progress { display: flex; gap: 6px; margin-bottom: 32px; }
.wiz-seg { flex: 1; height: 4px; border-radius: 3px; background: #e2e2e2; transition: background .3s; }
.wiz-seg.done { background: var(--primary); }
.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wizfade .25s ease; }
@keyframes wizfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.af-block-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 28px 0 18px; }
.wiz-step > .af-block-title:first-child { margin-top: 0; }

/* Name (First / Last) */
.af-name { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af-name input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: .92rem; font-family: inherit; }
.af-name small { display: block; color: #999; font-size: .78rem; margin-top: 4px; }

/* Radios */
.af-radios { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 6px; }
.af-radio { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .92rem; color: var(--dark); cursor: pointer; }
.af-radio input { width: 16px; height: 16px; accent-color: var(--primary); }

/* DD / MM / YYYY groups */
.af-dmy { display: flex; gap: 8px; }
.af-dmy select { flex: 1; min-width: 0; padding: 10px 6px; border: 1px solid var(--border); border-radius: 5px; font-size: .9rem; font-family: inherit; background: #fff; }

/* Repeat blocks: column headers once, then input rows */
.af-rep { margin-bottom: 6px; }
.af-rep-head, .af-rep-row { display: grid; grid-template-columns: repeat(var(--rep-cols, 4), minmax(0, 1fr)); gap: 14px; }
.af-rep-head { margin-bottom: 8px; }
.af-rep-h { font-size: .85rem; font-weight: 600; color: var(--dark); }
.af-rep-row { margin-bottom: 12px; }
.af-cell input, .af-cell select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: .92rem; font-family: inherit; background: #fff; }
.af-cell .af-dmy select { padding: 10px 5px; }
.af-cell-label { display: none; font-size: .82rem; font-weight: 600; color: var(--dark); margin-bottom: 5px; }

/* Wizard navigation */
.wiz-nav { display: flex; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.wiz-nav .btn { padding: 11px 32px; }

@media (max-width: 700px) {
    .af-rep-head { display: none; }
    .af-rep-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
    .af-cell-label { display: block; }
    .af-name { grid-template-columns: 1fr; }
}

/* Native date inputs match the other form controls */
.af-field input[type="date"], .af-cell input[type="date"] { min-height: 44px; }

/* Date-or-Continue field (date input + "Continue/present" checkbox) */
.af-datecur { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.af-datecur input[type="date"] { flex: 0 1 220px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 5px; font-family: inherit; font-size: .92rem; background: #fff; }
.af-datecur input[type="date"]:disabled { background: #f2f2f2; color: #aaa; }
.af-cur { display: flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--dark); white-space: nowrap; cursor: pointer; }
.af-cur input { width: 16px; height: 16px; accent-color: var(--primary); }
