/* Navbar custom styles */
.btn-brown {
    --bs-btn-bg: #764c29;
    --bs-btn-border-color: #764c29;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #683f20;
    --bs-btn-hover-border-color: #683f20;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 104, 63, 32;
    background-color: #764c29 !important;
    border: 1px solid #764c29 !important;
    color: #ffffff !important;
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    /* ensure visible as button without Bootstrap */
    border-radius: 50rem;
    /* pill shape even without Bootstrap */
    line-height: 1.25;
    font-weight: 600;
}

.btn-brown:hover,
.btn-brown:focus {
    background-color: #683f20 !important;
    border-color: #683f20 !important;
    color: #ffffff !important;
}

.btn-brown .heart {
    color: #ffffff !important;
}

/* Brown color utilities */
.text-brown {
    color: #764c29 !important;
}

.bg-brown {
    background-color: #764c29 !important;
}

.border-brown {
    border-color: #764c29 !important;
}

.btn-outline-brown {
    --bs-btn-color: #764c29;
    --bs-btn-border-color: #764c29;
    --bs-btn-hover-bg: #764c29;
    --bs-btn-hover-border-color: #764c29;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 118, 76, 41;
    color: #764c29;
    border: 1px solid #764c29;
    background-color: transparent;
}

.btn-outline-brown:hover,
.btn-outline-brown:focus {
    color: #ffffff;
    background-color: #764c29;
    border-color: #764c29;
}

/* Value cards styling */
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Team member styling */
.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #764c29;
}

.team-member .social-link {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    display: inline-block;
    padding: 8px;
    border-radius: 50%;
    background-color: transparent;
}

.team-member .social-link:hover {
    color: #683f20 !important;
    text-decoration: none !important;
    transform: translateY(-3px) scale(1.1);
    background-color: rgba(118, 76, 41, 0.1);
    box-shadow: 0 4px 12px rgba(118, 76, 41, 0.2);
}

.team-member .social-link:focus {
    text-decoration: none !important;
    box-shadow: none !important;
}

.team-member .social-link:active {
    transform: translateY(-1px) scale(1.05);
}

/* Mission container styling */
.mission-container {
    background-color: #f5f1eb;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* About Us hero section - shorter height */
.hero-section-about {
    min-height: 40vh !important;
    padding: 2rem 0;
}

.navbar .nav-link {
    font-weight: 500;
}

/* Ensure the toggler icon is visible on light bg (Bootstrap uses currentColor) */
.navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, .1);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Footer Styles */
.footer-custom {
    background-color: #6a4023;
    color: #ffffff;
    padding: 3rem 0 1.5rem 0;
    margin-top: 3rem;
}

/* Footer columns alignment */
.footer-col-left,
.footer-col-middle,
.footer-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {

    .footer-col-left,
    .footer-col-middle,
    .footer-col-right {
        align-items: flex-start;
    }

    .footer-col-middle {
        align-items: center;
    }
}

.footer-logo-img {
    max-width: 100px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #ffffff;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-slogan {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #f5f5f5;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-info {
    width: 100%;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #f5f5f5;
}

.contact-item i {
    width: 16px;
    color: #ffffff;
}

.contact-item a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem 0;
}

.footer-copyright {
    color: #f5f5f5;
    font-size: 0.9rem;
}

