/* ============================================================
   Operation Promises - LTR English theme overrides
   Built on top of the shared charity/NGO template (custom.css)
   Accent colour: #ff5e3a
   ============================================================ */

:root {
    --op-accent: #ff5e3a;
    --op-dark: #18151f;
}

body {
    color: #4d4d4d;
    direction: ltr;
    text-align: left;
}

/* Override RTL heading direction inherited from the Farsi template (custom.css) */
h1, h2, h3, h4, h5, h6 {
    direction: ltr !important;
    text-align: left;
}

/* Keep intentionally centred headings centred */
.op-page-header h1,
.op-page-header p,
.op-hero h1,
.op-hero p,
.op-cta h2,
.op-cta p,
.text-center h1,
.text-center h2,
.text-center h3,
.text-center p {
    text-align: center !important;
}

/* Footer column headings — left aligned for LTR */
.footer-links h3,
.footer-contact h3,
.about-footer h3 {
    text-align: left !important;
    direction: ltr !important;
}

.footer-links ul {
    text-align: left;
    padding-left: 20px;
    padding-right: 0;
}

/* ---------- Main nav link colours (fix invisible active item) ---------- */
/* The base theme has no .active style, so Bootstrap's default dark active
   colour blends into the dark header. Force white base + accent active/hover. */
.main-header .navbar-nav .nav-link,
.main-menu ul li a {
    color: #fff !important;
}

.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link:focus,
.main-header .navbar-nav .nav-link.active,
.main-menu ul li a:hover,
.main-menu ul li a:focus {
    color: var(--op-accent) !important;
}

/* Dropdown items keep white text (orange background on hover handled by theme) */
.navbar-nav .nav-item.submenu ul li a {
    color: #fff !important;
}

/* ---------- Generic page header (dark hero band) ---------- */
.op-page-header {
    position: relative;
    padding: 150px 0 110px;
    background: radial-gradient(circle at top right, rgba(255, 94, 58, 0.35), transparent 55%),
                linear-gradient(135deg, #18151f, #241c2e 55%, #3f2648);
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.op-page-header::before {
    content: "";
    position: absolute;
    inset: auto -180px -220px auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    filter: blur(2px);
    opacity: 0.85;
}

.op-page-header .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 20px;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.op-page-header h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 18px;
    color: #fff !important;
}

.op-page-header p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 2rem;
    color: rgba(255, 255, 255, 0.88);
}

/* ---------- Hero (home) ---------- */
.op-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(rgba(24,21,31,0.65), rgba(24,21,31,0.78)),
                url('/website-images/home-hero.jpg') center center / cover no-repeat;
}

.op-hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 20px;
}

.op-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1.2;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.op-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    line-height: 2rem;
    margin-bottom: 34px;
}

.op-hero .btn-default + .btn-default { margin-left: 14px; }

@media (max-width: 575px) {
    .op-hero h1 { font-size: 2.2rem; }
    .op-hero .btn-default { display: block; margin: 10px auto; width: 80%; }
    .op-hero .btn-default + .btn-default { margin-left: auto; }
}

/* ---------- Generic content section ---------- */
.op-section { padding: 90px 0; }
.op-section.bg-light-soft { background: #f8f8fb; }

.op-section h2 {
    font-weight: 800;
    color: var(--op-dark);
    margin-bottom: 22px;
    font-size: 2.2rem;
    text-align: left !important;
    direction: ltr !important;
}

.op-section p { font-size: 1.05rem; line-height: 1.95rem; color: #5a5766; }

.op-lead { font-size: 1.2rem !important; line-height: 2.1rem !important; color: #3a3744 !important; }

/* ---------- Focus / feature cards ---------- */
.op-card {
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px;
    height: 100%;
    box-shadow: 0 2px 14px rgba(24, 21, 31, 0.06);
    border: 1px solid rgba(24, 21, 31, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.op-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(255, 94, 58, 0.16);
    border-color: rgba(255, 94, 58, 0.3);
}

.op-card .op-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--op-accent);
    background: linear-gradient(135deg, rgba(255, 94, 58, 0.12), rgba(255, 120, 84, 0.08));
    margin-bottom: 20px;
}

.op-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--op-dark); margin-bottom: 12px; }
.op-card p { font-size: 1rem; line-height: 1.8rem; margin: 0; }

