/*
ALYSSAH Foundation - Custom Branding CSS
Brand Colors:
- Primary: #538dca 
- Secondary: #26955a
Body Font: Poppins (headings keep original Inter font)

This file is loaded last to ensure all font and color overrides take precedence.
*/

/* Poppins Font Classes */
.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Global Font Override - Set Poppins as body font, PRESERVE headings */
body {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
    font-style: normal;
}

/* Paragraphs - Poppins */
p {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
    color: #333333; /* Better readability than the original light color */
}

/* PRESERVE Original Heading Fonts - Do NOT override */
/* h1, h2, h3, h4, h5, h6 will keep their original Inter font */

/* Navigation Menu Styling - Poppins with ALYSSAH Brand Colors */
.main_menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main_menu li {
    position: relative;
}

.main_menu li a {
    font-family: "Poppins", sans-serif !important;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.main_menu li a:hover {
    color: #538dca !important;
}

.main_menu li.current-menu-item a,
.main_menu li.current_page_item a {
    color: #538dca !important;
    font-weight: 600;
}

/* Navigation hover underline effect */
.main_menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #538dca 0%, #26955a 100%);
    transition: width 0.3s ease;
}

.main_menu li a:hover::after,
.main_menu li.current-menu-item a::after,
.main_menu li.current_page_item a::after {
    width: 100%;
}

/* Mobile menu styling */
@media (max-width: 1199px) {
    .main_menu {
        flex-direction: column;
        gap: 15px;
        background: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 200px;
        z-index: 1000;
    }
    
    .main_menu li a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main_menu li:last-child a {
        border-bottom: none;
    }
}

/* Other navigation and links */
.topbar_contact a,
.footer_section a,
nav a {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
}

/* Buttons - Poppins with Animations and Brand Colors */
.btn_primary,
.btn_outline,
button,
input[type="submit"],
.hero_btn a {
    font-family: "Poppins", sans-serif !important;
    font-weight: 500; /* Medium weight for buttons */
    display: inline-block;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    z-index: 1;
}

/* Primary Button Styles */
.btn_primary {
    background-color: #538dca !important;
    color: #ffffff !important;
    border: 2px solid #538dca !important;
}

.btn_primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn_primary:hover {
    background-color: #26955a !important;
    border-color: #26955a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(38, 149, 90, 0.3);
}

.btn_primary:hover::before {
    left: 100%;
}

.btn_primary:active {
    transform: translateY(0);
}

/* Outline Button Styles */
.btn_outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.btn_outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn_outline:hover::before {
    left: 100%;
}

.btn_outline:active {
    transform: translateY(0);
}

/* Button Icons */
.btn_primary i,
.btn_outline i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn_primary:hover i,
.btn_outline:hover i {
    transform: translateX(3px);
}

