/* 
 * About Us & Blog Single Templates - Refined Consistency
 */

/* Hero Specifics */
.about-hero, .blog-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Timeline Enhancement */
.timeline-scroll-wrap {
    max-height: 800px;
    overflow-y: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.timeline-scroll-wrap::-webkit-scrollbar {
    width: 6px;
}
.timeline-scroll-wrap::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    margin-bottom: 80px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    min-width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0 15px;
}

.timeline-content {
    width: 90%;
    padding: 35px;
    margin-top: 20px;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content { margin-left: 40px; }
.timeline-item:nth-child(odd) .timeline-content { margin-right: 40px; }

.timeline-img {
    margin-bottom: 25px;
}
.fc-hero-media img {
    border: none !important;
}

/* Mission Vision Cards */
.mv-card {
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.mv-card:hover { transform: translateY(-10px); }

.mv-card .fc-timeline-dot {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-bottom: 25px;
}

/* Carousels Track */
.posts-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 30px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.posts-carousel::-webkit-scrollbar { display: none; }

.post-card-wrap {
    flex: 0 0 380px;
    transition: transform 0.3s ease;
}
.post-card-wrap:hover { transform: translateY(-5px); }

/* Gallery Enhancement */
.gallery-grid-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 0 40px;
    scrollbar-width: thin;
}

.gallery-item {
    flex: 0 0 320px;
    height: 450px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Blog Sidebar Layout */
.grid-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.post-content { padding: 50px; }

.post-gallery-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border);
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.post-gallery-grid .gallery-item {
    height: 250px;
    border-radius: var(--radius-md);
}

.sidebar-widget {
    padding: 35px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.recent-posts ul { list-style: none; padding: 0; }
.recent-posts li { 
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--glass-border);
}
.recent-posts li:last-child { border: none; }

.recent-posts .date {
    display: block;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 5px;
}

.recent-posts .title {
    font-weight: 700;
    line-height: 1.4;
    display: block;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Lightbox Premium */
.fareeda-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    z-index: 2;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.close-lightbox {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.close-lightbox:hover { transform: rotate(90deg); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.1); }
.lightbox-nav.prev { left: -80px; }
.lightbox-nav.next { right: -80px; }

/* Responsive */
@media (max-width: 1100px) {
    .lightbox-nav.prev { left: 20px; }
    .lightbox-nav.next { right: 20px; }
    .grid-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .timeline-container::before { left: 20px; }
    .timeline-item { padding-right: 0; padding-left: 50px; justify-content: flex-start; }
    .timeline-item:nth-child(even) { padding-left: 50px; }
    .timeline-year { left: 20px; transform: translateX(-50%); }
    .timeline-item:nth-child(even) .timeline-content, .timeline-item:nth-child(odd) .timeline-content { margin-left: 20px; margin-right: 0; }
    .post-card-wrap { flex: 0 0 300px; }
}

/* ═══════════════════════════════════════════════════════════
   Contact Us Page
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.contact-hero-section {
    padding-bottom: 60px;
    text-align: center;
}

/* Channel cards strip */
.contact-info-strip { padding-block: 0; }

.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding-block: 60px;
}

.contact-channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: default;
}

a.contact-channel-card { cursor: pointer; }

.contact-channel-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-accent, var(--accent));
    box-shadow: 0 20px 40px color-mix(in srgb, var(--card-accent, var(--accent)) 14%, transparent);
    color: var(--text-main);
}

.contact-channel-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 18px;
    transition: background 0.28s ease, transform 0.28s ease;
}

.contact-channel-card:hover .contact-channel-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.12) rotate(-5deg);
}

