/* Custom CSS for the Landing Page */

:root {
    --theme-color: #137796;
    --primary-color: #00796b;
    --secondary-color: #fdd835;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-family: 'Poppins', sans-serif;
    --light-dark: #00000045;;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00796bd1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 6px solid #fdd835;
    border-top: 6px solid #137796;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #495057;
}
.main-content {
    min-height: calc(100vh - 428px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lead {
    font-weight: 400;
    color: #6c757d;
}

/* Header & Sticky Navbar */
#header {
    background-color: var(--light-dark);
    transition: background-color 0.3s
    ease-in-out, box-shadow 0.3s
    ease-in-out;
    z-index: 1030;
}

.__bg_dark {
    background-color: rgba(37, 37, 37, 1)!important;
}

#header.scrolled {
    background-color: rgba(37, 37, 37, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-logo {
    width: 150px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    color: #fff !important;
}

.social-icon {
    font-size: 1.2rem;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color) !important;
}

/* Banner Slider */
.banner-section {
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    filter: brightness(0.6);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.banner-content {
    max-width: 600px;
}

.banner-content h1 {
    font-size: 4.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.btn-explore {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-explore:hover {
    background-color: #ffc107;
}

/* General Buttons */
.btn-donate {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-donate:hover {
    background-color: #004d40;
}

/* Moments Section */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.position-relative:hover .image-overlay {
    opacity: 1;
}

/* Founder Speech Section */
#founder-speech-section {
    background-color: var(--theme-color);
    background-size: cover;
    background-position: center;
}

.founder-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Our Impact Section */
#impact-section {

}
#impact-section .impact-info{
    background-image: url("../img/impact.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.impact-text {
    font-size: 1.2rem;
    font-weight: 500;
}
.banner-section .item img {
    width: 100%;
    height: calc(100vh - 180px);
    object-fit: cover;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

.impact-text {
    font-size: 1.1rem;
    color: #f1f1f1;
}

/* Adjust overlay */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Responsive text */
.banner-content h1 {
    font-size: 5rem;
    line-height: 1.2;
}
.banner-content p {
    font-size: 1rem;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-img {
    height: 300px!important;
}
.impact-counter .icon i {
    font-size: 50px;
    margin-bottom: 20px;
}

#working-area-section {
    background-image: url("../img/area.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Working Area Section */
#working-area-section img {
    width: 100%;
}
.map-section {
    width: 100%;
}

.dropdown-menu .dropdown-menu {
    display: none; /* hide by default */
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-menu > .dropdown:hover > .dropdown-menu {
    display: block; /* only show hovered submenu */
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .banner-section .item img {
        height: 70vh;  /* Smaller height on tablets */
    }
    .banner-content h1 {
        font-size: 1.6rem;
    }
    .banner-content p {
        font-size: 0.9rem;
    }
}

/* Navigation arrows positioning */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 10px;
}

.owl-nav button {
    background: rgba(0,0,0,0.5);
    color: #fff !important;
    font-size: 28px !important;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: none;
    pointer-events: auto;
    transition: 0.3s;
}

.owl-nav button:hover {
    background: var(--secondary-color)
}

/* Footer */
#footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

#footer a:hover {
    color: #fff;
}

.footer-logo {
    width: 250px;
}

.__menu-top ul li {
    padding: 0 15px;
    position: relative;
}
.__menu-top ul li ul {
    display: none;
}
.__menu-top ul li:hover {
    cursor: pointer;
    color: var(--secondary-color)!important;
    background-color: transparent!important;
}
.navbar-nav .nav-item:hover .nav-link{
    cursor: pointer;
    color: var(--secondary-color)!important;
}

.__menu-top .dropdown-menu {
    background-color: rgba(10, 10, 10, 0.67);
    color: #fff;
    padding: 0;
}

.__multi-submenu ul li {
    color: #fff!important;
}

.__menu-top .nav-item .dropdown-menu li a {
    color: #fff;
    text-decoration: none;
}
.dropdown-menu li:hover a{
    cursor: pointer;
    color: var(--secondary-color)!important;
}

.footer-text {
    color: #ccc;
}

.dropdown-menu li{
    border-bottom: 1px solid #515151;
    padding: 10px!important;
}

.__theme-bg {
    background-color: var(--theme-color);
    color: var(--light-color);
}

.__theme-input {
    height: 50px;
}

.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.banner-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out;
}

.banner-content.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-explore {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-explore:hover {
    background: #e05500;
}

/* Custom nav arrows */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.owl-nav button {
    background: rgba(0,0,0,0.5);
    color: #fff !important;
    font-size: 28px !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    pointer-events: auto;
    transition: 0.3s;
}

.owl-nav button:hover {
    background: #ff6600;
}
.banner-content h1,
.banner-content p,
.banner-content a {
    opacity: 0;
    transform: translateY(-20px);
}


.crss_card--1 .crss_card__img, .crss_card--1 .crss_card__img--hover {
    /*background-image: url('https://images.pexels.com/photos/45202/brownie-dessert-cake-sweet-45202.jpeg');*/
}

.crss_card__like {
    width: 18px;
}

.crss_card__clock {
    width: 15px;
    vertical-align: middle;
    fill: #AD7D52;
}
.crss_card__time {
    font-size: 12px;
    color: #AD7D52;
    vertical-align: middle;
    margin-left: 5px;
}

.crss_card__clock-info {
    float: right;
}

.crss_card__img {
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 235px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;

}

.crss_card__info-hover {
    position: absolute;
    padding: 16px;
    width: 100%;
    opacity: 0;
    top: 0;
}

.crss_card__img--hover {
    transition: 0.2s all ease-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: absolute;
    height: 235px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    top: 0;

}
.crss_card {
    margin-right: 25px;
    transition: all .4s cubic-bezier(0.175, 0.885, 0, 1);
    background-color: #fff;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 13px 10px -7px rgba(0, 0, 0,0.1);
}
.crss_card:hover {
    box-shadow: 0px 30px 18px -8px rgba(0, 0, 0,0.1);
    /*transform: scale(1.10, 1.10);*/
}

.crss_card__info {
    z-index: 2;
    background-color: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 16px 24px 24px 24px;
    line-height: 1.2;
}

.crss_card__category {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #868686;
}

.crss_card__title {
    margin-top: 5px;
    margin-bottom: 10px;
    font-family: 'Roboto Slab', serif;
}

.crss_card__by {
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.crss_card__author {
    font-weight: 600;
    text-decoration: none;
    color: #AD7D52;
}

.crss_card:hover .crss_card__img--hover {
    height: 100%;
    opacity: 0.3;
}

.crss_card:hover .crss_card__info {
    background-color: transparent;
    position: relative;
}

.crss_card:hover .crss_card__info-hover {
    opacity: 1;
}
.lm2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.crss_card__info a{
    text-decoration: none;
}


/* Keyframes */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* When active, animate one by one */
.banner-content.active h1 {
    animation: fadeDown 1s ease forwards;
    animation-delay: 0.3s;
}

.banner-content.active p {
    animation: fadeDown 1s ease forwards;
    animation-delay: 0.8s;
}

.banner-content.active a {
    animation: fadeDown 1s ease forwards;
    animation-delay: 1.3s;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: left;
    height: 100%;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card .icon-wrapper {
    background-color: rgba(255, 62, 84, 0.15);
    border-radius: 10px;
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}
.feature-card .content-wrapper {
    flex-grow: 1;
}

.moments-info {
    margin-top: 10px;
    line-height: 0;
}

.__theme-color {
    color: var(--theme-color);
}


.page-header {
    background-image: url('../img/page-header-bg.png');
    background-size: cover;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Puts the overlay on top of the background image */
}

.header-content {
    position: relative;
    color: #fff; /* Sets the text color to white */
    text-align: center;
    z-index: 2; /* Puts the text on top of the overlay */
}

.header-content h1 {
    font-size: 3em;
    font-weight: bold;
    margin: 0;
    color: #eee;
}

.header-content p {
    font-size: 1em;
    margin-top: 5px;
}
.header-content a {
    font-size: 1em;
    margin-top: 5px;
    font-weight: 600;
    text-decoration: none;
    color: #febe20;
}
.page-badge {
    background-color: rgba(255, 237, 230, 1);
    font-size: 18px;
    color: rgba(37, 37, 37, 1);
}
.page-title {
    color: rgba(37, 37, 37, 1);
    font-size: 48px;
}
.page-paragraph {
    font-weight: 400;
    font-size: 18px;
    line-height: 40px;
}

.page-bg1 {
    background-color: #eeeeee;
}
.page-bg2 {
    background-color: #cddce1;
}

.page-list {
    font-weight: 400;
    font-size: 18px;
    line-height: 40px;
    color: rgba(0, 0, 0, 1);
}

.__address_box {
    min-height: 200px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 10px 25px 0px rgba(0, 0, 51, 0.08);
    margin: 10px;
}
.__address_box a, .__address_box p {
    font-weight: 400;
    font-size: 18px;
    color: rgba(47, 47, 47, 1);
    text-decoration: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
    }
    .navbar-nav .nav-link {
        color: #fff !important;
        margin-left: 0;
    }
    .social-icon {
        display: none;
    }
    .banner-content h1 {
        font-size: 3rem;
    }
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}


/* Hover dropdowns only on desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Hide all submenus by default */
.dropdown-submenu .dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
}

/* Show submenu only when hovered (desktop view) */
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Optional: arrow indicator for submenu items */
.dropdown-submenu > a::after {
    float: right;
    margin-left: 5px;
    border-top: none;
}
.text-justify {
    text-align: justify !important;
}
.border-blink-green {
    /* Initial border for structure */
    border: 1px solid #198754;
    transition: all 0.3s ease;
    animation: green-pulse 1.5s infinite;
}

@keyframes green-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(25, 135, 84, 0.7);
    }
    70% {
        /* This creates the expanding glow effect */
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0px rgba(25, 135, 84, 0);
    }
}

/* Stop the blink and darken on hover to show it is clickable */
.border-blink-green:hover {
    animation: none;
    background-color: #146c43 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