/* ---------- Image helpers ---------- */
.op-rounded-img { border-radius: 18px; box-shadow: 0 18px 50px rgba(24,21,31,0.18); width: 100%; height: auto; }

/* ---------- CTA band ---------- */
.op-cta {
    background: linear-gradient(135deg, #18151f, #241c33 60%, #ff5e3a);
    border-radius: 0;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.op-cta h2 { color: #fff; font-weight: 800; margin-bottom: 16px; }
.op-cta p { color: rgba(255,255,255,0.9); max-width: 680px; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---------- Story cards (stories index) ---------- */
.op-story-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(24,21,31,0.08);
    transition: all 0.35s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.op-story-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(24,21,31,0.18); color: inherit; text-decoration: none; }
.op-story-card .img-wrap { height: 300px; overflow: hidden; background: #18151f; }
.op-story-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.op-story-card:hover .img-wrap img { transform: scale(1.06); }
.op-story-card .body { padding: 26px 24px; }
.op-story-card .body h3 { font-weight: 700; color: var(--op-dark); margin-bottom: 8px; }
.op-story-card .body span { color: var(--op-accent); font-weight: 600; }

/* ---------- Single story / testimony layout ---------- */
.op-story-body { padding: 80px 0; background: #f8f8fb; }
.op-story-body .story-portrait { border-radius: 18px; width: 100%; height: auto; box-shadow: 0 18px 50px rgba(24,21,31,0.2); margin-bottom: 30px; }
.op-story-content { background: #fff; border-radius: 20px; padding: 48px; box-shadow: 0 2px 14px rgba(24,21,31,0.05); }
.op-story-content h2 { font-weight: 800; color: var(--op-dark); margin-bottom: 10px; font-size: 2rem; }
.op-story-content .subtitle { color: var(--op-accent); font-weight: 600; font-style: italic; margin-bottom: 26px; display: block; }
.op-story-content p { font-size: 1.08rem; line-height: 2.05rem; color: #4d4a57; margin-bottom: 20px; }

@media (max-width: 575px) {
    .op-story-content { padding: 30px 22px; }
    .op-page-header h1 { font-size: 2.2rem; }
}

/* ---------- Partners ---------- */
.op-partner-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(24,21,31,0.07);
    box-shadow: 0 2px 12px rgba(24,21,31,0.05);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--op-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.op-partner-link:hover { transform: translateY(-4px); border-color: rgba(255,94,58,0.35); color: var(--op-accent); box-shadow: 0 12px 30px rgba(255,94,58,0.15); text-decoration: none; }
.op-partner-link i { color: var(--op-accent); }

/* ---------- Donate ---------- */
.op-donate-embed {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(24,21,31,0.1);
    overflow: hidden;
    padding: 10px;
}
.op-donate-embed iframe { width: 100%; min-height: 900px; border: 0; display: block; }

.op-gallery-img { border-radius: 14px; width: 100%; height: 220px; object-fit: cover; box-shadow: 0 6px 20px rgba(24,21,31,0.12); }

/* ---------- Contact ---------- */
.op-contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(24,21,31,0.06);
}
.op-contact-card .form-control {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(24,21,31,0.12);
    margin-bottom: 4px;
}
.op-contact-card .form-control:focus { border-color: var(--op-accent); box-shadow: 0 0 0 0.15rem rgba(255,94,58,0.15); }

.op-alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #1e7e34;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.op-alert-error {
    background: rgba(255, 94, 58, 0.08);
    border: 1px solid rgba(255, 94, 58, 0.35);
    color: #c23b1c;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.op-contact-side {
    background: linear-gradient(135deg, #18151f, #241c2e 60%, #3f2648);
    color: #fff;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
}
.op-contact-side h3 { color: #fff; font-weight: 700; margin-bottom: 20px; }
.op-contact-side a { color: #fff; }
.op-contact-side .op-contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 1.05rem; }
.op-contact-side .op-contact-item i { color: var(--op-accent); font-size: 1.3rem; width: 28px; text-align: center; }
.op-contact-side .op-social a {
    display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.12); align-items: center; justify-content: center;
    margin-right: 10px; color: #fff; transition: all 0.3s ease;
}
.op-contact-side .op-social a:hover { background: var(--op-accent); transform: translateY(-3px); }
