/* Custom Styles for Akshya Dharma Foundation */

/* Custom border for the circular logo in about-four section */
.custom-logo-border {
    border: solid 2px #2E3D3A;
    border-radius: 50%;
}

/* Custom rounded border for images in about-four section */
.custom-rounded-border {
    border: solid 2px #2E3D3A;
    border-radius: 20px;
}

/* Custom styling for core values cards */
.custom-values-card {
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.custom-values-card:hover {
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.custom-values-card .team-one__name {
    color: #2E3D3A; /* Use the specified color for headings */
    margin-bottom: 10px;
    font-size: 24px;
}

.custom-values-card .team-one__sub-title {
    color: #777;
    font-size: 16px;
    line-height: 1.6;
}

/* Ensure team member cards (Sasi and Vince) are styled consistently with core values if desired */
.team-member-card {
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member-card:hover {
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.team-member-card .team-one__img img {
    border-radius: 10px 10px 0 0; /* Keep top corners rounded */
}

/* Adjustments for responsive design, if necessary */
@media (max-width: 767px) {
    .custom-values-card, .team-member-card {
        margin-bottom: 30px; /* Add space between cards on small screens */
    }
}


/* Custom styles for the donation page */
.donation-amount-buttons button {
    background-color: #f2f2f2;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.donation-amount-buttons button:hover {
    background-color: #e0e0e0;
}

.donation-amount-buttons button.selected {
    background-color: #88B51A;
    color: #ffffff;
    border-color: #88B51A;
}

.success-message {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.success-message .tick-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.contact-form__input-box input,
.contact-form__input-box textarea,
.donate-now__personal-info-input input,
.donate-now__personal-info-input select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #444;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form__input-box input::placeholder,
.donate-now__personal-info-input input::placeholder {
    color: #888;
}

.contact-form__input-box input:focus,
.contact-form__input-box textarea:focus,
.donate-now__personal-info-input input:focus,
.donate-now__personal-info-input select:focus {
    border-color: #88B51A;
    box-shadow: 0 0 8px rgba(136, 181, 26, 0.2);
}

.contact-form__input-box textarea {
    min-height: 120px;
    resize: vertical;
}

/* assets/css/custom_style.css */

/* Floating Sidebar */
.sidebar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 90px; /* Adjust this value based on your header height to avoid overlap */
    z-index: 100; /* Ensure it stays above other content */
    margin-bottom: 30px; /* Space before it potentially hits the bottom of its parent */
    align-self: flex-start; /* Ensures the sticky element aligns to the top of its flex container (the column) */
}

/* Active Category Link Highlighting */
.sidebar__category-list a {
    display: block; /* Make the whole area clickable and styleable */
    padding: 10px 20px; /* Default padding */
    transition: all 0.3s ease; /* Smooth transition for hover and active states */
    text-decoration: none; /* Remove default underline */
    color: var(--oxpins-base); /* Default text color, adjust if needed */
}

.sidebar__category-list a.active-category {
    background-color: var(--oxpins-primary); /* Use your theme's primary color */
    color: var(--oxpins-white); /* Use white text color for contrast */
    padding-left: 25px; /* Adjust padding for visual effect */
    border-radius: 5px;
}

.sidebar__category-list a:hover {
    color: var(--oxpins-primary); /* Example hover color, make sure it's visible */
}

.sidebar__category-list li {
    margin-bottom: 5px; /* Space between list items */
}

/* Ensure a minimum height for the parent of sticky to allow scrolling within it */
/* This aligns the columns to the top and helps sticky behave as expected within the row */
.news-sidebar .row {
    align-items: flex-start;
}

/* Media query to disable sticky on smaller screens if layout breaks or it's not desired */
@media (max-width: 991px) {
    .sidebar {
        position: relative; /* Disable sticky on smaller screens */
        top: auto;
        margin-bottom: 30px; /* Restore normal margin */
    }
}


/* Image Overlay Styles */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Start with 0 opacity for fade-in */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
}

.image-overlay.active {
    visibility: visible;
    opacity: 1;
}

.image-overlay__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9); /* Start slightly smaller for pop-in effect */
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

.image-overlay.active .image-overlay__content {
    transform: scale(1); /* Scale to original size when active */
}

.image-overlay__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px; /* Rounded corners for the image */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Subtle shadow */
}

.image-overlay__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 10000; /* Ensure close button is above the image */
}

.image-overlay__close:hover {
    background-color: #fff;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-overlay__close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