.contact-channel-icon--wa { color: #25d366; background: color-mix(in srgb, #25d366 12%, transparent); border-color: color-mix(in srgb, #25d366 25%, transparent); }
.contact-channel-card--wa:hover .contact-channel-icon { background: #25d366; color: #fff; }
.contact-channel-card--wa:hover { border-color: #25d366; box-shadow: 0 20px 40px rgba(37,211,102,0.18); }

.contact-channel-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
}

.contact-channel-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.contact-channel-hint {
    font-size: 0.85rem;
    opacity: 0.55;
}

/* Two-column layout */
.contact-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 36px;
    align-items: start;
}

/* Business Hours panel */
.contact-detail-panel {
    padding: 44px;
    border-radius: var(--radius-lg);
}

.contact-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-detail-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.contact-hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.contact-hours-row:last-child { border-bottom: none; }

.contact-hours-day {
    font-weight: 600;
    color: var(--text-main);
}

.contact-hours-time {
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-heading);
}

.contact-hours-time.is-closed {
    color: #94a3b8;
    font-style: italic;
}

.contact-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: color-mix(in srgb, #22c55e 10%, transparent);
    border: 1px solid color-mix(in srgb, #22c55e 25%, transparent);
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contact-availability-badge.is-closed {
    background: color-mix(in srgb, #ef4444 10%, transparent);
    border: 1px solid color-mix(in srgb, #ef4444 25%, transparent);
    color: #ef4444;
}

.contact-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: contact-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes contact-pulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
    50% { box-shadow: 0 0 0 8px transparent; opacity: 0.6; }
}

/* Social panel column */
.contact-social-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* WhatsApp CTA */
.contact-wa-cta {
    padding: 36px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 20px;
    align-items: start;
}

.contact-wa-icon {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, #25d366 12%, transparent);
    font-size: 1.6rem;
    color: #25d366;
}

.contact-wa-text h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.contact-wa-text p {
    font-size: 0.92rem;
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

.contact-wa-btn {
    grid-column: 2;
    justify-self: start;
    background: #25d366;
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
    padding: 0 24px;
    font-size: 0.95rem;
}

.contact-wa-btn:hover { background: #1da851; filter: none; color: #fff; }

/* Social links */
.contact-social-block {
    padding: 32px 36px;
    border-radius: var(--radius-lg);
}

.contact-social-block h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-muted);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
}

.contact-social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 860px) {
    .contact-details-grid { grid-template-columns: 1fr; }
    .contact-wa-cta {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .contact-wa-icon { grid-row: auto; }
    .contact-wa-btn { grid-column: 1; justify-self: stretch; text-align: center; }
}

@media (max-width: 600px) {
    .contact-channels-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-detail-panel { padding: 28px 22px; }
    .contact-social-block { padding: 24px 22px; }
}

/* Contact Form Section */
.contact-form-container {
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-container h2 {
    font-size: 2.2rem;
    margin-top: 10px;
}

.contact-form-container .form-wrapper {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 35px 25px;
    }
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
}

/* Lead Popup */
.fareeda-lead-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.lead-popup-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 50px;
    animation: popup-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popup-slide-up {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.close-popup:hover {
    opacity: 1;
}

.lead-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.lead-popup-header h3 {
    font-size: 1.8rem;
    margin: 10px 0;
}

.lead-popup-header p {
    font-size: 0.95rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .lead-popup-container {
        padding: 40px 25px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Services AJAX Search
   ═══════════════════════════════════════════════════════════ */
.fc-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.fc-search-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill, 16px);
    padding: 8px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-search-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent);
    transform: translateY(-2px);
}

.fc-search-group i.fa-search {
    font-size: 1.1rem;
    color: var(--accent);
    margin-right: 15px;
}

.fc-search-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1.05rem;
    padding: 12px 0;
    font-family: inherit;
}

.fc-search-group input::placeholder {
    color: var(--text-main);
    opacity: 0.5;
}

.fc-no-results {
    text-align: center;
    padding: 80px 20px;
}

.fc-no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.fc-no-results p {
    opacity: 0.7;
    margin-bottom: 30px;
}

/* AJAX Spinner Overlay for Grid */
#services-ajax-container {
    position: relative;
    transition: opacity 0.3s;
}

#services-ajax-container.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Blog Single Hero Background Image Opacity */
.blog-hero {
    position: relative;
}
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.25; /* Subtle background opacity */
    z-index: 0;
    pointer-events: none;
}
