/* ============================================================
   Professional polish layer for the public website.
   Loaded after styles.css; only refines look & feel, no layout
   structure changes so existing functionality stays intact.
   ============================================================ */

:root {
    /* ===== TLP flag palette (green + gold) ===== */
    --tlp-green: #0b6b2e;        /* primary deep Islamic green */
    --tlp-green-dark: #073d1b;   /* darkest green */
    --tlp-green-bright: #1e9e44; /* bright green */
    --tlp-gold: #c9a227;         /* flag gold */
    --tlp-gold-light: #e3c14e;   /* light gold */
    --tlp-gold-dark: #9c7d18;

    --tlp-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
    --tlp-shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .06);
    --tlp-shadow-lg: 0 12px 28px rgba(16, 24, 40, .12);
    --tlp-radius: 12px;
    --tlp-transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ===== TLP flag theme: green primary + gold accent (site-wide) ===== */
/* Section subtitle ("Tehreek Labbaik Pakistan") in gold */
.section-header p { color: var(--tlp-gold-dark) !important; font-weight: 600; }
/* Headings stay deep green */
.section-header h2 { color: var(--tlp-green) !important; }
/* Primary buttons -> green->green gradient with gold focus ring */
.btn-primary, .btn-success {
    background: linear-gradient(135deg, var(--tlp-green-bright), var(--tlp-green)) !important;
    border-color: var(--tlp-green) !important;
}
.btn-primary:hover, .btn-success:hover { filter: brightness(1.06); }
/* Gold underline accent on section headers */
.section-header h2::after {
    content: ""; display: block; width: 70px; height: 4px; margin: 12px auto 0;
    border-radius: 4px; background: linear-gradient(90deg, var(--tlp-green-bright), var(--tlp-gold));
}
/* Links hover gold-green */
a { transition: color .2s ease; }
::selection { background: var(--tlp-gold); color: #1a1a1a; }

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Crisper, consistent imagery */
img {
    image-rendering: auto;
    max-width: 100%;
    height: auto;
}

/* Card / box hover lift */
.service-item,
.portfolio-item,
.team .member,
.card,
.feature-box {
    border-radius: var(--tlp-radius);
    box-shadow: var(--tlp-shadow-sm);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
    will-change: transform;
}

.service-item:hover,
.portfolio-item:hover,
.team .member:hover,
.card:hover,
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--tlp-shadow-lg);
}

/* Buttons: smoother interaction */
.btn,
.btn-get-started,
button {
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition), background-color var(--tlp-transition);
}

.btn:hover,
.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: var(--tlp-shadow-md);
}

.btn:active,
.btn-get-started:active {
    transform: translateY(0);
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #198754;
    outline-offset: 2px;
}

/* Form controls polish */
.form-control,
.form-select {
    border-radius: 10px;
    transition: border-color var(--tlp-transition), box-shadow var(--tlp-transition);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .15);
}

/* Sticky header subtle depth when scrolled */
#header.sticked,
.sticky-menu.sticked {
    box-shadow: var(--tlp-shadow-md);
    backdrop-filter: saturate(180%) blur(6px);
}

/* ---- Portfolio: uniform professional cards ---- */
.portfolio .portfolio-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--tlp-shadow-md);
    background: #fff;
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}

.portfolio .portfolio-wrap:hover {
    transform: translateY(-5px);
    box-shadow: var(--tlp-shadow-lg);
}

.portfolio .portfolio-wrap a {
    display: block;
    overflow: hidden;
}

.portfolio .portfolio-wrap img {
    width: 100%;
    height: 240px;          /* uniform height fixes the masonry/lazy overlap */
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.portfolio .portfolio-wrap:hover img {
    transform: scale(1.06);
}

@media (max-width: 575.98px) {
    .portfolio .portfolio-wrap img { height: 200px; }
}

/* ---- Team / Consultation members: uniform cards ---- */
.team .testimonial-wrap {
    height: 100%;
}

.team .member {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: var(--tlp-shadow-sm);
    padding: 22px 18px;
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}

.team .member:hover {
    transform: translateY(-5px);
    box-shadow: var(--tlp-shadow-lg);
}

.team .member .member-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 4px solid #fff;
    outline: 1px solid #e6e9f0;
    box-shadow: var(--tlp-shadow-sm);
    margin-bottom: 16px;
    background: #ffffff;
}
/* Leadership profile + shuhada photos: white standard frame too */
.profile-photo, .shaheed-photo img { background: #fff; object-position: top center; }

.team .member h4 {
    margin: 0 0 4px;
    font-weight: 700;
    color: #0b6b2e;
    text-align: center;
}

.team .member span {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    margin-bottom: 12px;
}

.team .member .social {
    margin-top: auto;
}

/* ---- Services: consistent themed icon badges + uniform cards ---- */
#services .row { align-items: stretch; }

#services .icon-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: var(--tlp-shadow-sm);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}

#services .icon-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--tlp-shadow-lg);
}

