/*
Theme Name: Laxminiya Youth Club
Theme URI: https://www.lyc.org.np/
Author: Websoft IT Nepal Pvt. Ltd.
Author URI: https://www.websoftitnepal.com
Description: A premium, modern, and responsive theme for Laxminiya Youth Club.
Version: 1.0.0
Text Domain: lyc
*/

/* ==========================================================================
   Color Palette & Variables
   ========================================================================== */
:root {
    --dark-blue: #161a4f;
    --purple: #3f1885;
    --red: #d32f2f;
    --green: #2e7d32;
    --orange: #e65100;
    --blue: #1976d2;
    --light-gray: #f9f9fb;
    --font-main: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-main);
    color: #444;
    overflow-x: hidden;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Colors Classes */
.color-dark-blue { color: var(--dark-blue); }
.bg-dark-blue { background-color: var(--dark-blue); }
.bg-gradient-blue { background: linear-gradient(135deg, var(--dark-blue) 0%, #1e246a 100%); }
.color-purple { color: var(--purple); }
.bg-purple { background-color: var(--purple); }
.color-purple-bg { background-color: var(--purple); }
.color-red { color: var(--red); }
.bg-red { background-color: var(--red); }
.color-red-bg { background-color: var(--red); }
.color-green { color: var(--green); }
.bg-green { background-color: var(--green); }
.color-green-bg { background-color: var(--green); }
.color-orange { color: var(--orange); }
.bg-orange { background-color: var(--orange); }
.color-orange-bg { background-color: var(--orange); }
.color-blue { color: var(--blue); }
.bg-blue { background-color: var(--blue); }
.bg-blue-bg { background-color: var(--blue); }
.bg-light-gray { background-color: var(--light-gray); }

/* Typography & Utils */
.rounded-custom { border-radius: 16px; }
.section-padding { padding: 90px 0; }
.shadow-sm { box-shadow: 0 4px 15px rgba(22,26,79,0.05) !important; }
.shadow-premium { box-shadow: 0 12px 35px rgba(22,26,79,0.08), 0 2px 5px rgba(0,0,0,0.03) !important; }
.tracking-wide { letter-spacing: 1px; }
.hover-opacity { transition: opacity 0.3s ease; }
.hover-opacity:hover { opacity: 0.8; }
.transition-all { transition: all 0.3s ease; }
.hover-purple:hover { color: var(--purple) !important; }

/* Interactive Animations */
.hover-lift { transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.hover-lift:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(22,26,79,0.12) !important; }
.hover-lift-slight { transition: transform 0.3s ease; }
.hover-lift-slight:hover { transform: translateY(-3px); }
.hover-zoom { transition: transform 0.5s ease; }
.hover-zoom:hover { transform: scale(1.02); }

/* ==========================================================================
   Top Bar & Navbar
   ========================================================================== */
.top-bar {
    background-color: var(--dark-blue);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 14px;
    transition: 0.3s;
}
.top-bar .social-icons a:hover { color: var(--red); transform: translateY(-2px); display: inline-block; }

.brand-logo { 
    height: 48px; 
    transition: transform 0.3s ease;
}
.brand-logo:hover { transform: scale(1.02); }

.navbar-nav .nav-link {
    color: var(--dark-blue);
    font-size: 15px;
    padding: 8px 18px !important;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover { color: var(--purple); }
.navbar-nav .active-link {
    background-color: var(--purple);
    color: #fff !important;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(63, 24, 133, 0.3);
}

.btn-join {
    background: linear-gradient(135deg, var(--purple) 0%, #5725b3 100%);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}
.btn-join:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1e246a 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 26, 79, 0.2);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    min-width: 220px;
    padding: 10px 0;
    margin-top: 15px;
}
.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-blue);
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--light-gray);
    color: var(--purple);
    padding-left: 25px; 
}
@media (min-width: 1200px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeUp 0.3s ease forwards;
    }
    .navbar .dropdown-menu {
        display: none;
        position: absolute;
    }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-img {
    height: 650px;
    background-size: cover;
    background-position: center top;
}
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}
.hero-slider .owl-nav button {
    pointer-events: auto;
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.85) !important;
    color: var(--dark-blue) !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease !important;
}
.hero-slider .owl-nav button:hover {
    background: var(--purple) !important;
    color: #fff !important;
    transform: scale(1.1);
}
.hero-slider .owl-dots {
    position: absolute;
    bottom: 90px;
    left: 90px;
}
.hero-slider .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px 8px;
    background: #fff;
    opacity: 0.4;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}