/* Hero Section Styles */
.hero-section {
    background-image: url('/assets/img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(118, 76, 41, 0.8) 0%, rgba(106, 64, 35, 0.7) 50%, rgba(104, 63, 32, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem 1rem;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: #d2691e;
    border: 2px solid #d2691e;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.btn-hero-primary:hover {
    background-color: #b8541a;
    border-color: #b8541a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.95);
    color: #764c29;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero-secondary:hover {
    background-color: white;
    border-color: white;
    color: #683f20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Medium screens - allow title to wrap if needed */
@media (max-width: 992px) {
    .hero-title {
        white-space: normal;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.2rem;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-custom {
        padding: 2rem 0 1rem 0;
    }

    .social-icons {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

/* Our Services Section Styles */
.services-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #764c29;
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #764c29;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(118, 76, 41, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(118, 76, 41, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #764c29;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #683f20;
    transform: scale(1.05);
}

.service-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #764c29;
    margin-bottom: 1rem;
}

.service-description {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.service-btn {
    background-color: #764c29;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #764c29;
}

.service-btn:hover {
    background-color: #683f20;
    border-color: #683f20;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(118, 76, 41, 0.3);
}

/* Responsive adjustments for services section */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }

    .services-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 1.75rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-description {
        font-size: 0.95rem;
    }
}

/* Join Our Community Section Styles */
.community-section {
    /* background-color: #d2691e; */
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-container {
    background-image: url('/assets/img/community.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 20px;
    padding: 3rem 2rem;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 1rem;
}

.community-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(118, 76, 41, 0.7) 0%, rgba(106, 64, 35, 0.6) 50%, rgba(104, 63, 32, 0.8) 100%);
    border-radius: 20px;
    z-index: 1;
}

.community-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 600px;
}

.community-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.community-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.community-btn {
    background-color: #ffffff;
    color: #764c29;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.community-btn:hover {
    background-color: #f8f8f8;
    border-color: #f8f8f8;
    color: #683f20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for community section */
@media (max-width: 768px) {
    .community-section {
        padding: 2rem 0;
    }

    .community-container {
        margin: 0 0.5rem;
        padding: 2rem 1.5rem;
        min-height: 300px;
        border-radius: 15px;
    }

    .community-title {
        font-size: 2rem;
    }

    .community-description {
        font-size: 1rem;
    }

    .community-content {
        max-width: 100%;
    }
}

/* Shop Page Styles */
.shop-hero-section {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    padding: 3rem 0;
    /* border-bottom: 1px solid #dee2e6; */
}

.shop-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.shop-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #764c29;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.shop-search-container {
    /* background-color: #ffffff; */
    border-radius: 15px;
    padding: 2rem;
    /* box-shadow: 0 4px 20px rgba(118, 76, 41, 0.1); */
    border: 1px solid #e9ecef;
}

.shop-search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.shop-search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #764c29;
    border-radius: 25px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.shop-search-input:focus {
    outline: none;
    border-color: #683f20;
    box-shadow: 0 0 0 3px rgba(118, 76, 41, 0.1);
}

.shop-search-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.shop-category-select {
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 2px solid #764c29;
    border-radius: 25px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-category-select:focus {
    outline: none;
    border-color: #683f20;
    box-shadow: 0 0 0 3px rgba(118, 76, 41, 0.1);
    color: #764c29;
}

.shop-search-btn {
    background-color: #764c29;
    color: #ffffff;
    border: 2px solid #764c29;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-search-btn:hover {
    background-color: #683f20;
    border-color: #683f20;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(118, 76, 41, 0.3);
}

.shop-reset-btn {
    background-color: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.shop-reset-btn:hover {
    background-color: #6c757d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.shop-results-header {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid #e9ecef;
}

.shop-results-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #764c29;
    margin-bottom: 0.5rem;
}

.shop-results-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.shop-product-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.shop-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(118, 76, 41, 0.15);
}

.shop-product-image {
    width: 100%;
    height: 600px;
    /* Show full book cover without cropping */
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
}

.shop-product-content {
    padding: 1.5rem;
}

.shop-product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #764c29;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.shop-product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.shop-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.shop-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #764c29;
}

