/*----------------------------------------------------------------------------------------
 * 01.GENERAL STYLE
 *----------------------------------------------------------------------------------------
 */

/*AAAAAAAAAAAAAAAAAAAAAAA!!! CSS VARIABLES & RESET STARTS !!!AAAAAAAAAAAAAAAAAAA*/

:root {
    --thm-font: 'Poppins', sans-serif;
    --thm-font2: 'Courgette', cursive;
    --thm-base: #6861BC;
    --thm-line: linear-gradient(to bottom,#FF416C,#FF4B2B);
    --thm-color: #F15B43;
    --thm-black: #232323;
    --thm-white: #ffffff;
    --thm-ase: #afb2bf;
    --thm-gray: #8e8e8e;
    --thm-f6: #F1F8FF;
    --thm-fb: #f6f6f6;
    --thm-f3: #f3f3f3;
    --thm-p: #6b6f92;
    --border-1: #dddddd;
}

html { 
    overflow-x: hidden; 
    height: 100%; 
}

body {
    font-family: var(--thm-font);
    font-weight: normal;
    font-size: 15px;
    color: var(--thm-p);
    background-color: #fff;
    margin: 0;
}

img { 
    max-width: 100%; 
    height: auto; 
}

a { 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--thm-black);
    font-family: var(--thm-font);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h2 { 
    font-size: 36px; 
}

h3 { 
    font-size: 28px; 
}

h4 { 
    font-size: 20px; 
    font-weight: 600; 
}

ul { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}

p { 
    font-size: 15px; 
    line-height: 1.9; 
    color: var(--thm-p); 
    margin-bottom: 1rem; 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! CSS VARIABLES & RESET ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! UTILITY CLASSES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf_attach_bg { 
    background-position: center; 
    background-size: cover; 
    background-repeat: no-repeat; 
}

.black-bg { 
    background-color: var(--thm-black); 
}

.atf-aicenter { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.atf-section-padding { 
    padding-top: 120px; 
    padding-bottom: 120px; 
}

@media (max-width:991px) { 
    .atf-section-padding { 
        padding-top: 80px; 
        padding-bottom: 80px; 
    } 
}

@media (max-width:576px) { 
    .atf-section-padding { 
        padding-top: 60px; 
        padding-bottom: 60px; 
    } 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! UTILITY CLASSES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! BTN STYLE STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-themes-btn {
    color: var(--thm-white);
    background-color: var(--thm-color);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.atf-themes-btn span { 
    padding: 15px 35px; 
    display: block; 
    position: relative; 
    z-index: 1; 
}

.atf-themes-btn:hover { 
    color: var(--thm-white); 
}

.atf-themes-btn:before, 
.atf-themes-btn:after, 
.atf-themes-btn span:before, 
.atf-themes-btn span:after {
    content: '';
    background: var(--thm-black);
    width: 25%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.3s;
}

.atf-themes-btn:before { 
    transform: scaleY(0.2); 
    transition-delay: 0.3s; 
}

.atf-themes-btn:after { 
    transform: scaleY(0.45); 
    right: 25%; 
    transition-delay: 0.2s; 
}

.atf-themes-btn span:before { 
    transform: scaleY(0.65); 
    right: 50%; 
    transition-delay: 0.1s; 
    z-index: -1; 
}

.atf-themes-btn span:after { 
    transform: scaleY(0.8); 
    right: 75%; 
    transition-delay: 0s; 
    z-index: -1; 
}

.atf-themes-btn:hover:before, 
.atf-themes-btn:hover:after, 
.atf-themes-btn:hover span:before, 
.atf-themes-btn:hover span:after { 
    opacity: 1; 
    transform: scaleY(1); 
}

.atf-themes-btn.orange:before, 
.atf-themes-btn.orange:after, 
.atf-themes-btn.orange span:before, 
.atf-themes-btn.orange span:after { 
    background: linear-gradient(to bottom, #f7b42c, #fc575e); 
}

.atf-themes-btn.blue:before, 
.atf-themes-btn.blue:after, 
.atf-themes-btn.blue span:before, 
.atf-themes-btn.blue span:after { 
    background: linear-gradient(to bottom, #7f53ac, #647dee); 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! BTN STYLE ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! SECTION TITLE STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-section-title .title { 
    font-size: 48px; 
    font-weight: 700; 
    letter-spacing: -2px; 
}

@media (max-width:991px) { 
    .atf-section-title .title { 
        font-size: 36px; 
    } 
}

@media (max-width:575px) { 
    .atf-section-title .title { 
        font-size: 28px; 
    } 
}

.atf-section-title .atf-sheading {
    color: var(--thm-white);
    font-family: var(--thm-font2);
    font-size: 18px;
    background: var(--thm-color);
    display: inline-block;
    padding: 4px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! SECTION TITLE ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! HEADER STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-sticky-header { 
    position: fixed; 
    z-index: 200; 
    width: 100%; 
    top: 0; 
    left: 0; 
}

.atf-top-header {
    position: relative;
    z-index: 1;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    background-color: var(--thm-color);
    overflow: hidden;
}

.atf-top-header::after {
    background: var(--thm-black);
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    right: calc(28% + 0px);
    -webkit-transform: skewX(-30deg);
    transform: skewX(30deg);
    border-right: 4px solid #fff;
}

.atf-top-header .atf-top-header-in { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
    align-items: center; 
    transition: all 0.4s ease; 
}

.atf-top-header-list { 
    list-style: none; 
    display: flex; 
    flex-wrap: wrap; 
}

.atf-top-header-list li { 
    margin-right: 30px; 
    color: rgba(255,255,255,0.8); 
    font-size: 14px; 
    margin-top: 3px; 
}

.atf-top-header-list li i { 
    margin-right: 10px; 
}

.atf-top-header-list li a { 
    color: rgba(255,255,255,0.8); 
}

.atf-top-header-list li a:hover { 
    color: var(--thm-white); 
}

.atf-header-top-right { 
    text-align: right; 
}

.atf-header-top-auth { 
    display: inline-block; 
    margin-right: 10px; 
}

.atf-header-top-auth a { 
    color: rgba(255,255,255,0.8); 
    text-transform: capitalize; 
}

.atf-header-top-auth a i { 
    width: 30px; 
    height: 30px; 
    display: inline-block; 
    text-align: center; 
    line-height: 30px; 
    background: #fff; 
    color: #6861BC; 
    border-radius: 50%; 
    margin-right: 10px; 
}

.atf-header-top-social { 
    display: inline-block; 
}

.atf-header-top-social ul li { 
    display: inline-block; 
    margin-left: 10px; 
}

.atf-header-top-social ul li a { 
    color: rgba(255,255,255,0.8); 
    font-size: 16px; 
}

.atf-header-top-social ul li a:hover { 
    color: var(--thm-white); 
}

.atf-site-header.atf-style1 .atf-main-header-in { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    height: 90px; 
}

.atf-main-header { 
    position: relative; 
    background: var(--thm-black); 
}

.atf-site-branding img { 
    height: 50px; 
    width: auto; 
}

.atf-nav .atf-nav-list { 
    display: flex; 
    margin: 0; 
    padding: 0; 
    list-style: none; 
    text-transform: uppercase; 
    font-size: 14px; 
}

.atf-nav .atf-nav-list > li { 
    margin-right: 25px; 
    font-weight: 500; 
    position: relative; 
}

.atf-nav .atf-nav-list > li > a { 
    color: var(--thm-white); 
    padding: 15px 0; 
    display: inline-block; 
}

.atf-nav .atf-nav-list > li > a:hover, 
.atf-nav .atf-nav-list > li > a.active { 
    color: var(--thm-color); 
}

/* Dropdown Menu */
.atf-nav .atf-nav-list ul { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 200px; 
    background: #fff; 
    border: 1px solid #eaeaea; 
    border-radius: 4px; 
    padding: 0; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s; 
    z-index: 100; 
}

.atf-nav .atf-nav-list li:hover > ul { 
    opacity: 1; 
    visibility: visible; 
    top: 100%; 
}

.atf-nav .atf-nav-list ul li a { 
    display: block; 
    padding: 9px 20px; 
    color: var(--thm-black); 
    border-bottom: 1px solid #ddd; 
    font-size: 14px; 
}

.atf-nav .atf-nav-list ul li a:hover { 
    background: var(--thm-color); 
    color: #fff; 
}

.menu-item-has-children > a i { 
    font-size: 12px; 
}

.atf-menu-toggle, 
.atf-menu-dropdown-toggle { 
    display: none; 
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .atf-top-header { 
        display: none; 
    }
    .atf-nav .atf-nav-list { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--thm-black); 
        padding: 20px; 
        z-index: 999; 
    }
    .atf-nav .atf-nav-list.active { 
        display: flex; 
    }
    .atf-nav .atf-nav-list > li { 
        margin-right: 0; 
        margin-bottom: 15px; 
    }
    .atf-nav .atf-nav-list ul { 
        position: static; 
        width: 100%; 
        background: #333; 
        opacity: 1; 
        visibility: visible; 
        display: none; 
        margin-top: 10px; 
    }
    .atf-nav .atf-nav-list ul li a { 
        color: #ccc; 
    }
    .atf-menu-toggle { 
        display: block; 
        cursor: pointer; 
        width: 28px; 
        height: 27px; 
        position: relative; 
    }
    .atf-menu-toggle span, 
    .atf-menu-toggle span:before, 
    .atf-menu-toggle span:after { 
        width: 100%; 
        height: 2px; 
        background-color: var(--thm-white); 
        display: block; 
    }
    .atf-menu-toggle span { 
        margin: 0 auto; 
        position: relative; 
        top: 12px; 
    }
    .atf-menu-toggle span:before { 
        content: ''; 
        position: absolute; 
        margin-top: -8px; 
    }
    .atf-menu-toggle span:after { 
        content: ''; 
        position: absolute; 
        margin-top: 8px; 
    }
    .atf-menu-dropdown-toggle { 
        display: block; 
        position: absolute; 
        right: 20px; 
        top: 5px; 
        width: 30px; 
        height: 30px; 
        cursor: pointer; 
    }
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! HEADER STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! SLIDER STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-single-slider { 
    min-height: 700px; 
    display: flex; 
    align-items: center; 
    background-size: cover; 
    background-position: center; 
}

.atf-home-overlay { 
    background: rgba(0,0,0,0.5); 
    width: 100%; 
    height: 100%; 
}

.atf-single-text { 
    padding-top: 250px; 
    padding-bottom: 250px; 
}

.atf-single-text .title { 
    color: var(--thm-white); 
    font-size: 60px; 
    font-weight: 700; 
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5); 
    letter-spacing: -2px; 
}

.atf-single-text p { 
    color: var(--thm-white); 
    font-size: 18px; 
    margin: 15px 0 30px; 
}

@media (max-width:991px) { 
    .atf-single-text .title { 
        font-size: 40px; 
    } 
    .atf-single-slider { 
        min-height: 550px; 
    } 
    .atf-single-text { 
        padding-top: 180px; 
        padding-bottom: 180px; 
    } 
}

.owl-nav button { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.3) !important; 
    color: white !important; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    font-size: 20px !important; 
}

.owl-prev { 
    left: 20px; 
}

.owl-next { 
    right: 20px; 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! SLIDER STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! ABOUT STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-about-inner li { 
    line-height: 38px; 
    font-weight: 600; 
    color: var(--thm-black); 
    font-size: 16px; 
}

.atf-about-inner li i { 
    color: var(--thm-color); 
    margin-right: 10px; 
}

.atf_imgradius img { 
    border-radius: 20px; 
    margin-bottom: 20px; 
    width: 100%; 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! ABOUT STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! VIDEO WAVES STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-singl-video { 
    position: relative; 
}

.waves-box { 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 1; 
}

.iq-video { 
    display: inline-block; 
    width: 70px; 
    height: 70px; 
    text-align: center; 
    font-size: 20px; 
    color: white; 
    border-radius: 50%; 
    line-height: 53px; 
    border: 8px solid white; 
    background: var(--thm-color); 
}

.iq-waves { 
    position: absolute; 
    left: -30px; 
    top: -30px; 
}

.iq-waves .waves { 
    position: absolute; 
    width: 130px; 
    height: 130px; 
    background: var(--thm-color); 
    opacity: 0.7; 
    border-radius: 50%; 
    animation: waves 3s ease-in-out infinite; 
}

.wave-1 { 
    animation-delay: 0s; 
}

.wave-2 { 
    animation-delay: 1s; 
}

.wave-3 { 
    animation-delay: 2s; 
}

@keyframes waves { 
    0% { transform: scale(0.2); opacity: 0; } 
    50% { opacity: 0.9; } 
    100% { transform: scale(0.9); opacity: 0; } 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! VIDEO WAVES STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! FEATURE STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-feature-content { 
    margin: 12px 0; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    border-radius: 10px; 
    padding: 20px 25px; 
    background: #fff; 
}

.atf-feature-number { 
    font-size: 50px; 
    font-weight: 700; 
    -webkit-text-stroke: 1px var(--thm-color); 
    color: transparent; 
}

.atf-feature-content h3 { 
    font-size: 22px; 
    margin-bottom: 10px; 
}

.feature-img img { 
    border-radius: 20px; 
    width: 100%; 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! FEATURE STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! CAUSES STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-causes-slide { 
    box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    border-radius: 16px; 
    overflow: hidden; 
    background: #fff; 
    margin-bottom: 30px; 
}

.atf-causes-img img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
}

.atf-causes-content { 
    padding: 20px; 
}

.atf-causes-title { 
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 10px; 
}

.progress { 
    height: 8px; 
    background: #eee; 
    border-radius: 10px; 
    margin: 15px 0; 
}

.progress-bar { 
    background: var(--thm-color); 
    height: 8px; 
    border-radius: 10px; 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! CAUSES STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! TEAM STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-single-team { 
    box-shadow: 7px 5px 30px rgba(72,73,121,0.15); 
    border-radius: 20px; 
    overflow: hidden; 
    background: #fff; 
    margin-bottom: 30px; 
}

.atf-team-title { 
    text-align: center; 
    padding: 20px; 
}

.atf-team-title h3 { 
    font-size: 20px; 
    margin-bottom: 5px; 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! TEAM STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! CONTACT STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-contact-form .form-control { 
    height: 55px; 
    border-radius: 8px; 
    border: 1px solid #ddd; 
    margin-bottom: 20px; 
    padding: 12px 15px; 
}

.atf-contact-form textarea.form-control { 
    height: auto; 
}

.atf-contact-info { 
    padding: 35px; 
    box-shadow: 0px 4px 6px 4px rgba(0,0,0,0.1); 
    border-radius: 20px; 
    background: #f9f9f9; 
}

.atf-contact-details { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 25px; 
    align-items: center; 
}

.atf-contact-icon i { 
    font-size: 28px; 
    width: 60px; 
    height: 60px; 
    line-height: 60px; 
    text-align: center; 
    background: var(--thm-color); 
    color: white; 
    border-radius: 12px; 
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! CONTACT STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/

/*AAAAAAAAAAAAAAAAAAAAAAA!!! FOOTER STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

.atf-footer-link h3 { 
    color: white; 
    margin-bottom: 25px; 
    font-size: 22px; 
}

.atf-list-menu li a { 
    color: #ccc; 
    margin-bottom: 10px; 
    display: inline-block; 
}

.atf-list-menu li a:hover { 
    color: var(--thm-color); 
    padding-left: 5px; 
}

.atf-footer-social-icon a i { 
    font-size: 16px; 
    margin-right: 10px; 
    width: 40px; 
    height: 40px; 
    line-height: 40px; 
    border-radius: 8px; 
    background: var(--thm-base); 
    color: white; 
    text-align: center; 
}

#atf-map-area iframe { 
    width: 100%; 
    height: 180px; 
    border-radius: 12px; 
}

.atf-footer-boottom { 
    text-align: center; 
    padding: 20px 0; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: 40px; 
    color: #aaa; 
}

/* Responsive Footer */
@media (max-width: 991px) {
    .atf-header-top-right { 
        text-align: center; 
        margin-top: 10px; 
    }
    .atf-top-header-list { 
        justify-content: center; 
    }
    .atf-footer-link { 
        margin-top: 30px; 
    }
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! FOOTER STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/


/*AAAAAAAAAAAAAAAAAAAAAAA!!! GALLERY SECTION STYLES STARTS !!!AAAAAAAAAAAAAAAAAAA*/

/* Gallery Grid Styles */
.atf-gallery-area {
    overflow-x: hidden;
}

.gallery-grid {
    margin-top: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.atf-gallery-item {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.atf-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.atf-gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.atf-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 36px;
    margin-bottom: 10px;
}

.gallery-overlay span {
    font-size: 14px;
    font-weight: 500;
    background: var(--thm-color, #F15B43);
    padding: 5px 12px;
    border-radius: 30px;
}

.gallery-caption {
    padding: 15px 20px 20px;
    text-align: center;
}

.gallery-caption h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--thm-black, #232323);
}

.gallery-caption p {
    font-size: 13px;
    color: var(--thm-p, #6b6f92);
    margin-bottom: 0;
}

/* Popup Modal Styles */
.gallery-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.gallery-popup.active {
    display: block;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 85vh;
    margin: 5vh auto;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: var(--thm-color, #F15B43);
    transform: rotate(90deg);
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-nav:hover {
    background: var(--thm-color, #F15B43);
}

.popup-prev {
    left: -60px;
}

.popup-next {
    right: -60px;
}

.popup-content {
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

#popup-image {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    background: #1a1a2e;
    display: block;
}

.popup-caption {
    padding: 20px 25px;
    text-align: center;
    background: white;
}

.popup-caption h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--thm-black, #232323);
}

.popup-caption p {
    font-size: 14px;
    color: var(--thm-p, #6b6f92);
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .popup-nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .popup-prev {
        left: -20px;
    }
    
    .popup-next {
        right: -20px;
    }
    
    .popup-close {
        top: -50px;
        right: 0;
    }
    
    .popup-caption h3 {
        font-size: 20px;
    }
    
    .popup-caption p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .gallery-overlay i {
        font-size: 28px;
    }
    
    .gallery-overlay span {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .gallery-caption {
        padding: 12px 15px 15px;
    }
    
    .gallery-caption h4 {
        font-size: 16px;
    }
    
    .popup-container {
        width: 95%;
        margin: 8vh auto;
        max-height: 80vh;
    }
    
    #popup-image {
        max-height: 55vh;
    }
    
    .popup-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .popup-prev {
        left: -15px;
    }
    
    .popup-next {
        right: -15px;
    }
    
    .popup-caption {
        padding: 15px 20px;
    }
    
    .popup-caption h3 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .popup-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .popup-prev {
        left: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .popup-next {
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .popup-container {
        margin: 10vh auto;
    }
    
    #popup-image {
        max-height: 50vh;
    }
    
    .popup-caption h3 {
        font-size: 16px;
    }
    
    .gallery-caption h4 {
        font-size: 15px;
    }
}

/* Animation for gallery items on scroll */
.atf-gallery-item {
    opacity: 0;
    animation: galleryFadeIn 0.6s ease forwards;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.gallery-grid .col-lg-4:nth-child(1) .atf-gallery-item { animation-delay: 0.05s; }
.gallery-grid .col-lg-4:nth-child(2) .atf-gallery-item { animation-delay: 0.1s; }
.gallery-grid .col-lg-4:nth-child(3) .atf-gallery-item { animation-delay: 0.15s; }
.gallery-grid .col-lg-4:nth-child(4) .atf-gallery-item { animation-delay: 0.2s; }
.gallery-grid .col-lg-4:nth-child(5) .atf-gallery-item { animation-delay: 0.25s; }
.gallery-grid .col-lg-4:nth-child(6) .atf-gallery-item { animation-delay: 0.3s; }

/* Ensure images don't break layout */
.gallery-thumb {
    display: block;
}

/* Popup body scroll lock */
body.popup-open {
    overflow: hidden;
}

/* Additional fallback for missing images */
.atf-gallery-item img[src=""],
.atf-gallery-item img:not([src]) {
    opacity: 0;
    min-height: 200px;
    background: #f0f0f0;
}

/* Smooth transitions */
.atf-gallery-item,
.gallery-overlay,
.gallery-thumb,
.popup-nav,
.popup-close {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect enhancement */
.atf-gallery-item:hover .gallery-caption h4 {
    color: var(--thm-color, #F15B43);
}

/* Title underline effect on hover */
.gallery-caption h4 {
    position: relative;
    display: inline-block;
}

.gallery-caption h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--thm-color, #F15B43);
    transition: width 0.3s ease;
}

.atf-gallery-item:hover .gallery-caption h4::after {
    width: 30px;
}

/*AAAAAAAAAAAAAAAAAAAAAAA!!! GALLERY SECTION STYLES ENDS !!!AAAAAAAAAAAAAAAAAAAAA*/


/* SLIDER STYLES - FIXED VERSION */
.atf-single-slider { 
    min-height: 700px; 
    height: 700px; /* Fixed height add karein */
    display: flex; 
    align-items: center; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

/* Responsive ke liye */
@media (max-width:991px) { 
    .atf-single-slider { 
        min-height: 550px;
        height: 550px;
    } 
}

@media (max-width:576px) { 
    .atf-single-slider { 
        min-height: 400px;
        height: 400px;
    } 
}