/*
 Theme Name:   Windsor Child
 Theme URI:    https://example.com
 Description:  Child theme for Windsor
 Author:       Your Name
 Template:     windsor
 Version:      1.0.0
*/

.page_content_wrap{
    padding-top: 1em;
}

/* === Container === */
.bisem-marquee-wrap {
    background: #002147;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #ffcc00;
    font-family: "Segoe UI", Arial, sans-serif;
    overflow: hidden;
}

/* Title + Icon */
.bisem-marquee-title {
    font-weight: bold;
    margin-right: 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 18px;
    color: #ffffff;
}
.bisem-icon {
    font-size: 35px;
    margin-right: 8px;
    color: #ffcc00;
}

/* === Ticker === */
.bisem-marquee {
    overflow: hidden;
    position: relative;
    flex: 1;
}
.bisem-marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: bisem-scroll 20s linear infinite;
}
.bisem-marquee-item {
    color: #0044cc; /* Dark Royal Blue */
    font-weight: 600;
    text-decoration: none;
    margin-right: 60px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.bisem-marquee-item:hover {
    text-decoration: underline;
    color: #0066ff; /* Brighter Blue on hover */
}

/* === Animation === */
@keyframes bisem-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .bisem-icon { font-size: 35px; }
    .bisem-marquee-item { font-size: 14px; margin-right: 40px; }
    .bisem-marquee-title { font-size: 16px; }
}
@media (max-width: 768px) {
    .bisem-icon { font-size: 35px; }
    .bisem-marquee-item { font-size: 13px; margin-right: 30px; }
    .bisem-marquee-title { font-size: 14px; }
}


.bisem-marquee-title {
    font-weight: bold;
    margin-right: 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 18px;
    color: #ffffff;
    line-height: 1;  /* Fix jumpy alignment */
}

.bisem-icon {
    font-size: 28px;
    min-width: 28px;   /* Fix width */
    height: 28px;      /* Fix height */
    line-height: 28px; /* Keep icon stable */
    margin-right: 8px;
    color: #ffcc00;
}

.bisem-marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: bisem-scroll 20s linear infinite;
    will-change: transform;   /* Smooth GPU rendering */
}


/* === Container === */
.bisem-marquee-wrap {
    background: transparent; /* Transparent background */
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: none; /* Remove yellow underline if not needed */
    font-family: "Segoe UI", Arial, sans-serif;
    overflow: hidden;
}


/* ───────────── 🌐 Elementor Background Slideshow — Desktop Cover / Mobile-Tablet Full Image ───────────── */

/* 🖥 Desktop (≥1025px): Fill container with cover (hero style) */
@media only screen and (min-width: 1025px) {
  .elementor-background-slideshow__slide__image {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .elementor-section[data-settings*="background_slideshow"] {
    min-height: 100vh !important;
    position: relative;
    width: 100%;
  }

  .elementor-section[data-settings*="background_slideshow"] > .elementor-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 💻 Tablet (768px–1024px): Show full image (contain), auto height using aspect ratio */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .elementor-section[data-settings*="background_slideshow"] {
    position: relative;
    width: 100%;
  }

  /* Maintain 16:9 ratio for section */
  .elementor-section[data-settings*="background_slideshow"]::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 ratio */
  }

  .elementor-section[data-settings*="background_slideshow"] > .elementor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .elementor-background-slideshow__slide__image {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #000; /* fills behind image */
  }
}

/* 📱 Mobile (≤767px): Show full image (contain), auto height using aspect ratio */
@media only screen and (max-width: 767px) {
  .elementor-section[data-settings*="background_slideshow"] {
    position: relative;
    width: 100%;
  }

  /* Maintain 16:9 ratio for mobile */
  .elementor-section[data-settings*="background_slideshow"]::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 ratio */
  }

  .elementor-section[data-settings*="background_slideshow"] > .elementor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .elementor-background-slideshow__slide__image {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #000; /* optional background */
  }
}

/* Button Grid Styles with Colorful Backgrounds */
.btn-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(200px, 1fr)); /* Changed to 5 columns */
    gap: 20px;
}