/* Hero Button Container */
.hero_btn {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .hero_btn {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .btn_primary,
    .btn_outline {
        text-align: center;
        width: 100%;
        padding: 14px 20px;
    }
}

/* Hero button - Use green for better contrast over blue background */
.hero_slider .hero_slider_item .content .hero_btn .btn_primary {
    background-color: #26955a !important;
    border-color: #26955a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(38, 149, 90, 0.3);
}

.hero_slider .hero_slider_item .content .hero_btn .btn_primary:hover {
    background-color: #1e7a47 !important;
    border-color: #1e7a47 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 122, 71, 0.4);
}

/* Other buttons keep original blue styling */
.header_section_s4 .hero_slider_item .content .hero_btn .btn_primary,
.static_hero .content .hero_btn .btn-1 .btn_primary,
.about_section_s2 .about_left-content .about_btn .btn_primary,
.video_section .video_wrap .content .btn_primary,
.video_section_s2 .video_wrap .content .btn_primary,
.about_section_s3 .about_left-content .btn_primary,
.error_page .content .btn_primary,
.contact_section .contact_from .from_wrap .btn_primary,
.contact_page .contact_from .from_wrap .btn_primary,
.donat_section .left_content .btn_primary {
    background-color: #538dca;
    border-color: #538dca;
    color: #ffffff;
}

.header_section_s4 .hero_slider_item .content .hero_btn .btn_primary:hover,
.static_hero .content .hero_btn .btn-1 .btn_primary:hover,
.about_section_s2 .about_left-content .about_btn .btn_primary:hover,
.video_section .video_wrap .content .btn_primary:hover,
.video_section_s2 .video_wrap .content .btn_primary:hover,
.about_section_s3 .about_left-content .btn_primary:hover,
.error_page .content .btn_primary:hover,
.contact_section .contact_from .from_wrap .btn_primary:hover,
.contact_page .contact_from .from_wrap .btn_primary:hover,
.donat_section .left_content .btn_primary:hover {
    background-color: #26955a;
    border-color: #26955a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(38, 149, 90, 0.3);
}

/* Form Elements - Poppins */
input, textarea, select {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
}

/* This is now handled by the comprehensive button styling above */

/* This is now handled by the comprehensive button styling above */

/* Progress bars using brand colors */
.progress-bar {
    font-family: "Poppins", sans-serif !important;
    font-weight: 600;
}

.progress-bar[style*="background-color: #e74c3c"] {
    background-color: #538dca !important; /* Use primary brand color */
}

.progress-bar[style*="background-color: #3498db"] {
    background-color: #26955a !important; /* Use secondary brand color */
}

.progress-bar[style*="background-color: #f39c12"] {
    background-color: #538dca !important; /* Use primary brand color */
}

/* Secondary Brand Color (#26955a) Applications */
.features_section .item:hover .shape-active,
.about_btn .btn_primary:hover {
    background-color: #26955a !important;
}

/* Links and accents */
a {
    color: #538dca;
}

a:hover {
    color: #26955a;
}

/* Section subtitles - Poppins (main titles keep Inter) */
.section_title .sub_title {
    color: #26955a !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600;
}

/* Counter section with brand colors */
.counter_item .counter_icon i {
    color: #538dca !important;
}

.counter_section {
    background-color: #538dca !important; /* Primary brand background */
}

/* CTA section with brand styling */
.cta_section {
    background: linear-gradient(135deg, #538dca 0%, #26955a 100%) !important;
}

/* Partnership cards hover effects */
.partnership_card:hover {
    background: rgba(38, 149, 90, 0.2) !important; /* Secondary color with transparency */
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Features section brand colors */
.features_section .item .shape-active {
    display: block;
}

.features_section .item:hover {
    background: linear-gradient(135deg, rgba(83, 141, 202, 0.1) 0%, rgba(38, 149, 90, 0.1) 100%);
}

/* Blog/News section */
.blog_item:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(83, 141, 202, 0.2);
}

/* Testimonial section */
.testimonial_item {
    border-left: 4px solid #26955a !important;
}

/* Footer headings keep Inter font, only body text uses Poppins */
.footer_section .widget_column h2 {
    color: #538dca !important;
    /* Keep original Inter font for headings */
}

.footer_section p,
.footer_section span,
.footer_section a {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
}

.header_topbar .topbar_contact {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header_topbar .topbar_social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font: 0.8rem;
}

/* Top Bar Contact Links - Subtle hover effects */
.header_topbar .topbar_contact a {
    color: #ffffff !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header_topbar .topbar_contact a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px);
}

.header_topbar .topbar_contact a i {
    transition: all 0.3s ease;
    font-size: 14px;
}

.header_topbar .topbar_contact a:hover i {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1);
}

/* Social Icons - No background, just color changes */
.topbar_social a {
    background: none !important;
    background-color: transparent !important;
    color: #ffffff !important;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.topbar_social a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    background: none !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.05);
}

.topbar_social a i {
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Footer social icons - keep existing styling or use similar approach */
.social_widget li a {
    background-color: #538dca !important;
    transition: all 0.3s ease;
}

.social_widget li a:hover {
    background-color: #26955a !important;
    transform: translateY(-2px);
}

/* Hero section branding */
/* Hero title keeps Inter font - do not override */
/* .hero_slider_item .content .title h2 - preserve original font */

.hero_slider_item .content .text p {
    color: #ffffff !important; /* Better contrast for hero text */
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
}

/* Service/Initiative cards */
.service_item:hover {
    box-shadow: 0 15px 40px rgba(83, 141, 202, 0.3);
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.service_item .read_more {
    color: #538dca !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 500;
}

.service_item .read_more:hover {
    color: #26955a !important;
}

/* About section */
.about_list ul li i {
    color: #26955a !important;
}

/* Form styling with brand colors */
.search_fild {
    font-family: "Poppins", sans-serif !important;
    font-weight: 400;
}

.input-box button {
    background-color: #538dca !important;
}

.input-box button:hover {
    background-color: #26955a !important;
}

/* Additional brand color utilities */
.text-primary-brand {
    color: #538dca !important;
}

.text-secondary-brand {
    color: #26955a !important;
}

.bg-primary-brand {
    background-color: #538dca !important;
}

.bg-secondary-brand {
    background-color: #26955a !important;
}

/* Mobile responsiveness for fonts and top bar */
@media (max-width: 768px) {
    body, p, div, span, a, button, input, textarea, select {
        font-family: "Poppins", sans-serif !important;
    }
    
    /* Keep headings with original Inter font */
    /* h1, h2, h3, h4, h5, h6 - preserve original fonts */
    
    /* Top bar mobile adjustments */
    .header_topbar .topbar_contact {
        gap: 15px;
    }
    
    .header_topbar .topbar_contact a {
        font-size: 12px;
    }
    
    .header_topbar .topbar_social {
        gap: 8px;
    }
    
    .topbar_social a {
        width: 30px !important;
        height: 30px !important;
    }
    
    .topbar_social a i {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .header_topbar .container .row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header_topbar .col-8,
    .header_topbar .col-4 {
        flex: none;
        width: 100%;
    }
    
    .header_topbar .topbar_contact {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header_topbar .topbar_social {
        justify-content: center;
    }
}

/* Hero Slider Enhancements */
.hero_slider {
    position: relative;
    display: block;
    width: 100%;
    min-height: 90vh;
}

/* Hero slider items */
.hero_slider .hero_slider_item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 90vh;
}

/* Before slick initializes, hide all but first slide */
.hero_slider:not(.slick-initialized) .hero_slider_item:not(:first-child) {
    display: none;
}

.hero_slider:not(.slick-initialized) .hero_slider_item:first-child {
    display: flex;
    align-items: center;
}

/* When slick is initialized */
.hero_slider.slick-initialized .hero_slider_item {
    display: flex !important;
    align-items: center;
}

.hero_slider .slick-slide {
    height: inherit;
}

/* Ensure first slide is always visible as fallback */
.hero_slider .hero_slider_item:first-child {
    display: flex !important;
    align-items: center;
}

/* Additional slider reliability improvements */
.hero_slider.slick-initialized {
    opacity: 1;
    visibility: visible;
}

.hero_slider:not(.slick-initialized) {
    opacity: 1;
    visibility: visible;
}

/* Ensure smooth initialization */
.hero_slider .hero_slider_item {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

.hero_slider:not(.slick-initialized) .hero_slider_item:not(:first-child) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Smooth fade transitions */
.hero_slider.slick-initialized .slick-slide {
    transition: opacity 0.6s ease-in-out;
}

/* Content animation */
.hero_slider_item .content > * {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.hero_slider_item .title {
    animation-delay: 0.2s;
}

.hero_slider_item .text {
    animation-delay: 0.4s;
}

.hero_slider_item .hero_btn {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero_slider .slick-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    /* z-index: 10; */
    align-items: center;
}

.hero_slider .slick-dots li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero_slider .slick-dots li:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero_slider .slick-dots li.slick-active {
    width: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1);
}

.hero_slider .slick-dots li button {
    display: none; /* Hide default button */
}

/* Hero navigation arrows - Modern and subtle */
.hero_slider .slick-prev,
.hero_slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.hero_slider:hover .slick-prev,
.hero_slider:hover .slick-next {
    opacity: 1;
    visibility: visible;
}

.hero_slider .slick-prev:hover,
.hero_slider .slick-next:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.hero_slider .slick-prev {
    left: 30px;
}

.hero_slider .slick-next {
    right: 30px;
}

.hero_slider .slick-prev:before,
.hero_slider .slick-next:before {
    font-family: "themify";
    font-size: 12px;
    color: currentColor;
}

.hero_slider .slick-prev:before {
    content: "\e628"; /* Themify left arrow */
}

.hero_slider .slick-next:before {
    content: "\e627"; /* Themify right arrow */
}

/* Hero slider item enhancements */
.hero_slider_item {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero_slider_item .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.hero_slider_item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero_slider_item .container,
.hero_slider_item .hero_content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero_slider_item .content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    padding-right: 40px;
}

/* Light overlay for text readability - Much clearer background */
.hero_slider_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(20, 64, 71, 0.4) 0%,
        rgba(83, 141, 202, 0.3) 40%,
        rgba(83, 141, 202, 0.1) 70%,
        transparent 100%
    );
    z-index: 2;
}


/* Hero text styling */
.hero_slider_item .title h2 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero_slider_item .text p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    line-height: 1.6;
}

.hero_slider_item .shado_text span {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* Mobile responsiveness for hero slider */
@media (max-width: 768px) {
    .hero_slider .slick-prev,
    .hero_slider .slick-next {
        display: none !important; /* Hide arrows on mobile */
    }
    
    .hero_slider .slick-dots {
        bottom: 25px;
        gap: 8px;
    }
    
    .hero_slider .slick-dots li {
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.4);
    }
    
    .hero_slider .slick-dots li.slick-active {
        width: 18px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .hero_slider_item {
        min-height: 60vh;
    }
    
    .hero_slider_item::before {
        width: 100%;
        background: linear-gradient(
            180deg,
            rgba(20, 64, 71, 0.3) 0%,
            rgba(83, 141, 202, 0.4) 100%
        );
    }
    
    .hero_slider_item .content {
        max-width: 100%;
        padding-right: 20px;
        text-align: center;
    }
    
    
    .hero_slider_item .text p {
        font-size: 16px;
    }
}

/* Key services section colored backgrounds */
#key-services {
    padding: 80px 0;
    background: #f8f9fa;
}

#key-services .item {
    border-radius: 50px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* First item - Orange */
#key-services .row > div:nth-child(1) .item {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Second item - Teal */
#key-services .row > div:nth-child(2) .item {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
}

/* Third item - Purple */
#key-services .row > div:nth-child(3) .item {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
}

/* White text and icons for colored backgrounds */
#key-services .item .content h2,
#key-services .item .content span {
    color: #ffffff !important;
}

#key-services .item .icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#key-services .item .icon img {
    filter: brightness(0) invert(1);
    width: 40px;
    height: 40px;
}

/* Hide shape elements for cleaner look */
#key-services .item .shape,
#key-services .item .shape-active {
    display: none;
}

/* Hover effects */
#key-services .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive styling for colored features */
@media (max-width: 768px) {
    #key-services .item {
        padding: 30px 20px;
        margin-bottom: 20px;
        border-radius: 30px;
    }
    
    #key-services .item .icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    #key-services .item .icon img {
        width: 30px;
        height: 30px;
    }
    
    #key-services .item .content h2 {
        font-size: 20px !important;
        margin-bottom: 10px;
    }
    
    #key-services .item:hover {
        transform: translateY(-5px);
    }
}

/* Print styles */
@media print {
    body, p, div, span, a {
        font-family: "Poppins", sans-serif !important;
    }
    /* Headings keep original font in print too */
}