.hero-slider .owl-dots .owl-dot.active span {
    opacity: 1;
    transform: scale(1.4);
    background: var(--purple);
}

/* ==========================================================================
   Sections & Elements
   ========================================================================== */
.feature-bar { margin-top: -65px; position: relative; z-index: 10; }
.feature-wrap { display: flex; justify-content: space-between; align-items: center; }
.feature-item { display: flex; align-items: center; padding: 15px 25px; flex: 1; cursor: default; border-radius: 12px; }
.f-icon { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-right: 18px; color: #fff; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.dot-pattern { position: absolute; width: 120px; height: 120px; background-image: radial-gradient(var(--dark-blue) 1.5px, transparent 1.5px); background-size: 18px 18px; z-index: 0; opacity: 0.15; }
.dot-pattern.top-left { top: -20px; left: 10px; }
.dot-pattern.bottom-right { bottom: -20px; right: 10px; }
.about-img { border: 8px solid #fff; z-index: 1; position: relative; }
.floating-stat { position: absolute; bottom: -20px; right: -20px; z-index: 2; border: 3px solid #fff; }
.border-start-lg { border-left: 1px solid rgba(0,0,0,0.05); }

.program-card { transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.icon-wrapper { transition: all 0.3s ease; }
.program-card:hover .icon-wrapper { transform: scale(1.1); }

.date-box { width: 70px; height: 75px; display: flex; flex-direction: column; justify-content: center; align-items: center; flex-shrink: 0; }
.gallery-img { width: 100%; height: 110px; object-fit: cover; cursor: pointer; }

.cta-banner { background: linear-gradient(90deg, var(--dark-blue) 0%, rgba(22,26,79,0.85) 100%), url('https://images.unsplash.com/photo-1529390079861-591de354faf5?auto=format&fit=crop&w=1920') right center/cover; }
.cta-btn { box-shadow: 0 10px 25px rgba(0,0,0,0.2); transition: all 0.3s ease; }
.cta-btn:hover { background-color: var(--purple) !important; color: #fff; }

#backToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: linear-gradient(135deg, var(--purple) 0%, #5725b3 100%); color: white; border: none; border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 999; cursor: pointer; }
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(63, 24, 133, 0.5) !important; }

.footer a { color: #fff; text-decoration: none; transition: all 0.3s ease; opacity: 0.6; }
.footer a:hover { opacity: 1; padding-left: 8px; color: var(--red); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .feature-wrap { flex-wrap: wrap; }
    .feature-item { flex: 1 1 30%; border-start: none !important; border-bottom: 1px solid #f1f1f1; border-radius: 0; }
    .hero-img { height: 550px; }
}
@media (max-width: 991px) {
    .hero-img { height: 450px; }
    .hero-slider .owl-dots { left: 50%; transform: translateX(-50%); bottom: 30px; }
    .feature-bar { margin-top: -30px; }
    .feature-item { flex: 1 1 50%; padding: 20px; }
    .border-start-lg { border-left: none; padding-left: 0 !important; margin-top: 30px; }
    .border-end-md { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
    .cta-banner { text-align: center; background-position: center; }
    .cta-banner .text-md-end { text-align: center !important; padding-top: 0 !important; }
}
@media (max-width: 768px) {
    .hero-img { height: 400px; }
    .feature-item { flex: 1 1 100%; border-bottom: 1px solid #f1f1f1; }
    .program-row > div { width: 50%; } 
    .about-img { margin-top: 30px; margin-bottom: 30px; width: 100%; }
    .floating-stat { right: auto; left: 50%; transform: translateX(-50%); bottom: -15px; width: max-content; }
    .section-padding { padding: 60px 0; }
    #backToTop { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 18px; }
}
@media (max-width: 576px) {
    .hero-slider .owl-nav { display: none; }
    .display-5 { font-size: 2.2rem; }
    .display-6 { font-size: 1.8rem; }
    .gallery-img { height: 90px; }
    .date-box { width: 60px; height: 65px; }
    .cta-banner { margin-left: 15px !important; margin-right: 15px !important; padding: 15px; }
}

/* ==========================================================================
   Page Template & Editor Formatting
   ========================================================================== */

/* Page Banner */
.page-banner {
    overflow: hidden;
    border-bottom: 4px solid var(--red);
}
.page-banner .breadcrumb-item + .breadcrumb-item::before {
    content: "\f105"; /* FontAwesome angle-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
}

/* WordPress Editor Content Wrapper */
.text-content-wrapper {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}
.text-content-wrapper h1,
.text-content-wrapper h2,
.text-content-wrapper h3,
.text-content-wrapper h4,
.text-content-wrapper h5,
.text-content-wrapper h6 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}
.text-content-wrapper h1:first-child,
.text-content-wrapper h2:first-child {
    margin-top: 0; /* Prevents unwanted gap if the content starts with a heading */
}
.text-content-wrapper p {
    margin-bottom: 1.3em;
}
.text-content-wrapper a {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.text-content-wrapper a:hover {
    color: var(--red);
}
.text-content-wrapper ul,
.text-content-wrapper ol {
    margin-bottom: 1.5em;
    padding-left: 1.5rem;
}
.text-content-wrapper li {
    margin-bottom: 0.5em;
}
.text-content-wrapper li::marker {
    color: var(--purple);
    font-weight: bold;
}
.text-content-wrapper blockquote {
    border-left: 4px solid var(--red);
    padding: 1.2rem 1.5rem;
    background-color: var(--light-gray);
    font-style: italic;
    margin: 1.5em 0;
    border-radius: 0 12px 12px 0;
    color: var(--dark-blue);
}
.text-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* WordPress Core Default Classes (Required for Image Alignment) */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 15px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 100%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 13px; line-height: 1.5; margin: 0; padding: 10px 5px 5px; color: #777; }

/* Page Featured Image Styling */
.page-thumb-img {
    max-height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transition: transform 0.5s ease;
}
.page-featured-image:hover .page-thumb-img {
    transform: scale(1.02);
}


/* ==========================================================================
   Team Page Styles (Modern Circle Avatar with Overlapping Social)
   ========================================================================== */
.team-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

/* The Gradient Ring Wrapper */
.team-image-wrapper {
    width: 140px; /* Slightly scaled down to match smaller fonts */
    height: 140px;
    border-radius: 50%;
    padding: 4px; /* Thickness of the gradient ring */
    background: linear-gradient(135deg, var(--purple) 0%, var(--red) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Perfectly Circular Image */
.team-img-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff; /* Creates a clean gap between the image and the colored ring */
    background-color: #fff;
    transition: transform 0.4s ease;
}

/* Hover effect zooms the image slightly inside the ring */
.team-card:hover .team-img-circle {
    transform: scale(1.04);
}

/* Social Icon Styling (Overlapping Bottom) */
.team-social {
    z-index: 5;
}
.team-social a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--purple); /* Solid background to overlay clearly */
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #fff; /* White border creates a cutout effect */
}
.team-social a:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(22, 26, 79, 0.3) !important;
}

/* Call Button Hover */
.btn-outline-light:hover.hover-purple {
    background-color: var(--purple);
    color: white !important;
    border-color: var(--purple) !important;
}
.btn-outline-light:hover.hover-purple i {
    color: white !important;
}