.shop-product-btn {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-product-btn:hover {
    background-color: #218838;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.shop-product-btn i {
    font-size: 1rem;
    color: #ffffff;
}

.shop-no-results {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.shop-no-results-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.shop-no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.shop-no-results-text {
    color: #6c757d;
    font-size: 1rem;
}

/* Responsive adjustments for shop page */
@media (max-width: 768px) {
    .shop-hero-section {
        padding: 2rem 0;
    }

    .shop-hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .shop-search-container {
        padding: 1.5rem;
    }

    .shop-search-form {
        flex-direction: column;
        gap: 1rem;
    }

    .shop-search-input,
    .shop-category-select {
        width: 100%;
        min-width: auto;
    }

    .shop-search-btn,
    .shop-reset-btn {
        width: 100%;
        justify-content: center;
    }

    .shop-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .shop-product-btn {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .shop-hero-title {
        font-size: 1.75rem;
    }

    .shop-search-container {
        padding: 1rem;
        border-radius: 10px;
    }

    .shop-results-title {
        font-size: 1.5rem;
    }
}

/* Contact Form Styles */
.contact-form-container .form-control:focus,
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
    outline: none !important;
}

.contact-form-container .input-group-text {
    border-color: #dee2e6;
}

.contact-form-container .form-control {
    border-color: #dee2e6;
}

.contact-form-container .form-control:focus+.input-group-text,
.contact-form-container .input-group:focus-within .input-group-text {
    border-color: #764c29 !important;
}

/* Override Bootstrap's default focus styles */
.contact-form-container .form-control:focus {
    --bs-border-color: #764c29 !important;
    --bs-focus-ring-color: rgba(118, 76, 41, 0.25) !important;
}

/* Additional high-specificity overrides */
.contact-form-container .input-group .form-control:focus {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
    outline: none !important;
}

.contact-form-container .form-control:focus-visible {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
    outline: none !important;
}

/* Force override with maximum specificity */
body .contact-form-container .form-control:focus {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
    outline: none !important;
}

/* Contact Page Animations */
.contact-method-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(118, 76, 41, 0.15) !important;
}

.contact-method-card .contact-icon {
    transition: all 0.3s ease;
}

.contact-method-card:hover .contact-icon {
    transform: scale(1.1);
    color: #683f20 !important;
}

.contact-method-card:hover h5 {
    color: #683f20 !important;
    transition: color 0.3s ease;
}

/* Contact Form Animations */
.contact-form-container {
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    box-shadow: 0 10px 30px rgba(118, 76, 41, 0.1) !important;
}

.contact-form-container .form-control {
    transition: all 0.3s ease;
}

.contact-form-container .form-control:hover {
    border-color: #764c29;
    transform: translateY(-1px);
}

.contact-form-container .input-group-text {
    transition: all 0.3s ease;
}

.contact-form-container .form-control:hover+.input-group-text,
.contact-form-container .input-group:hover .input-group-text {
    border-color: #764c29;
    background-color: rgba(118, 76, 41, 0.05);
}

.contact-form-container .btn-brown {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form-container .btn-brown:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 76, 41, 0.3);
}

.contact-form-container .btn-brown:active {
    transform: translateY(0);
}

/* Fade in animation for page load */
.contact-method-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-method-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-method-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-method-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-form-container {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulse animation for icons */
.contact-method-card .contact-icon i {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Form field focus animations */
.contact-form-container .form-control:focus {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Button ripple effect */
.contact-form-container .btn-brown::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form-container .btn-brown:active::before {
    width: 300px;
    height: 300px;
}

/* Donation form focus styles */
.donation-form-container .form-control:focus,
.donation-form-container input:focus,
.donation-form-container textarea:focus,
.donation-form-container select:focus {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
    outline: none !important;
}

.donation-form-container .form-control:focus+.input-group-text,
.donation-form-container .input-group:focus-within .input-group-text {
    border-color: #764c29 !important;
}

.donation-form-container .form-control:focus {
    border-color: #764c29 !important;
    --bs-focus-ring-color: rgba(118, 76, 41, 0.25) !important;
}

.donation-form-container .input-group .form-control:focus {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
}

.donation-form-container .form-control:focus-visible {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
    outline: none !important;
}

body .donation-form-container .form-control:focus {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
}

.donation-form-container .form-control:focus {
    border-color: #764c29 !important;
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25) !important;
}

/* Dropdown option focus/hover styles - More specific selectors */
.donation-form-container select option:checked,
.donation-form-container select option:focus,
.donation-form-container select option:hover,
.donation-form-container select option:active,
.donation-form-container select option:selected {
    background-color: #764c29 !important;
    color: #ffffff !important;
}

.donation-form-container select option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.donation-form-container select option:hover {
    background-color: #764c29 !important;
    color: #ffffff !important;
}

/* Additional browser-specific overrides */
.donation-form-container select option::-moz-focus-inner {
    background-color: #764c29 !important;
    color: #ffffff !important;
}

.donation-form-container select option:focus-visible {
    background-color: #764c29 !important;
    color: #ffffff !important;
}

/* Webkit browsers (Chrome, Safari) specific */
.donation-form-container select option:checked {
    background-color: #764c29 !important;
    color: #ffffff !important;
}

/* Force override for all states */
.donation-form-container select option[selected],
.donation-form-container select option[value]:hover,
.donation-form-container select option[value]:focus {
    background-color: #764c29 !important;
    color: #ffffff !important;
}

/* Minimalist animations for donate page */
.donation-form-container {
    animation: fadeInUp 0.8s ease-out;
}

.donation-form-container .form-control,
.donation-form-container .form-select {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.donation-form-container .form-control:hover,
.donation-form-container .form-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 76, 41, 0.15);
}

.donation-form-container .form-control:focus,
.donation-form-container .form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 0.2rem rgba(118, 76, 41, 0.25), 0 4px 12px rgba(118, 76, 41, 0.15);
}

