/*!
Theme Name: Masjid Pro
Description: A complete WordPress theme for Masjid/Islamic websites with advanced customization options
Version: 1.0
Author: Your Name
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
      /* //#c4a456;  */
    /* ---primary-color: #d6bf47;  
    ---secondary-color: #d7c188;
    ---tertiary-color: #b08730;
    ---quaternary-color: #ebdebd; */
}

body {
    font-family: Poppins,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(---primary-color);
    background-color: #f8f9fa;
}

p {
    color: var(--wndb--color--text);
    font-size: small;
}

h1,h2,h3,h4,h5,h6{color:var(--primary-color,#2f3b2f); font-family: "El Messiri", sans-serif;}


/* .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
} */

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa5d;
    /* transform: translateX(5px); */
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.social-links a:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-content h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-custom {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.4);
    color: white;
}

.next-prayer-widget {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==========================================================================
   Prayer Times Section
   ========================================================================== */

.prayer-times-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.prayer-times-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 30px 0;
}

.prayer-item {
    transition: all 0.3s ease;
    border-radius: 10px !important;
}

.prayer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: #f8f9fa !important;
}

.prayer-icon {
    margin-bottom: 20px;
}

.prayer-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.prayer-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: #007bff;
}

/* ==========================================================================
   Services Section -- in use
   ========================================================================== */

.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #0056b3;
}

.service-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-description {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer, .site-footer li a, .site-footer p {
    /* background: linear-gradient(135deg, var(--primary-color) 35%, var(--secondary-color) 100%); */
    /* color: var(--text-light) !important; */
}

.footer-title {
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    /* color: var(--text-light); */
    transform: translateX(5px);
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-top: 3px;
    color: var(--text-light);
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--text-light) !important;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--secondary-color);
    color: white;
    text-decoration: none;
}

.newsletter-form .form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid var(--text-light);
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 12px 0;
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

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

.sidebar .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar .card-header {
    border-bottom: none;
    font-weight: 600;
}

.prayer-schedule .prayer-item {
    transition: all 0.3s ease;
}

.prayer-schedule .prayer-item:hover {
    background-color: #f8f9fa;
}

.donation-amounts .btn {
    margin: 2px;
    border-radius: 20px;
}

.event-item {
    transition: all 0.3s ease;
}

.event-item:hover {
    background-color: #f8f9fa;
}

/* ==========================================================================
   Post Styles
   ========================================================================== */