#services .icon-box .icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(40,167,69,.12), rgba(11,107,46,.12));
    border: 1px solid rgba(40,167,69,.22);
    transition: transform var(--tlp-transition);
}

#services .icon-box:hover .icon {
    transform: scale(1.06);
}

/* Force every uploaded icon to render at the same size inside the badge */
#services .icon-box .icon img {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain;
    display: block;
}

#services .icon-box .title { margin-bottom: 8px; }
#services .icon-box .title a { color: #0b6b2e; font-weight: 700; }
#services .icon-box p { color: #475467; margin: 0; }

/* ---- Why Choose Us (Featured): themed icon badges ---- */
#featured .list-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

#featured .list-wrap .icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(40,167,69,.12), rgba(11,107,46,.12));
    border: 1px solid rgba(40,167,69,.22);
}

#featured .list-wrap .icon img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain;
    display: block;
}

#featured .center-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

#featured .center-icon img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#featured .list-wrap h4 { color: #0b6b2e; font-weight: 700; margin-bottom: 6px; }
#featured .list-wrap p { color: #475467; margin: 0; }

/* Respect reduced motion preferences */
/* ---- Header buttons: language toggle + contact (consistent, professional) ---- */
#header .d-flex #lang-toggle,
#header .d-flex .btn-get-started {
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 24px !important;
    border-radius: 26px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: .2px;
    line-height: 1 !important;
    margin: 0 0 0 10px !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
    white-space: nowrap;
}

/* Contact button: solid brand green */
#header .btn-get-started {
    background: linear-gradient(135deg, #28a745, #0b6b2e) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(11,107,46,.28);
}
#header .btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11,107,46,.38);
    filter: brightness(1.05);
}

/* Language toggle: clean outlined style to differentiate */
#header #lang-toggle {
    background: #fff !important;
    color: #0b6b2e !important;
    border: 2px solid #0b6b2e !important;
}
#header #lang-toggle:hover {
    background: #0b6b2e !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11,107,46,.3);
}

@media (max-width: 575.98px) {
    #header .d-flex #lang-toggle,
    #header .d-flex .btn-get-started { height: 38px; padding: 0 16px !important; font-size: 13px !important; }
}

/* ---- Professional hero social icons ---- */
.hero .social {
    display: flex;
    gap: 12px;
    margin: 8px 0 22px;
}

.hero .social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(4px);
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
    transition: transform var(--tlp-transition), background-color var(--tlp-transition), box-shadow var(--tlp-transition);
}

.hero .social a i { color: #fff; }

.hero .social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.hero .social a:hover .bi-youtube,
.hero .social a:hover.has-yt { color: #fff; }
.hero .social a:has(.bi-youtube):hover  { background: #ff0000; border-color: #ff0000; }
.hero .social a:has(.bi-facebook):hover { background: #1877f2; border-color: #1877f2; }
.hero .social a:has(.bi-linkedin):hover { background: #0a66c2; border-color: #0a66c2; }
.hero .social a:has(.bi-twitter):hover  { background: #111; border-color: #111; }

/* ---- About section professional card ---- */
.about-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: var(--tlp-shadow-md);
    padding: 24px;
    overflow: hidden;
}

.about-card .about-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: var(--tlp-shadow-sm);
}

.about-card-title {
    color: #0b6b2e;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.35;
}

.about-divider {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--tlp-green-bright), var(--tlp-gold));
    margin-bottom: 16px;
}

.about-desc {
    color: #475467;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
}

@media (max-width: 767.98px) {
    .about-card .about-img { height: 220px; }
}

/* ---- Blogs / Recent posts: uniform cards ---- */
.recent-posts .row { align-items: stretch; }

.recent-posts article {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--tlp-shadow-sm);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}

.recent-posts article:hover {
    transform: translateY(-5px);
    box-shadow: var(--tlp-shadow-lg);
}

.recent-posts .post-img {
    overflow: hidden;
}

.recent-posts .post-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.recent-posts article:hover .post-img img { transform: scale(1.05); }

.recent-posts .post-category {
    color: var(--tlp-gold-dark);
    font-weight: 600;
    margin: 16px 18px 6px;
}

.recent-posts .title {
    margin: 0 18px 10px;
    font-size: 20px;
    line-height: 1.35;
}

.recent-posts .title a { color: #0b6b2e; font-weight: 700; }
.recent-posts .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px;
}
.recent-posts .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 66px;
}