.btn-grid-item {
    background: var(--btn-light-color, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 3px solid var(--btn-color, #3498db);
    position: relative;
}

.btn-grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--btn-hover-color, #2980b9);
}

.btn-grid-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
    text-decoration: none;
    color: #2c3e50;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-grid-item:hover .btn-grid-link {
    background: var(--btn-color, #3498db);
    color: white;
}

.btn-grid-item:hover .btn-grid-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.btn-grid-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--btn-color, #3498db);
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-grid-item:hover .btn-grid-icon {
    color: white;
    transform: scale(1.2) rotate(5deg);
}

.btn-grid-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--btn-color, #3498db);
    transition: all 0.3s ease;
}

.btn-grid-item:hover .btn-grid-title {
    color: white;
}

.btn-grid-subtitle {
    font-size: 0.99 rem;
    color: #666;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .btn-grid-link {
        padding: 25px 10px;
    }
    
    .btn-grid-icon {
        font-size: 2rem;
    }
    
    .btn-grid-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn-grid-container {
        padding: 15px;
    }
}

/* Professional Image Boxes with Animations */
.professional-image-boxes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    
}

.image-boxes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
}

/* Default: 3 columns on desktop */
.image-boxes-container[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.image-boxes-container[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.image-boxes-container[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Card Animation Styles */
.image-box {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform: translateY(0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: cardEntrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Hover Lift Animation */
.image-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

/* Card Entrance Animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered Animation for Cards */
.image-box[data-delay="0"] { animation-delay: 0.1s; }
.image-box[data-delay="100"] { animation-delay: 0.2s; }
.image-box[data-delay="200"] { animation-delay: 0.3s; }
.image-box[data-delay="300"] { animation-delay: 0.4s; }
.image-box[data-delay="400"] { animation-delay: 0.5s; }
.image-box[data-delay="500"] { animation-delay: 0.6s; }

/* Image Container with Gradient Overlay */
.image-box-header {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.image-box-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(142, 68, 173, 0.1) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.image-box:hover .image-box-header::before {
    opacity: 1;
}

.image-box-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95);
}

.image-box:hover .image-box-header img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Content Area with Enhanced Styling */
.image-box-content {
    padding: 25px;
    position: relative;
    background: white;
}

/* Title with Underline Animation */
.image-box-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.image-box-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.image-box:hover .image-box-title::after {
    width: 60px;
}

/* Text Content */
.image-box-text {
    color: #5d6d7e;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.image-box-text p {
    margin-bottom: 15px;
}

.image-box:hover .image-box-text {
    color: #2c3e50;
}

/* Enhanced Button with Icon - FIXED */
.image-box-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* WORKING LINK HOVER EFFECTS */
.image-box-link:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* Disabled link style */
.image-box-link.no-link {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.image-box-link.no-link:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Link arrow animation */
.link-arrow {
    transition: transform 0.3s ease;
    font-weight: bold;
}

.image-box-link:hover .link-arrow {
    transform: translateX(3px);
}

.image-box-link.no-link:hover .link-arrow {
    transform: none !important;
}

/* Card Border Glow Effect */
.box-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #3498db, #9b59b6, #e74c3c);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.image-box:hover .box-glow {
    opacity: 0.1;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(142, 68, 173, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-box:hover .image-overlay {
    opacity: 1;
}

/* No Boxes State */
.pib-no-boxes {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

.pib-no-boxes p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .professional-image-boxes-container {
        padding: 15px;
    }
    
    .image-boxes-container {
        gap: 20px;
    }
    
    .image-boxes-container[data-columns="4"],
    .image-boxes-container[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-box-content {
        padding: 20px;
    }
    
    .image-box-title {
        font-size: 1.2rem;
    }
    
    .image-box-header {
        height: 180px;
    }
}

/* Mobile Styles (480px - 767px) */
@media (max-width: 767px) {
    .professional-image-boxes-container {
        padding: 10px;
    }
    
    .image-boxes-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .image-boxes-container[data-columns="4"],
    .image-boxes-container[data-columns="3"],
    .image-boxes-container[data-columns="2"] {
        grid-template-columns: 1fr;
    }
    
    .image-box-content {
        padding: 15px;
    }
    
    .image-box-title {
        font-size: 1.1rem;
    }
    
    .image-box-header {
        height: 160px;
    }
    
    .image-box:hover {
        transform: translateY(-5px);
    }
    
    .image-box-link {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Small Mobile Styles (under 480px) */
@media (max-width: 480px) {
    .professional-image-boxes-container {
        padding: 5px;
    }
    
    .image-boxes-container {
        gap: 12px;
    }
    
    .image-box-content {
        padding: 12px;
    }
    
    .image-box-header {
        height: 140px;
    }
    
    .image-box-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .image-box-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .image-box,
    .image-box-header img,
    .image-box-link,
    .image-box-title::after {
        transition: none;
        animation: none;
    }
    
    .image-box {
        opacity: 1;
        transform: none;
    }
    
    .image-box:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-box {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .image-box-content {
        background: #2d3748;
    }
    
    .image-box-title {
        color: #e2e8f0;
    }
    
    .image-box-text {
        color: #a0aec0;
    }
    
    .image-box:hover .image-box-text {
        color: #e2e8f0;
    }
}


.event-acf-images img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.event-acf-images-list img {
    width: 80px;
    height: auto;
    margin: 3px;
}

.event-acf-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.event-acf-images img {
    width: 300px;       /* medium-like width */
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}






/* ===============================
   Urdu / Nastaliq Font Only
   =============================== */

.urdu,
.lang-ur,
.urdu-text {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    direction: rtl;
    text-align: right;
    line-height: 2.2;
}

/* ===== Equal Height Boxes ===== */

/* Parent container */
.elementor-posts-container,
.tribe-events-pro-photo {
    display: flex;
    flex-wrap: wrap;
}

/* Each box */
.elementor-post,
.elementor-post__card,
.tribe-events-pro-photo__event {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Inner content */
.elementor-post__text,
.tribe-events-pro-photo__event-details {
    flex-grow: 1;
}

/* Images same size */
.elementor-post__thumbnail img,
.tribe-events-pro-photo__event-image img {
    width: 100%;
    height: 200px;       /* CHANGE if needed */
    object-fit: cover;
}


/* ===== Minimum Height for Event Boxes ===== */

/* Target each event box */
.elementor-post,
.elementor-post__card,
.tribe-events-pro-photo__event {
    min-height: 420px;   /* CHANGE this value */
    display: flex;
    flex-direction: column;
}

/* Make content fill space nicely */
.elementor-post__text,
.tribe-events-pro-photo__event-details {
    flex-grow: 1;
}

/* Fix image size */
.elementor-post__thumbnail img,
.tribe-events-pro-photo__event-image img {
    width: 100%;
    height: 200px;      /* Adjust if needed */
    object-fit: cover;
}



/* ===== FORCE SAME HEIGHT FOR BLOGGER BOXES ===== */

/* Entire card */
.sc_blogger .sc_blogger_item {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

/* Body */
.sc_blogger .sc_blogger_item_body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Featured image wrapper */
.sc_blogger .post_featured_bg {
    height: 220px;
    overflow: hidden;
}

/* Background image span */
.sc_blogger .post_featured_bg .post_thumb_bg {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
}

/* Content grows equally */
.sc_blogger .sc_blogger_item_content,
.sc_blogger .sc_blogger_item_header {
    flex-grow: 1;
}



/* Make Read More link stay in one line */
.item_more_link {
    display: inline-flex;        /* Flex container */
    align-items: center;         /* Vertically center */
    gap: 5px;                    /* Space between text and icon */
    white-space: nowrap;         /* Prevent wrapping */
    overflow: hidden;            /* Hide overflow if too long */
    text-overflow: ellipsis;     /* Show ... if text is too long */
}


.item_more_link {
    display: inline-flex;      /* horizontal layout */
    flex-wrap: nowrap;         /* no wrapping */
    align-items: center;       /* vertical alignment */
    gap: 5px;                  /* spacing between spans */
    white-space: nowrap;       /* prevent text from breaking */
}

.item_more_link .link_text,
.item_more_link .link_icon {
    display: inline-block;     /* make all spans inline */
    white-space: nowrap;       /* prevent each span from wrapping */
}


#chatbase-bubble-button,
.chatbase-bubble-button {
    bottom: 25px !important;
    right: 60px !important;  /* more left from right edge */
    left: auto !important;
}




@media (max-width: 768px) {
  #chatbase-bubble-button,
  .chatbase-bubble-button {
      bottom: 80px !important;
      right: 25px !important;
  }
}


/* Hide The Events Calendar "This event has passed" notice */
.tribe-events-notices {
    display: none !important;
}