.donation-form-container .btn-brown {
    transition: all 0.3s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.donation-form-container .btn-brown:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 76, 41, 0.3);
}

.donation-form-container .btn-brown:active {
    transform: translateY(-1px);
}

.donation-form-container .btn-brown::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.donation-form-container .btn-brown:active::before {
    width: 300px;
    height: 300px;
}

/* Hero section animation */
.hero-section {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    animation: slideInDown 1s ease-out 0.3s both;
}

/* Input group animations */
.donation-form-container .input-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.donation-form-container .input-group:nth-child(1) {
    animation-delay: 0.1s;
}

.donation-form-container .input-group:nth-child(2) {
    animation-delay: 0.2s;
}

.donation-form-container .input-group:nth-child(3) {
    animation-delay: 0.3s;
}

.donation-form-container .input-group:nth-child(4) {
    animation-delay: 0.4s;
}

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulse animation for the donate button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(118, 76, 41, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(118, 76, 41, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(118, 76, 41, 0);
    }
}

.donation-form-container .btn-brown {
    animation: pulse 2s infinite;
}

/* Smooth transitions for all interactive elements */
.donation-form-container * {
    transition: all 0.3s ease;
}

/* Icon animations */
.donation-form-container .fas {
    transition: transform 0.3s ease;
}

.donation-form-container .input-group:hover .fas {
    transform: scale(1.1);
}

/* Admin Login Page Styles */
.admin-login-body {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.admin-login-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem 1rem;
}

.admin-login-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    min-height: 500px;
}