.recent-posts .post-meta {
    margin: auto 18px 18px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.recent-posts .post-author { color: #344054; font-weight: 600; margin: 0; }
.recent-posts .post-date { color: #98a2b3; font-size: 13px; margin: 0; }

/* ---- Urdu (Nastaliq) typography ---- */
html[lang="ur"] body,
html[lang="ur"] p,
html[lang="ur"] span,
html[lang="ur"] a,
html[lang="ur"] li,
html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] h4,
html[lang="ur"] h5,
.ar-text,
[dir="rtl"] .ar-text {
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", system-ui, sans-serif;
}
/* Nastaliq has tall descenders — needs generous line spacing */
html[lang="ur"] body { line-height: 2.2; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3,
html[lang="ur"] h4, html[lang="ur"] h5 { line-height: 1.9; padding-bottom: .15em; }
html[lang="ur"] p { line-height: 2.4; }
.ar-text { line-height: 2.1; }
/* Keep latin/number runs in a clean sans inside Urdu pages */
html[lang="ur"] .tl-year,
html[lang="ur"] .blog-badge,
html[lang="ur"] .news-detail-date,
html[lang="ur"] time { font-family: "Open Sans", sans-serif; }

/* ---- Inner page layout (detail/sub pages) ---- */
body.inner-page { background: #f4f6fa; }
.inner-header {
    position: sticky; top: 0; z-index: 1000; background: #fff;
    box-shadow: var(--tlp-shadow-sm); padding: 12px 0;
}
.inner-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.inner-logo img { height: 46px; }
.inner-logo span { color: #0b6b2e; font-weight: 800; font-size: 18px; }
.inner-nav { display: flex; align-items: center; gap: 22px; }
.inner-nav a { color: #344054; font-weight: 600; text-decoration: none; transition: color .2s; }
.inner-nav a:hover { color: #28a745; }
.inner-nav .inner-lang { background: #0b6b2e; color: #fff; padding: 6px 16px; border-radius: 20px; }
.inner-nav .inner-lang:hover { background: #28a745; color: #fff; }
.inner-main { min-height: 60vh; padding-top: 30px; padding-bottom: 50px; }
.inner-footer { background: #0b3d1c; color: #cbe7d3; text-align: center; padding: 22px 0; }
.inner-footer p { margin: 0; }
.inner-main .section { padding-top: 20px !important; }
@@media (max-width: 575.98px) {
    .inner-logo span { display: none; }
    .inner-nav { gap: 12px; font-size: 14px; }
}

/* ---- Blog magazine layout ---- */
.blog-magazine .blog-featured {
    display: block; background: #fff; border: 1px solid #eef0f4; border-radius: 18px;
    overflow: hidden; box-shadow: var(--tlp-shadow-sm); text-decoration: none; height: 100%;
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}
.blog-magazine .blog-featured:hover { transform: translateY(-4px); box-shadow: var(--tlp-shadow-lg); }
.blog-magazine .blog-featured-img { position: relative; }
.blog-magazine .blog-featured-img img { width: 100%; height: 340px; object-fit: cover; display: block; }
.blog-magazine .blog-badge {
    position: absolute; top: 14px; left: 14px; background: #28a745; color: #fff;
    padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.blog-magazine .blog-featured-body { padding: 22px 24px; }
.blog-magazine .blog-featured-body h3 { color: #0b6b2e; font-weight: 800; margin: 8px 0 10px; line-height: 1.3; }
.blog-magazine .blog-featured-body p { color: #475467; line-height: 1.7; margin-bottom: 12px; }
.blog-magazine .blog-date { color: #98a2b3; font-size: 13px; }
.blog-magazine .read-more { color: #0b6b2e; font-weight: 700; }

.blog-magazine .blog-list { display: flex; flex-direction: column; gap: 16px; }
.blog-magazine .blog-list-item {
    display: flex; gap: 14px; background: #fff; border: 1px solid #eef0f4; border-radius: 14px;
    overflow: hidden; text-decoration: none; box-shadow: var(--tlp-shadow-sm);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}
.blog-magazine .blog-list-item:hover { transform: translateX(4px); box-shadow: var(--tlp-shadow-md); }
.blog-magazine .bli-img { flex: 0 0 110px; }
.blog-magazine .bli-img img { width: 110px; height: 100%; min-height: 96px; object-fit: cover; display: block; }
.blog-magazine .bli-body { padding: 10px 12px 10px 0; display: flex; flex-direction: column; justify-content: center; }
.blog-magazine .bli-cat { color: var(--tlp-gold-dark); font-size: 12px; font-weight: 600; }
.blog-magazine .bli-body h5 { color: #0b6b2e; font-weight: 700; font-size: 15px; margin: 2px 0 6px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Timeline / History ---- */
.timeline-section .tl-wrap { position: relative; max-width: 920px; margin: 0 auto; padding: 10px 0; }
.timeline-section .tl-wrap::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px;
    transform: translateX(-50%); background: linear-gradient(#28a745, #0b6b2e);
    border-radius: 4px;
}
.timeline-section .tl-item { position: relative; width: 50%; padding: 14px 36px; box-sizing: border-box; }
.timeline-section .tl-left { left: 0; text-align: right; }
.timeline-section .tl-right { left: 50%; text-align: left; }
.timeline-section .tl-dot {
    position: absolute; top: 24px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 4px solid #28a745; z-index: 2;
}
.timeline-section .tl-left .tl-dot { right: -9px; }
.timeline-section .tl-right .tl-dot { left: -9px; }
.timeline-section .tl-card {
    background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 18px 20px;
    box-shadow: var(--tlp-shadow-sm); transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}
.timeline-section .tl-card:hover { transform: translateY(-3px); box-shadow: var(--tlp-shadow-md); }
.timeline-section .tl-year {
    display: inline-block; background: #28a745; color: #fff; font-weight: 700;
    padding: 2px 14px; border-radius: 20px; font-size: 14px; margin-bottom: 8px;
}
.timeline-section .tl-card h4 { color: #0b6b2e; font-weight: 700; margin: 0 0 6px; }
.timeline-section .tl-card p { color: #475467; margin: 0; line-height: 1.7; }
/* RTL: keep the alternating geometry stable (LTR math), text stays RTL */
html[dir="rtl"] .timeline-section .tl-wrap { direction: ltr; }
html[dir="rtl"] .timeline-section .tl-card { direction: rtl; text-align: right; }

/* Tablet/medium: keep the alternating view but shrink cards + fonts */
@@media (max-width: 991.98px) {
    .timeline-section .tl-item { padding: 10px 22px; }
    .timeline-section .tl-card { padding: 14px 16px; }
    .timeline-section .tl-card h4 { font-size: 18px; }
    .timeline-section .tl-card p { font-size: 13px; line-height: 1.6; }
    .timeline-section .tl-year { font-size: 12px; padding: 2px 11px; }
    html[lang="ur"] .timeline-section .tl-card h4 { line-height: 1.7; }
    html[lang="ur"] .timeline-section .tl-card p { line-height: 2; }
}
@@media (max-width: 767.98px) {
    .timeline-section .tl-item { padding: 8px 16px; }
    .timeline-section .tl-card h4 { font-size: 16px; }
    .timeline-section .tl-card p { font-size: 12px; }
    .timeline-section .tl-dot { width: 14px; height: 14px; }
}

/* Very small phones: single column (alternating too cramped) */
@@media (max-width: 575.98px) {
    .timeline-section .tl-wrap::before { left: 18px; }
    .timeline-section .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 44px; padding-right: 6px; }
    .timeline-section .tl-dot { left: 11px !important; right: auto !important; }
    html[dir="rtl"] .timeline-section .tl-wrap { direction: rtl; }
    html[dir="rtl"] .timeline-section .tl-wrap::before { left: auto; right: 18px; }
    html[dir="rtl"] .timeline-section .tl-item { padding-left: 6px; padding-right: 44px; text-align: right !important; }
    html[dir="rtl"] .timeline-section .tl-dot { left: auto !important; right: 11px !important; }
}

/* ---- Leadership profile page ---- */
.profile-card { background:#fff; border:1px solid #eef0f4; border-radius:18px; padding:26px; box-shadow:var(--tlp-shadow-md); }
.profile-photo { width:200px; height:200px; object-fit:cover; border-radius:50%; border:5px solid #f1f5f9; box-shadow:var(--tlp-shadow-sm); margin-bottom:16px; }
.profile-name { color:#0b6b2e; font-weight:800; margin:0 0 4px; }
.profile-role { color:#6b7280; font-style:italic; display:block; margin-bottom:14px; }
.profile-social a { display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center; border-radius:50%; background:rgba(40,167,69,.1); color:#0b6b2e; margin:0 4px; transition:all .2s; }
.profile-social a:hover { background:#28a745; color:#fff; transform:translateY(-3px); }
.profile-bio { background:#fff; border:1px solid #eef0f4; border-radius:18px; padding:30px; box-shadow:var(--tlp-shadow-sm); }
.profile-bio h4 { color:#0b6b2e; font-weight:700; }
.profile-bio p { color:#475467; line-height:1.9; text-align:justify; }

/* ---- Footer (professional, readable) ---- */
#footer.footer-section {
    position: relative;
    background: linear-gradient(135deg, #06351a, #0b6b2e 55%, #06351a) !important;
    color: #d9e8de;
}
#footer .footer-widget-heading h3,
#footer h3, #footer h5 { color: #fff; }
#footer .footer-text p, #footer p { color: #cfe2d6; line-height: 1.9; }
#footer a { color: #d9e8de; }
#footer a:hover { color: var(--tlp-gold-light); }
/* gold accent under headings */
#footer .footer-widget-heading h3 { position: relative; padding-bottom: 10px; margin-bottom: 16px; font-weight: 700; }
#footer .footer-widget-heading h3::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
    width: 46px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--tlp-green-bright), var(--tlp-gold));
}
/* social icons */
#footer .footer-social-icon a {
    display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    border-radius: 50%; margin: 0 6px 6px 0; font-size: 18px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff;
    transition: transform var(--tlp-transition), background var(--tlp-transition);
}
#footer .footer-social-icon a:hover { transform: translateY(-3px); background: var(--tlp-gold); color: #1a1a1a; }
/* subscribe form: aligned input + button */
#footer .subscribe-form form { display: flex; align-items: center; gap: 0; max-width: 360px; background: #fff; border-radius: 30px; overflow: hidden; padding: 4px; }
#footer .subscribe-form input {
    flex: 1 1 auto; border: none !important; background: transparent !important;
    padding: 10px 18px; color: #1f2937; outline: none; min-width: 0;
}
#footer .subscribe-form button {
    flex: 0 0 auto; width: 44px; height: 44px; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--tlp-green-bright), var(--tlp-green)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer;
    transition: filter var(--tlp-transition);
}
#footer .subscribe-form button:hover { filter: brightness(1.1); }
#footer .copyright-text p { color: #aecbb8; margin: 0; }
#footer .footer-text p i { color: var(--tlp-gold-light); margin-inline-end: 8px; }
#footer { border-top: 3px solid var(--tlp-gold); }

/* ---- Contact section (professional) ---- */
.contact-section .row { align-items: stretch; }

/* Contact info cards */
.contact-information-box-3 { height: 100%; }
.contact-section .single-contact-info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: var(--tlp-shadow-sm);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}
.contact-section .single-contact-info-box:hover { transform: translateY(-3px); box-shadow: var(--tlp-shadow-md); }
.contact-section .ci-icon {
    flex: 0 0 auto;
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    background: linear-gradient(135deg, var(--tlp-green-bright), var(--tlp-green));
}
.contact-section .contact-info { flex: 1 1 auto; min-width: 0; }
.contact-section .single-contact-info-box h6 { color: var(--tlp-green); font-weight: 700; margin: 0 0 4px; }
.contact-section .single-contact-info-box p { color: #475467; margin: 0; line-height: 1.7; word-break: break-word; }
/* RTL: text aligns right, icon sits on the right naturally via flex direction */
html[dir="rtl"] .contact-section .single-contact-info-box { text-align: right; }

/* Contact form */
.contact-form .form-control {
    background: #fff;
    border: 1px solid #e2e6ee !important;
    border-radius: 12px !important;
    padding: 13px 16px;
    font-size: 15px;
    box-shadow: none;
    transition: border-color var(--tlp-transition), box-shadow var(--tlp-transition);
}
.contact-form .form-control:focus {
    border-color: var(--tlp-green) !important;
    box-shadow: 0 0 0 3px rgba(40,167,69,.12) !important;
}
.contact-form .form-input-box { margin-bottom: 18px; }
.contact-form textarea.form-control { min-height: 150px; resize: vertical; }
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--tlp-green-bright), var(--tlp-green)) !important;
    border: none !important;
    border-radius: 26px !important;
    padding: 12px 38px !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(11,107,46,.28);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition), filter var(--tlp-transition);
}
.contact-form .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,107,46,.38); filter: brightness(1.05); }

/* ---- FAQ accordion (professional) ---- */
#faq .accordion-item {
    background: #fff;
    border: 1px solid #eef0f4 !important;
    border-radius: 14px !important;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--tlp-shadow-sm);
    transition: box-shadow var(--tlp-transition), border-color var(--tlp-transition);
}
#faq .accordion-item:hover { box-shadow: var(--tlp-shadow-md); }
#faq .accordion-header { margin: 0; }
#faq .accordion-button {
    background: #fff !important;
    color: var(--tlp-green) !important;
    font-weight: 700;
    font-size: 17px;
    padding: 18px 22px;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
}
#faq .accordion-button .num {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tlp-green-bright), var(--tlp-green));
    transition: transform var(--tlp-transition), background var(--tlp-transition);
}
/* active/open state: gold accent + rotate icon */
#faq .accordion-button:not(.collapsed) {
    color: var(--tlp-green-dark) !important;
    background: linear-gradient(90deg, rgba(40,167,69,.06), rgba(201,162,39,.06)) !important;
}
#faq .accordion-button:not(.collapsed) .num {
    background: linear-gradient(135deg, var(--tlp-gold), var(--tlp-gold-dark));
    transform: rotate(90deg);
}
/* remove default bootstrap chevron (we use the circle icon) */
#faq .accordion-button::after { display: none !important; }
#faq .accordion-body {
    padding: 4px 22px 20px 64px;
    color: #475467;
    line-height: 1.9;
}
html[dir="rtl"] #faq .accordion-body { padding: 4px 64px 20px 22px; }
html[dir="rtl"] #faq .accordion-button .num { transform: scaleX(-1); }
html[dir="rtl"] #faq .accordion-button:not(.collapsed) .num { transform: rotate(-90deg); }

/* ---- Manifesto ---- */
.manifesto-item {
    display: flex; gap: 18px; background: #fff; border: 1px solid #eef0f4; border-radius: 14px;
    padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--tlp-shadow-sm);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}
.manifesto-item:hover { transform: translateX(4px); box-shadow: var(--tlp-shadow-md); }
.manifesto-item .mf-num {
    flex: 0 0 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #28a745, #0b6b2e); color: #fff; font-weight: 800; font-size: 20px;
}
.manifesto-item .mf-body h4 { color: #0b6b2e; font-weight: 700; margin: 4px 0 8px; }
.manifesto-item .mf-body p { color: #475467; line-height: 1.9; margin: 0; text-align: justify; }

/* ---- Events ---- */
.event-card {
    display: flex; gap: 18px; background: #fff; border: 1px solid #eef0f4; border-radius: 16px;
    padding: 20px; box-shadow: var(--tlp-shadow-sm); height: 100%;
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--tlp-shadow-lg); }
.event-date-box {
    flex: 0 0 78px; height: 92px; border-radius: 12px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #fff; font-size: 26px;
    background: linear-gradient(135deg, #28a745, #0b6b2e);
}
.event-date-box .ev-day { font-size: 26px; font-weight: 800; line-height: 1; }
.event-date-box .ev-mon { font-size: 14px; text-transform: uppercase; }
.event-date-box .ev-yr { font-size: 12px; opacity: .85; }
.event-body h4 { color: #0b6b2e; font-weight: 700; margin: 0 0 6px; }
.event-loc { color: var(--tlp-gold-dark); font-weight: 600; margin: 0 0 6px; font-size: 14px; }
.event-desc { color: #475467; margin: 0; line-height: 1.7; }

/* ---- Shuhada (Martyrs) tribute ---- */
.shuhada-section { background: linear-gradient(180deg, #2a0606, #4a0d0d); }
.shuhada-section .section-header h2 { color: #fff; }
.shuhada-section .section-header p { color: #e7c9c9; }
.shuhada-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 26px 22px; text-align: center; height: 100%;
    box-shadow: var(--tlp-shadow-md);
    transition: transform var(--tlp-transition), background var(--tlp-transition);
}
.shuhada-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); }
.shaheed-photo { display: flex; justify-content: center; margin-bottom: 16px; }
.shaheed-photo img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); }
.shaheed-emblem {
    width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.25); color: #f0d6a8; font-size: 46px;
}
.shaheed-name { color: #fff; font-weight: 700; margin: 6px 0 4px; }
.shaheed-date { display: inline-block; background: rgba(240,214,168,.15); color: #f0d6a8; padding: 2px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 10px; }
.shaheed-detail { color: #e7d3d3; line-height: 1.8; margin: 0; }

/* ---- Announcement banner ---- */
.announcement-banner {
    background: linear-gradient(90deg, #0b6b2e, #28a745);
    color: #fff;
    padding: 10px 0;
    font-weight: 600;
    position: relative;
}
.announcement-banner .bi-megaphone-fill { font-size: 18px; }
.announcement-banner .ann-text { color: #fff; text-decoration: none; }
.announcement-banner a.ann-text:hover { text-decoration: underline; }
.announcement-banner .ann-close {
    background: none; border: none; color: #fff; font-size: 24px;
    line-height: 1; cursor: pointer; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
}

/* ---- Videos / Speeches section (themed posters + modal) ---- */
.videos-section .video-card { max-width: 380px; margin: 0 auto; }

.videos-section .video-poster {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
    border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0;
    background: linear-gradient(135deg, #0b6b2e, #073d1b 60%, #5a0d0d);
    box-shadow: var(--tlp-shadow-md);
    transition: transform var(--tlp-transition), box-shadow var(--tlp-transition);
}
.videos-section .video-poster:hover { transform: translateY(-5px); box-shadow: var(--tlp-shadow-lg); }
.videos-section .video-poster.has-thumb { background-size: cover; background-position: center; }
.videos-section .vp-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.10), transparent 60%);
}
.videos-section .video-poster.has-thumb .vp-overlay {
    background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55));
}
.videos-section .vp-brand {
    position: absolute; top: 14px; left: 0; right: 0; text-align: center;
    color: rgba(255,255,255,.85); font-size: 15px; font-weight: 600;
}
.videos-section .vp-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 68px; height: 68px; border-radius: 50%;
    background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.85);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px; backdrop-filter: blur(2px);
    transition: transform var(--tlp-transition), background var(--tlp-transition);
}
.videos-section .video-poster:hover .vp-play { transform: translate(-50%,-50%) scale(1.1); background: rgba(40,167,69,.85); }
.videos-section .vp-title {
    position: absolute; bottom: 16px; left: 16px; right: 16px; text-align: center;
    color: #fff; font-weight: 700; font-size: 17px; line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Modal */
.video-modal { position: fixed; inset: 0; z-index: 12000; display: none; }
.video-modal.open { display: block; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.video-modal-box {
    position: relative; z-index: 1; max-width: 900px; width: 92%;
    margin: 4vh auto 0; max-height: 92vh;
}
.video-modal-close {
    position: absolute; top: -42px; right: 0; background: none; border: 0;
    color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
}
.video-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }

/* Custom unbranded controls overlay */
.vm-clickcatch { position: absolute; inset: 0; cursor: pointer; z-index: 2; }
.vm-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,.45);
    color: #fff; font-size: 40px; display: flex; align-items: center; justify-content: center;
    z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s;
}
.video-modal-frame:hover .vm-center { opacity: 1; }
.video-modal-frame.is-playing .vm-center { opacity: 0; }
.video-modal-frame:hover.is-playing .vm-center { opacity: .9; }
.vm-controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    opacity: 0; transition: opacity .25s;
}
.video-modal-frame:hover .vm-controls { opacity: 1; }
.vm-btn { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; }
.vm-btn:hover { color: #28e070; }
.vm-progress { flex: 1; height: 6px; background: rgba(255,255,255,.3); border-radius: 4px; cursor: pointer; }
.vm-progress-fill { height: 100%; width: 0; background: #28a745; border-radius: 4px; }

@@media (max-width: 575.98px) {
    .video-modal-frame { aspect-ratio: 9 / 16; }
}

/* ---- Blog card excerpt + read more ---- */
.recent-posts .post-excerpt {
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 18px 12px;
}
.recent-posts .read-more {
    color: #0b6b2e;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    margin-right: 18px;
}
.recent-posts .read-more:hover { color: #28a745; }

/* ---- News detail page ---- */
.news-detail { background:#fff; border:1px solid #eef0f4; border-radius:16px; padding:26px; box-shadow:var(--tlp-shadow-sm); }
.news-detail-img { width:100%; max-height:420px; object-fit:cover; border-radius:12px; margin-bottom:18px; }
.news-detail-meta { display:flex; flex-wrap:wrap; gap:14px; align-items:center; color:#98a2b3; font-size:14px; margin-bottom:10px; }
.news-detail-cat { background:rgba(40,167,69,.12); color:#0b6b2e; font-weight:600; padding:3px 12px; border-radius:20px; }
.news-detail-title { color:#0b6b2e; font-weight:800; line-height:1.3; margin-bottom:18px; }
.news-detail-body p { color:#475467; line-height:1.9; margin-bottom:14px; text-align:justify; }
.news-sidebar { background:#fff; border:1px solid #eef0f4; border-radius:16px; padding:20px; box-shadow:var(--tlp-shadow-sm); }
.news-sidebar-title { color:#0b6b2e; font-weight:700; margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid #f0f2f5; }
.news-sidebar-item { display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #f4f6f8; text-decoration:none; }
.news-sidebar-item:last-child { border-bottom:none; }
.news-sidebar-item img { width:64px; height:54px; object-fit:cover; border-radius:8px; flex:0 0 auto; }
.news-sidebar-item .rs-title { display:block; color:#1f2937; font-weight:600; font-size:14px; line-height:1.35; }
.news-sidebar-item .rs-date { display:block; color:#98a2b3; font-size:12px; margin-top:3px; }
.news-sidebar-item:hover .rs-title { color:#0b6b2e; }

/* =====================================================================
   MOBILE RESPONSIVE (covers all new sections)
   ===================================================================== */
@media (max-width: 991.98px) {
    .section, section.section { padding-top: 40px; padding-bottom: 40px; }
    .section-header h2 { font-size: 26px; }
    /* Blog magazine: featured + list stack naturally (col-lg) */
    .blog-magazine .blog-featured-img img { height: 240px; }
    /* News detail: sidebar below content */
    .news-detail { padding: 18px; }
    .news-detail-title { font-size: 22px; }
}

@media (max-width: 767.98px) {
    .section-header h2 { font-size: 23px; }
    .section-header p { font-size: 14px; }

    /* About card -> stack image over text */
    .about-card { padding: 16px; }
    .about-card .about-img { height: 230px; margin-bottom: 14px; }

    /* Services / Featured / Team grids already stack via Bootstrap cols */
    #services .icon-box { padding: 22px 16px; }
    .team .member .member-photo { width: 140px; height: 140px; }

    /* Featured: center the icon badges, full-width rows */
    #featured .center-icon { min-height: auto; margin: 24px 0; }
    #featured .center-icon img { max-width: 220px; }
    #featured .list-wrap { margin-bottom: 22px; }

    /* Videos: one per row, comfortable height */
    .videos-section .video-card { max-width: 320px; }

    /* Events: date box + text stack */
    .event-card { flex-direction: column; text-align: center; align-items: center; }
    .event-date-box { width: 70px; height: 80px; }

    /* Manifesto: keep number + body but tighter */
    .manifesto-item { padding: 18px; gap: 14px; }
    .manifesto-item .mf-num { width: 40px; height: 40px; font-size: 17px; }

    /* Shuhada cards */
    .shuhada-card { padding: 20px 16px; }

    /* Profile page: center column */
    .profile-bio { padding: 22px; }

    /* Contact: stack info above form, full width */
    .contact-section .single-contact-info-box { padding: 16px 18px; }
    .contact-form .btn-primary { width: 100%; }

    /* Video modal full-width */
    .video-modal-box { width: 96%; }
    .video-modal-close { top: -36px; }

    /* Footer: center content, social centered */
    #footer .footer-widget { text-align: center; margin-bottom: 24px; }
    #footer .footer-widget-heading h3::after { left: 50%; transform: translateX(-50%); }
    html[dir="rtl"] #footer .footer-widget-heading h3::after { left: 50%; right: auto; transform: translateX(-50%); }
    #footer .footer-social-icon { display: flex; justify-content: center; flex-wrap: wrap; }
    #footer .subscribe-form form { margin: 0 auto; }
    #footer .copyright-text { text-align: center !important; }

    /* Timeline single column already handled at 767 */
}

@media (max-width: 575.98px) {
    .section-header h2 { font-size: 21px; }
    .blog-magazine .blog-featured-img img { height: 200px; }
    .blog-magazine .bli-img { flex: 0 0 92px; }
    .blog-magazine .bli-img img { width: 92px; }
    .news-detail-img { max-height: 240px; }
    .profile-photo { width: 150px; height: 150px; }
    .team .member .member-photo { width: 130px; height: 130px; }
    .about-card .about-img { height: 200px; }
    /* Inner page header nav wraps */
    .inner-header .container { flex-wrap: wrap; gap: 8px; }
    .inner-nav { flex-wrap: wrap; gap: 10px; font-size: 13px; }
    /* Manifesto / events full width text */
    .manifesto-item .mf-body p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* Soften hover/transition motion but keep continuous animations
       (news ticker, counters) running. */
    .service-item, .portfolio-item, .team .member, .card, .feature-box,
    .btn, .btn-get-started, .about-card, .portfolio .portfolio-wrap,
    #services .icon-box, #featured .list-wrap .icon {
        transition: none !important;
    }
}