.post-card {
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.post-meta {
    font-size: 0.9rem;
}

.post-meta i {
    color: #007bff;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 1px solid #e9ecef;
}

.page-title {
    color: #2c3e50;
    font-weight: 700;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn , .btn-primary {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: var(--primary-color) !important;
    color: #f5f7fa !important;
    border-radius: 0px 0.9em 0.5em 0.5em !important;
}

.btn:hover , .btn-outline-primary:hover , .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 128, 29, 0.3);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.bg-gradient-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.border-radius-lg {
    border-radius: 15px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .prayer-times-card {
        padding: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .prayer-item {
        margin-bottom: 15px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-links a {
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .btn-custom {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .prayer-times-card {
        padding: 15px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .next-prayer-widget {
        margin-top: 30px;
    }
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* .card {
        background-color: #343a40;
        color: var(---tertiary-color);
    }
    
    .form-control {
        background-color: #495057;
        border-color: #6c757d;
        color: var(---tertiary-color);
    }
    
    .form-control:focus {
        background-color: #495057;
        color: var(---tertiary-color);
    } */
}

/* ==========================================================================
   -- finalized  
   ========================================================================== */

body{background:var(--light-color,#f5f8f5);color:#333;}
.a-primary{color:var(--primary-color,#2e7d32)}
.bg-primary-custom{background:var(--primary-color,#2e7d32) !important}
.bg-dark-custom{background:var(--dark-color,#2f3b2f) !important}
.text-primary-custom{color:var(--primary-color,#2e7d32) !important}
.text-muted-2{color:#6b6b6b}

.btn {background-color: var(--primary-color) !important; color:var(--light-color); border-radius: 0px 0.9em 0.5em 0.5em !important;}
.btn-success {background-color: var(--primary-color)!important; color:var(--light-color) !important; border-radius: 0px 0.9em 0.5em 0.5em !important;}
.btn-success:hover {color:var(--light-color) !important;}

/* Hero */
.hero-wrap{position:relative;}
.hero-wrap img {animation: zoomy 30s ease infinite;}
@keyframes zoomy {
    50% {
      scale: 1.1;
    }
  }
.hero-overlay{opacity: 0.27; position:absolute;inset:0;
    background: linear-gradient(
    to top right, 
    var(--primary-color),
    var(--secondary-color)
    );
    background: linear-gradient(
    to top right in oklab, 
    var(--primary-color),
    var(--secondary-color)
    ); 
}
  /* linear-gradient(90deg, #ecfff130, #90daa138) */
.hero-caption{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff; backdrop-filter:brightness(0.85)}
.hero-caption h1 {text-shadow: 2px 2px 4px rgba(0,0,0,0.3);animation: fadeInUp 0.8s ease-out;}
.hero-caption .lead{max-width:800px}
.hero-wrap .lead{color:#fff}

/* Prayer table responsive orientation */
.prayer-grid{display:grid;grid-gap:8px}
/* Mobile: 3 cols x 8 rows */
@media (max-width: 767.98px){
    .prayer-grid{grid-template-columns:repeat(3,1fr)}
    .prayer-grid .cell{min-height:56px}
}
/* Desktop: 8 cols x 3 rows (header col)	*/
@media (min-width: 768px){
    .prayer-grid{grid-template-columns:repeat(8,1fr)}
}
.prayer-grid .cell{background:#fff;border-radius:6px;padding:10px;border:1px solid #e7efe7}
.prayer-grid .cell.head{background:var(--primary-color,#2e7d32);color:#fff;font-weight:600}

/* Scroll-snap carousels */
.snap-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.snap-item{scroll-snap-align:start;flex:0 0 100%;max-width:100%}
@media (min-width: 768px){.snap-item{flex-basis:33.3333%;max-width:33.3333%}}
/* @media (min-width: 1200px){.snap-item{flex-basis:25%;max-width:25%}} */
.snap-row::-webkit-scrollbar{height:10px}
.snap-row::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:5px}

.card{box-shadow: 0 .125rem .25rem 0px rgba(0, 0, 0, .075)}
.card:hover{box-shadow: 0 .125rem .25rem 4px rgba(0, 0, 0, .075)}
.card-img, .card-img-top{height: 200px;}
.card-body{z-index:1; padding:0.5rem 1.25rem  1.25rem}
/* .card:hover */
.card-title{margin-bottom:.25rem}
.card-subtitle{font-size:.9rem} 
.clamp-1{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; min-height:40px}
.clamp-6{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden; min-height:100px}
.badge-tag{position:absolute;top:10px;right:10px;border-radius: 8px; font-weight: 600;}
.progress{height:8px}

/* Pillars section */
.pillars-tree{max-width:380px}

/* Utility */
.section{padding:3rem 0}
.small-muted{font-size:.9rem;color:#6b6b6b}

    /* row card  - block */
.row-cards {display: flex; } 

.row-cards .card-img-top{ height: auto; width: 200px;object-fit: cover;}
@media (max-width: 768px) {
    .row-cards .card-img-top{ 
        height: 100%;
        position: absolute;
        width: 100%;
        object-fit: cover;
        opacity: 0.13;
        filter: sepia(1);
    }
}

.row-cards .card {display: flex;flex-direction: row; gap:10px}
.row-cards .card-body {
    padding-top: 2rem ;
}
.row-cards .snap-item{ flex-basis: 50% !important; max-width: 50% !important; padding:5px}
@media (max-width: 992px) {
    .row-cards .snap-item{ flex-basis: 100% !important; max-width: 100% !important;}
}

.border-shape-1{    border-radius: 0px 0.9em 0.5em 0.5em !important;}

/* about islam page's  */
/* Belief Box Styling */
.belief-box {
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.belief-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.belief-box:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.belief-box:hover i, .belief-box:hover p, .belief-box:hover h5 {
    color: white;
}

/* single and about us page hero   */

/* .about-hero {
    background: linear-gradient(var(--primary-color), var(--secondary-color)),
                url('<?php echo get_the_post_thumbnail_url(get_the_ID(), "full"); ?>') center/cover no-repeat;
    color: var(--text-light);
    padding: 140px 0;
    height:70vh;
    text-align: center;
  }
  
  .about-hero h1 {
    font-weight: 700;
    font-size: 3rem;
  }
  
  .about-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 15px auto 0;
  } */
  
  /* .about-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
  }
  
  .about-section h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
  }
  
  .about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
  } */
.event-hero , .about-hero , .single-hero{
    position: relative;
    /* animation: zoomy 30s ease infinite;  */
    height: 80vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-hero::before , .about-hero::before , .single-hero::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    /* background: #495057; */
    filter: opacity(0.5) brightness(0.5);
    z-index: 1;
}

.event-hero .hero-content , .about-hero .hero-content , .single-hero .hero-content {
    position: relative;
    z-index: 2;
    backdrop-filter: brightness(0.95) blur(2.5px);
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    max-width: 900px;
}

.hero-content p {color: var(--text-light);}

.event-hero .hero-content h1 , .about-hero .hero-content h1{
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.35);
    animation: fadeInUp 0.8s ease-out;
}

.event-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.event-hero .hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    animation: fadeInUp 1.2s ease-out;
}

.event-hero .hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.event-hero .hero-meta-item i {
    font-size: 1.3rem;
    color: var(--accent-color);
}



/* CTA Section */
.cta-section {
    padding: 4rem 0;
    /* background: linear-gradient(135deg, var(--primary-color) 40%, var(--secondary-color) 100%); */
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-top: 1rem;
}

.cta-button:hover {
    /* background: #c29d2e; */
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .event-hero .hero-content h1 , .about-hero .hero-content h1  {
        font-size: 2rem;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .event-hero .hero-meta {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .quick-stats {
        margin-top: -30px;
    }
}

@media (max-width: 576px) {
    .event-hero .hero-content h1 , .about-hero .hero-content h1{
        font-size: 1.75rem;
    }
    
    .event-hero , .about-hero{
        height: 80vh;
        min-height: 350px;
    }
    
    .progress-section .donation-card {
        padding: 1.5rem;
    }
}

/* Testionial Section  card */

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 15px;
}
.testimonial-stars {
    color: #ffc107;
    margin-bottom: 15px;
}
.testimonial-message {
    font-style: italic;
    color: #666;
    line-height: 1.6;
}
.testimonial-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}

/* New Gallery vertical scroll css */

/* Layout Variables */
:root {
    --ot-col-w: 240px;
    --ot-gap: 16px;
    --ot-speed: 40s;
}

.ot-gallery-section {
    padding: 60px 0;
    background: #f9f9f9;
    overflow: hidden;
}

/* The Scroll Container */
.ot-gallery-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--ot-gap);
    height: 600px; /* Fixed height for the viewing window */
    overflow: hidden;
    /* Optional: Angle the whole gallery */
    /* transform: rotate(-2deg) scale(1.02); */
}

/* Columns */
.ot-col {
    /* width: var(--ot-col-w); */
    min-width: var(--ot-col-w);
    max-width: var(--ot-col-w);
    height: 100%;
    position: relative;
    /* Fade top/bottom edges */
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

/* Animation Track */
.ot-track {
    display: flex;
    flex-direction: column;
    gap: var(--ot-gap);
    width: 100%;
    animation: otScroll var(--ot-speed) linear infinite;
    will-change: transform;
}
.ot-track.reverse { animation-direction: reverse; }
.ot-gallery-wrapper:hover .ot-track { animation-play-state: paused; }

.ot-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}
.ot-item img:hover { transform: scale(1.03); }

@keyframes otScroll {
    0% { transform: translateY(0%); }
    100% { transform: translateY(-50%); }
}

/* Responsive */
@media (max-width: 1024px) {
    .ot-col.col-4 { display: none; }
    :root { --ot-col-w: 30%; }
}
@media (max-width: 768px) {
    .ot-col.col-3 { display: none; }
    :root { --ot-col-w: 47%; } /* 2 Columns */
    .ot-gallery-wrapper { height: 450px; }
}

/* Lightbox */
.ot-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.ot-lightbox.active { opacity: 1; visibility: visible; }

.ot-lb-content img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
#ot-lb-cap { color: #fff; text-align: center; margin-top: 10px; }

.ot-close, .ot-nav {
    position: absolute; background: none; border: none; color: #fff;
    cursor: pointer; font-size: 30px; padding: 10px; z-index: 10;
    transition: transform 0.2s;
}
.ot-close { top: 20px; right: 20px; font-size: 40px; }
.ot-nav { top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border-radius: 50%; width: 50px; height: 50px; display:flex; align-items:center; justify-content:center;}
.ot-prev { left: 20px; }
.ot-next { right: 20px; }
.ot-nav:hover, .ot-close:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.ot-close:hover { transform: scale(1.1); }


/* Our Teams Card caroucel Design new css  */

/* Scoped Variables using existing color palette */
:root {
    --ot3-primary: var(--primary-color);
    --ot3-primary-fade: var(--primary-color);
    --ot3-text-gray: var(--wndb--color--text--faded);
}

.ot_3-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 50px 0;
    min-height: 600px;
    /* Ensure it doesn't break parent containers */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ot_3-about-title {
    font-size: 7.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
    font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
    background: linear-gradient(
        to bottom,
        rgba(8, 42, 123, 0.35) 30%,
        rgba(255, 255, 255, 0) 76%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 0;
}

.ot_3-carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    position: relative;
    perspective: 1000px;
    margin-top: 5px;
    z-index: 2;
}

.ot_3-carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Renamed from .card to avoid Bootstrap conflict , w-380*/
.ot_3-card {
    position: absolute;
    width: 280px;
    height: 340px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    /* Bootstrap override for box-sizing just in case */
    box-sizing: border-box; 
}

.ot_3-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* States */
.ot_3-card.center { z-index: 10; transform: scale(1.1) translateZ(0); }
.ot_3-card.center img { filter: none; }

.ot_3-card.left-2 { z-index: 1; transform: translateX(-400px) scale(0.8) translateZ(-300px); opacity: 0.7; }
.ot_3-card.left-2 img { filter: grayscale(100%); }

.ot_3-card.left-1 { z-index: 5; transform: translateX(-200px) scale(0.9) translateZ(-100px); opacity: 0.9; }
.ot_3-card.left-1 img { filter: grayscale(100%); }

.ot_3-card.right-1 { z-index: 5; transform: translateX(200px) scale(0.9) translateZ(-100px); opacity: 0.9; }
.ot_3-card.right-1 img { filter: grayscale(100%); }

.ot_3-card.right-2 { z-index: 1; transform: translateX(400px) scale(0.8) translateZ(-300px); opacity: 0.7; }
.ot_3-card.right-2 img { filter: grayscale(100%); }

.ot_3-card.hidden { opacity: 0; pointer-events: none; }

/* Member Info */
.ot_3-member-info {
    text-align: center;
    margin-top: 1.2rem;
    transition: all 0.5s ease-out;
    z-index: 5;
    position: relative;
}

.ot_3-member-name {
    color: var(--ot3-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.ot_3-member-name::before,
.ot_3-member-name::after {
    content: "";
    position: absolute;
    top: 100%;
    width: 100px;
    height: 2px;
    background: var(--ot3-primary);
}

.ot_3-member-name::before { left: -120px; }
.ot_3-member-name::after { right: -120px; }

.ot_3-member-role {
    color: var(--ot3-text-gray);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    margin-top: -15px;
    position: relative;
}

/* Dots */
.ot_3-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    z-index: 5;
    position: relative;
}

.ot_3-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ot3-primary-fade);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ot_3-dot.active {
    background: var(--ot3-primary);
    transform: scale(1.2);
}

/* Nav Arrows */
.ot_3-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
}

.ot_3-nav-arrow:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.ot_3-nav-arrow.ot_3-left { left: 20px; padding-right: 3px; }
.ot_3-nav-arrow.ot_3-right { right: 20px; padding-left: 3px; }

/* Responsive */
@media (max-width: 768px) {
    .ot_3-about-title { font-size: 4.5rem; }
    .ot_3-card { width: 200px; height: 280px; }
    
    /* Adjusted Transforms for Mobile */
    .ot_3-card.left-2 { transform: translateX(-250px) scale(0.8) translateZ(-300px); }
    .ot_3-card.left-1 { transform: translateX(-120px) scale(0.9) translateZ(-100px); }
    .ot_3-card.right-1 { transform: translateX(120px) scale(0.9) translateZ(-100px); }
    .ot_3-card.right-2 { transform: translateX(250px) scale(0.8) translateZ(-300px); }

    .ot_3-member-name { font-size: 2rem; }
    .ot_3-member-role { font-size: 1.2rem; }
    .ot_3-member-name::before, .ot_3-member-name::after { width: 50px; }
    .ot_3-member-name::before { left: -70px; }
    .ot_3-member-name::after { right: -70px; }
}