/* Left Section - Branding/Logo */
.admin-login-left {
    background-color: #764c29;
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.admin-logo-container {
    text-align: center;
    z-index: 2;
}

.admin-logo-circle {
    width: 200px;
    height: 200px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.admin-logo-img {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Right Section - Login Form */
.admin-login-right {
    background-color: #ffffff;
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.admin-login-content {
    width: 100%;
    max-width: 400px;
}

.admin-login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #764c29;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-alert {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
}

.admin-login-form {
    margin-bottom: 2rem;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #7A4F3B;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.admin-form-input:focus {
    outline: none;
    border-color: #683f20;
    box-shadow: 0 0 0 3px rgba(122, 79, 59, 0.1);
    transform: translateY(-2px);
}

.admin-form-input::placeholder {
    color: #999999;
    font-style: normal;
}

.admin-login-btn {
    width: 100%;
    background-color: #764c29;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.admin-login-btn:hover {
    background-color: #683f20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 79, 59, 0.3);
}

.admin-login-btn:active {
    transform: translateY(0);
}

.admin-back-link {
    text-align: center;
}

.admin-back-btn {
    color: #7A4F3B;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.admin-back-btn:hover {
    color: #683f20;
    background-color: rgba(122, 79, 59, 0.05);
    transform: translateX(-3px);
}

.admin-back-btn i {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-login-card {
        flex-direction: column;
        min-height: auto;
    }

    .admin-login-left {
        flex: none;
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .admin-logo-circle {
        width: 150px;
        height: 150px;
    }

    .admin-logo-img {
        max-width: 120px;
        max-height: 120px;
    }

    .admin-login-right {
        flex: none;
        padding: 2rem 1.5rem;
    }

    .admin-login-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .admin-form-input {
        padding: 0.875rem 1rem;
    }

    .admin-login-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-login-container {
        padding: 1rem 0.5rem;
    }

    .admin-login-left {
        min-height: 150px;
        padding: 1.5rem 1rem;
    }

    .admin-logo-circle {
        width: 120px;
        height: 120px;
    }

    .admin-logo-img {
        max-width: 100px;
        max-height: 100px;
    }

    .admin-login-right {
        padding: 1.5rem 1rem;
    }

    .admin-login-title {
        font-size: 1.5rem;
    }
}

/* Admin Navbar Styles */
.admin-navbar {
    background-color: #764c29;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-logo-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-logo-link:hover {
    text-decoration: none;
    transform: scale(1.05);
}

.admin-logo {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #764c29;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.admin-logo-link:hover .admin-logo {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: #683f20;
}

.admin-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.admin-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-user-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-logout-btn {
    background-color: #ffffff;
    color: #764c29;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.admin-logout-btn:hover {
    background-color: #f8f9fa;
    color: #683f20;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.admin-logout-btn:active {
    transform: translateY(0);
}

.admin-logout-btn i {
    font-size: 0.9rem;
}

/* Responsive Admin Navbar */
@media (max-width: 768px) {
    .admin-navbar-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .admin-navbar-left {
        gap: 1rem;
    }

    .admin-logo {
        width: 50px;
        height: 50px;
    }

    .admin-logo-img {
        width: 35px;
        height: 35px;
    }

    .admin-title {
        font-size: 1.5rem;
    }

    .admin-navbar-right {
        gap: 1rem;
    }

    .admin-user-text {
        font-size: 0.9rem;
    }

    .admin-logout-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .admin-navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .admin-navbar-left {
        justify-content: center;
    }

    .admin-navbar-right {
        justify-content: center;
    }

    .admin-title {
        font-size: 1.3rem;
    }

    .admin-user-text {
        display: none;
    }
}

/* Quick Actions Dashboard Styles */
.quick-actions-container {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.quick-actions-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.quick-actions-header::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: #764c29;
    border-radius: 1px;
}

.quick-actions-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 140px;
    position: relative;
    border: 2px solid transparent;
}

.quick-action-primary {
    background-color: #764c29;
    color: #ffffff;
    border-color: #764c29;
}

.quick-action-primary:hover {
    background-color: #683f20;
    border-color: #683f20;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(118, 76, 41, 0.3);
    text-decoration: none;
}

.quick-action-secondary {
    background-color: #ffffff;
    color: #764c29;
    border-color: #764c29;
}

.quick-action-secondary:hover {
    background-color: #f8f9fa;
    color: #683f20;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(118, 76, 41, 0.15);
    text-decoration: none;
}

.quick-action-inactive {
    cursor: not-allowed;
    opacity: 0.7;
}

.quick-action-inactive:hover {
    transform: none;
    box-shadow: none;
    background-color: #ffffff;
    color: #764c29;
}

.quick-action-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(118, 76, 41, 0.1);
    transition: all 0.3s ease;
}

.quick-action-primary .quick-action-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.quick-action-icon i {
    font-size: 1.5rem;
    color: inherit;
}

.quick-action-text {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: inherit;
}

/* Responsive Design for Quick Actions */
@media (max-width: 768px) {
    .quick-actions-container {
        padding: 1.5rem;
    }

    .quick-actions-title {
        font-size: 1.5rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-action-btn {
        padding: 1.5rem 1rem;
        min-height: 120px;
    }

    .quick-action-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .quick-action-icon i {
        font-size: 1.25rem;
    }

    .quick-action-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quick-action-btn {
        padding: 1.25rem;
        min-height: 100px;
    }

    .quick-action-icon {
        width: 45px;
        height: 45px;
    }

    .quick-action-icon i {
        font-size: 1.1rem;
    }

    .quick-action-text {
        font-size: 0.85rem;
    }
}