/* ========================================
   Help Mantra Charitable Trust - Main Styles
   ======================================== */

/* CSS Variables for Brand Colors - EASILY CHANGEABLE */
/* 
   COLOR SWITCHER - Change these 3 variables for different looks:
   
   Option 1 (Current): #970346 (Dark Magenta) - Professional & Elegant
   Option 2: #F54910 (Orange) - Warm & Energetic
   Option 3: #4CAF50 (Green) - Health & Wellness
   Option 4: #2196F3 (Blue) - Trust & Stability
   
   Just change the --primary-color value below!
*/
:root {
    /* Primary Brand Colors - CHANGE THESE FOR DIFFERENT LOOKS */
    --primary-color: #970346;       /* Main brand color - change to #F54910 if needed */
    --secondary-color: #F54910;     /* Alternative brand color */
    --accent-color: #F59E0B;        /* Accent color */
    
    /* Background Colors */
    --bg-light-pink: #FBF3FD;       /* Light pink background */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    
    /* Text Colors */
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --text-light: #FFFFFF;
    
    /* Additional Colors */
    --accent-orange: #FF6B35;
    --accent-blue: #3498DB;
    --accent-teal: #20B2AA;
    
    /* Plain Colors - No Gradients */
    --primary-purple: var(--primary-color);
    --primary-green: var(--secondary-color);
    --primary-yellow: var(--accent-color);
    --primary-red: var(--secondary-color);
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    
    /* Border Colors */
    --border-color: #E9ECEF;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    background-color: var(--bg-light-pink);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Mobile responsive typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}

/* Mobile responsive display classes */
@media (max-width: 768px) {
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2.25rem !important; }
    .display-3 { font-size: 2rem !important; }
    .display-4 { font-size: 1.75rem !important; }
    .display-5 { font-size: 1.5rem !important; }
    .display-6 { font-size: 1.25rem !important; }
}

@media (max-width: 576px) {
    .display-1 { font-size: 2rem !important; }
    .display-2 { font-size: 1.75rem !important; }
    .display-3 { font-size: 1.5rem !important; }
    .display-4 { font-size: 1.4rem !important; }
    .display-5 { font-size: 1.25rem !important; }
    .display-6 { font-size: 1.1rem !important; }
}

@media (max-width: 575.98px) {
    .display-1 { font-size: 1.8rem !important; }
    .display-2 { font-size: 1.6rem !important; }
    .display-3 { font-size: 1.4rem !important; }
    .display-4 { font-size: 1.3rem !important; }
    .display-5 { font-size: 1.2rem !important; }
    .display-6 { font-size: 1.1rem !important; }
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile responsive paragraph text */
@media (max-width: 768px) {
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Mobile responsive lead text */
@media (max-width: 768px) {
    .lead {
        font-size: 1rem !important;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .lead {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }
}

@media (max-width: 575.98px) {
    .lead {
        font-size: 0.9rem !important;
        line-height: 1.4;
    }
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-green);
    text-decoration: none;
}

/* ========================================
   Navigation Styles
   ======================================== */

#mainNav {
    background: var(--primary-color);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    padding: 0.5rem 0;
}

#mainNav.scrolled {
    background: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text-main {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-text-sub {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Legacy support */
.brand-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: var(--text-light);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 20%;
}

/* Contact Phone */
.contact-phone {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-phone:hover {
    color: var(--accent-color) !important;
}

.contact-phone a {
    color: var(--text-light) !important;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.2;
}

.contact-phone a:hover {
    color: var(--accent-color) !important;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--text-light);
    color: var(--primary-color);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-color);
    background: var(--accent-color);
}

/* Login Button */
.login-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-primary);
}

/* Donate Button - Highlighted (using hover state color in normal state) */
.donate-btn {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
    color: var(--text-light) !important;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--primary-color);
    color: var(--text-light) !important;
}

/* Navbar Spacer */
.navbar-spacer {
    height: 67px;
}

/* ========================================
   Main Content
   ======================================== */

/* Public pages main content (no sidebar) */
.main-content {
    min-height: calc(100vh - 80px - 400px); /* Adjust based on navbar and footer height */
    padding: 0;
    margin-left: 0; /* No sidebar on public pages */
    padding-left: 0;
    padding-right: 0;
}

/* Member/Admin panel main content (with sidebar) */
.member-layout .main-content,
.admin-layout .main-content {
    min-height: calc(100vh - 80px - 400px);
    padding: 0;
    margin-left: 280px; /* Account for fixed sidebar width */
    padding-left: 20px; /* Add some padding from sidebar */
    padding-right: 20px; /* Add some padding from right edge */
}

/* Page Header Styles */
.page-header {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .member-layout .main-content,
    .admin-layout .main-content {
        margin-left: 0; /* No sidebar margin on mobile */
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Breadcrumb */
.breadcrumb-section {
    background: transparent;
    padding: 2.5rem 0 1rem 0; /* Added top padding */
    margin-bottom: 2rem;
}

.breadcrumb {
    background: var(--bg-white);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-purple);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ========================================
   Footer Styles
   ======================================== */

.footer {
    background: var(--primary-color);
    color: var(--text-light);
    margin-top: 0;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

/* Contact Information */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.footer-contact .contact-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.footer-contact .contact-item a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-contact .contact-item a:hover {
    color: var(--accent-color);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links i {
    color: var(--accent-color);
    width: 16px;
}

/* Newsletter */
.newsletter-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    background: var(--accent-color);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: var(--border-radius);
}

.newsletter-form .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    color: var(--text-light);
}

/* Footer Social */
.footer-social h6 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-social .social-icons {
    gap: 0.75rem;
}

.footer-social .social-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.footer-social .social-icon:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    color: var(--text-light);
    margin: 0;
}

.copyright-text a {
    color: var(--accent-color);
    text-decoration: none;
}

.copyright-text a:hover {
    color: var(--text-light);
}

.powered-by {
    color: var(--text-light);
    margin: 0;
    opacity: 0.8;
}

.powered-by a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.powered-by a:hover {
    color: var(--text-light);
    opacity: 1;
    text-decoration: none;
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: var(--secondary-color);
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    /* Mobile Hamburger Icon - Make it white */
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.5);
        background: transparent;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: var(--border-radius);
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-medium);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #E9ECEF;
        color: var(--text-dark) !important;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
        display: none;
        position: static !important;
        float: none !important;
        width: 100% !important;
        transform: none !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        color: var(--text-dark) !important;
        border-bottom: 1px solid #E9ECEF;
        background: transparent;
        text-align: center;
    }
    
    .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--primary-color) !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Remove dropdown arrow in mobile */
    .dropdown-toggle::after {
        display: none;
    }
    
    /* Active dropdown toggle styling */
    .dropdown-toggle.active {
        color: var(--primary-color) !important;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .contact-phone {
        display: none !important;
    }
    
    /* Mobile Social Icons - Make them visible and clickable */
    .navbar-collapse .social-icons {
        display: flex !important;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid #E9ECEF;
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .navbar-collapse .social-icon {
        background: var(--primary-color);
        color: white;
        border: 1px solid var(--primary-color);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-fast);
        text-decoration: none;
    }
    
    .navbar-collapse .social-icon:hover {
        background: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-2px);
    }
    
    /* Center buttons on mobile */
    .navbar-nav.ms-auto .nav-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .donate-btn,
    .login-btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .brand-text {
        display: none;
    }
    
    .main-content {
        padding: 0;
        margin-left: 0; /* No margin on mobile */
        padding-left: 0; /* No padding on mobile */
        padding-right: 0; /* No padding on mobile */
    }
    
    /* Hero section specific fixes for very small screens */
    .hero-section {
        padding: 1rem 0;
        margin: 0;
    }
    
    .hero-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure hero title fits properly */
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .footer-main {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-widget {
        margin-bottom: 1.5rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-primary { color: var(--primary-purple) !important; }
.text-secondary { color: var(--primary-green) !important; }
.text-accent { color: var(--primary-yellow) !important; }
.text-danger { color: var(--primary-red) !important; }

.bg-primary { background-color: var(--primary-purple) !important; }
.bg-secondary { background-color: var(--primary-green) !important; }
.bg-accent { background-color: var(--primary-yellow) !important; }
.bg-light-pink { background-color: var(--bg-light-pink) !important; }

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--text-light);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.btn-accent:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--text-light);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* ========================================
   Homepage Sections
   ======================================== */

/* Main Slider Section */
.main-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Normal scrolling behavior - no parallax effect */
    background-attachment: scroll;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Reduced opacity for better image visibility */
    background: linear-gradient(135deg, rgba(151, 3, 70, 0.4) 0%, rgba(245, 73, 16, 0.4) 100%);
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slider-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
    animation: slideInUp 1s ease-out;
    color: #ffffff;
}

.slider-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
    animation: slideInUp 1s ease-out 0.3s both;
    color: #ffffff;
    font-weight: 500;
}

.slider-content .btn {
    animation: slideInUp 1s ease-out 0.6s both;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Slider Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 3;
    transition: width 0.1s linear;
}

.slider-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

/* Slider Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .main-slider {
        height: 70vh;
        min-height: 500px;
        margin: 0;
        padding: 0;
    }
    
    .slider-container {
        margin: 0;
        padding: 0;
    }
    
    .slider-slide {
        /* Better mobile image handling */
        background-size: cover;
        background-position: center center;
        background-attachment: scroll; /* Remove fixed attachment on mobile */
        margin: 0;
        padding: 0;
    }
    
    .slider-content {
        padding: 1rem;
    }
    
    .slider-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .slider-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-nav.prev {
        left: 15px;
    }
    
    .slider-nav.next {
        right: 15px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .main-slider {
        height: 60vh;
        min-height: 400px;
        margin: 0;
        padding: 0;
    }
    
    .slider-container {
        margin: 0;
        padding: 0;
    }
    
    .slider-slide {
        /* Ensure proper aspect ratio on small screens */
        background-size: cover;
        background-position: center center;
        margin: 0;
        padding: 0;
    }
    
    .slider-content {
        padding: 0.75rem;
    }
    
    .slider-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .slider-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Mobile responsive hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

/* Mobile responsive hero title */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Mobile responsive hero subtitle */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.hero-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
    color: white;
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 20px;
    color: var(--accent-color);
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile responsive section titles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Section Padding */
.section-padding {
    padding: 4rem 0;
}

/* Mobile responsive section padding */
@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
    
    /* Remove unwanted margins and padding on mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .col-12, .col-md-6, .col-lg-4, .col-lg-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 1.5rem 0;
    }
    
    /* Further reduce spacing on small mobile */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-12, .col-md-6, .col-lg-4, .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Ensure no unwanted white space on very small screens */
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Hero section specific fixes */
    .hero-section {
        padding: 1rem 0;
        margin: 0;
    }
    
    .hero-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Feature Cards */
.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile responsive feature cards */
@media (max-width: 768px) {
    .feature-card h4 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .feature-card h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* About Section */
.about-content {
    padding-right: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile responsive stat items */
@media (max-width: 768px) {
    .stat-item h3 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .stat-item h3 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 575.98px) {
    .stat-item h3 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

/* Product Cards */
.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-content {
    padding: 1.5rem;
}

.product-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-features .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile responsive CTA titles */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .cta-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 575.98px) {
    .cta-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff !important;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.cta-contact p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-contact i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

/* Join Mission Section */
.join-mission-section {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #FF6347 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.join-mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.join-mission-section .container {
    position: relative;
    z-index: 1;
}

/* About Page Specific Styles */
.about-hero {
    background: linear-gradient(135deg, rgba(151, 3, 70, 0.1) 0%, rgba(245, 73, 16, 0.1) 100%);
    padding: 4rem 0;
}

/* About Page - Hero Section Text Color Fix */
.about-hero .hero-title.text-dark,
.about-hero .hero-subtitle.text-dark,
.about-hero .stat-item h3.text-dark,
.about-hero .stat-item p.text-dark {
    color: var(--text-dark) !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.about-hero .hero-title.text-dark {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.about-hero .hero-subtitle.text-dark {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.about-hero .stat-item h3.text-dark {
    color: var(--secondary-color) !important;
    font-weight: 700;
}

.about-hero .stat-item p.text-dark {
    color: var(--text-muted) !important;
    font-weight: 500;
}

/* About Page - Join Mission Section Text Color Fix */
.join-mission-section h2.text-white,
.join-mission-section p.text-white,
.join-mission-section .lead.text-white {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.join-mission-section h2.text-white {
    font-weight: 700;
    font-size: 2.5rem;
}

.join-mission-section .lead.text-white {
    font-weight: 500;
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.leader-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    height: 100%;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.leader-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.leader-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.leader-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.leader-title {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.leader-note {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.qualification-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.25rem;
}

.mission-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
}

.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.mission-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.value-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.care-points {
    margin-top: 2rem;
}

.care-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.care-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.care-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.care-content p {
    color: var(--text-muted);
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Contact Page Specific Styles */
.contact-section .card {
    border: none;
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius-xl);
    transition: var(--transition-normal);
}

.contact-section .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-section .card-body {
    background: var(--bg-white);
}

.contact-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-section i {
    color: var(--primary-color);
}

/* Contact Form Specific Styles */
.contact-form-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.9);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(151, 3, 70, 0.25);
    background: white;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-light);
}

.contact-form-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Contact Info Cards */
.contact-info-card {
    background: linear-gradient(135deg, rgba(151, 3, 70, 0.05) 0%, rgba(245, 73, 16, 0.05) 100%);
}

.contact-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(151, 3, 70, 0.15);
    transform: translateY(-2px);
}

.contact-item:hover h5,
.contact-item:hover p {
    color: var(--primary-color);
}

.contact-item h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contact-item h4 i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Additional Info Cards */
.additional-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
}

.info-item {
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
    height: 100%;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.info-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-item p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* FAQ Page Specific Styles */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    padding: 1.25rem;
    transition: var(--transition-normal);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background: var(--bg-light);
    color: var(--text-muted);
    line-height: 1.6;
    padding: 1.25rem;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: white !important;
    position: relative;
    z-index: 1;
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary-purple);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h5 {
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Loading States
   ======================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   About Page Styles
   ======================================== */

.about-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    color: white;
    padding: 100px 0;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-yellow);
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.section-content {
    padding: 20px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list i {
    font-size: 1.2rem;
    color: var(--primary-purple);
}

.section-image {
    text-align: center;
    padding: 20px 0;
}

.section-image img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.care-points {
    margin-top: 30px;
}

.care-point {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-purple);
}

.care-icon {
    font-size: 2rem;
    color: var(--primary-purple);
    flex-shrink: 0;
}

.care-content h4 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-purple);
}

.care-content p {
    margin: 0;
    color: var(--text-dark);
}

.leader-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    height: 100%;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.leader-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--primary-purple);
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-purple);
}

.leader-title {
    font-size: 1.1rem;
    color: var(--primary-pink);
    margin-bottom: 15px;
    font-weight: 600;
}

.leader-note {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.leader-qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.qualification-badge {
    background: var(--primary-purple);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mission-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    height: 100%;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.mission-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.mission-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.value-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-purple);
}

.value-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-purple);
}

.value-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

/* Responsive adjustments for about page */
@media (max-width: 767.98px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .care-point {
        flex-direction: column;
        text-align: center;
    }
    
    .leader-image {
        width: 120px;
        height: 120px;
    }
    
    .leader-name {
        font-size: 1.3rem;
    }
    
    .mission-card {
        padding: 30px 20px;
    }
    
    .mission-card h3 {
        font-size: 1.5rem;
    }
}

/* ========================================
   Plan Page Styles
   ======================================== */

/* Plan Banner Styles */
.plan-banner {
    margin-bottom: 2rem;
}

.banner-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
}

.yellow-banner {
    background: #FFD54F;
    color: #222;
}

.red-banner {
    background: #FD4914 !important;
    color: white !important;
}

.red-banner h4 {
    color: white !important;
}

.banner-card h4 {
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Plan Table Styles */
.plan-table-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 2rem;
}

.plan-table {
    margin: 0;
    border: none;
}

.plan-table th,
.plan-table td {
    border: 1px solid #E9ECEF;
    padding: 1rem;
    vertical-align: middle;
}

.table-header {
    background: #FD4914 !important;
    color: white !important;
}

.table-header th {
    font-weight: 700;
    text-align: center;
    border: 1px solid #FD4914 !important;
    background: #FD4914 !important;
    color: white !important;
}

.plan-table tbody tr:nth-child(odd) {
    background: #FFF9F9;
}

.plan-table tbody tr:hover {
    background: #F8F9FA;
}

.plan-table td {
    font-weight: 600;
    text-align: center;
}

/* Reward Cell Styles */
.reward-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reward-icon {
    background: #F7F7F7;
    border: 1px solid #E3E3E3;
    border-radius: 6px;
    padding: 0.5rem;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Plan Footer Styles */
.plan-footer {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.product-info h3 {
    color: #0F3C8A;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-info h4 {
    color: #0B4B7A;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-badge {
    background: #EEF5FF;
    border: 1px solid #CFE0FF;
    color: #0F3C8A;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}



/* Responsive adjustments for plan page */
@media (max-width: 767.98px) {
    .banner-card {
        padding: 1rem;
    }
    
    .banner-card h4 {
        font-size: 0.9rem;
    }
    
    .plan-table th,
    .plan-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .reward-cell {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reward-icon {
        min-width: 50px;
        font-size: 0.7rem;
    }
    
    .plan-footer {
        padding: 1.5rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-info h4 {
        font-size: 0.9rem;
    }
}

/* ========================================
   Mission Page Styles
   ======================================== */

/* Mission Page - Call to Action Section Text Color Fix */
.bg-primary.text-white h2,
.bg-primary.text-white p,
.bg-primary.text-white .lead {
    color: white !important;
}

.bg-primary.text-white h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bg-primary.text-white p,
.bg-primary.text-white .lead {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Swachh Bharat Logo Styling */
.swachh-bharat-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swachh-bharat-logo img {
    transition: transform 0.3s ease;
}

.swachh-bharat-logo img:hover {
    transform: scale(1.05);
}

/* ========================================
   Products Page Styles
   ======================================== */

/* Products Hero Section - Light background to blend with breadcrumb */
.products-hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.products-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23F54910" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.products-hero-section .container {
    position: relative;
    z-index: 1;
}

/* Products Main Section - Heavy background with dot pattern */
.products-main-section {
    background: linear-gradient(135deg, rgba(151, 3, 70, 0.05) 0%, rgba(245, 73, 16, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.products-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23970346" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.products-main-section .container {
    position: relative;
    z-index: 1;
}

/* Product Features - Responsive badges */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.product-features .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

/* Product Content - Responsive text */
.product-content h3 {
    word-wrap: break-word;
    hyphens: auto;
}

.product-content p {
    word-wrap: break-word;
    line-height: 1.6;
}

/* Product Benefits - Responsive list */
.product-benefits ul li {
    word-wrap: break-word;
    line-height: 1.5;
}

/* Feature Icon Circle - Light background for better icon visibility */
.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-icon-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 1);
}

.feature-icon-circle i {
    font-size: 2rem;
}

/* ========================================
   Gallery Page Styles
   ======================================== */

.gallery-stats {
    margin-top: 2rem;
}

.gallery-stats .stat-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.gallery-filters {
    margin-bottom: 2rem;
}

.gallery-filters .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-filters .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(151, 3, 70, 0.8) 0%, rgba(253, 73, 20, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.overlay-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.overlay-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #F0F0F0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.gallery-item {
    margin-bottom: 1.5rem;
}

/* Gallery Stats Section */
.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

/* Gallery Stats Section - Text Color Fix */
.gallery-stats-section .stat-card h3,
.gallery-stats-section .stat-card p {
    color: white !important;
}

.gallery-stats-section .stat-card h3 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-stats-section .stat-card p {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Gallery Stats Section - Different from footer */
.gallery-stats-section {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #FF6347 100%);
    position: relative;
}

.gallery-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 20px 20px;
    opacity: 0.3;
}

.gallery-stats-section .container {
    position: relative;
    z-index: 1;
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Fix Lightbox z-index and positioning */
.lb-overlay {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.lb-outerContainer {
    z-index: 100000 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
}

.lb-image {
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.lb-dataContainer {
    z-index: 100001 !important;
}

.lb-nav {
    z-index: 100002 !important;
}

.lb-closeContainer {
    z-index: 100003 !important;
}

/* Make close button visible and styled */
.lb-close {
    background: rgba(220, 53, 69, 0.9) !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 100004 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    cursor: pointer !important;
}

.lb-close::before {
    content: "×" !important;
    display: block !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
}

.lb-close:hover {
    background: #dc3545 !important;
    color: white !important;
    transform: scale(1.15) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.5) !important;
    border-color: #dc3545 !important;
}

/* Additional Lightbox fixes */
.lightboxOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

.lightbox {
    position: fixed !important;
    top: 55% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100000 !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
}

/* Legalities Page - Card Header Text Color Fix */
.card-header.text-white h3,
.card-header.text-white h3.mb-0 {
    color: white !important;
}

/* Programs Page - Consistent Image Sizes */
.program-block {
    margin-bottom: 5rem;
}

.program-image {
    margin-bottom: 0;
    padding-right: 2rem;
}

.program-content {
    padding: 1rem 0 1rem 2rem;
}

.program-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991.98px) {
    .program-image {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    .program-content {
        padding-left: 0;
    }
}

@media (max-width: 991.98px) {
    .program-img {
        height: 350px;
    }
    .program-block {
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .program-img {
        height: 300px;
    }
    .program-content {
        padding-top: 1.5rem;
        padding-left: 0;
    }
    .program-block {
        margin-bottom: 3.5rem;
    }
}

/* Educational Initiatives - Hover Effects */
.initiative-card {
    transition: all 0.3s ease;
}

.initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Supporting Organizations - Hover Effects & Logo Styling */
.partner-card {
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.partner-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.partner-logo {
    max-height: 100px;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.partner-logo-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

/* Contact Page - Card Border Radius */
.contact-info-card,
.contact-form-card,
.additional-info-card {
    border-radius: var(--border-radius-lg) !important;
}

/* Support Our Mission Section Cards on Contact Page */
.contact-section .card {
    border-radius: var(--border-radius-lg) !important;
}

/* Responsive Products Page */
@media (max-width: 768px) {
    .product-features {
        gap: 0.25rem;
    }
    
    .product-features .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .product-content h3 {
        font-size: 1.3rem;
    }
    
    .product-content p {
        font-size: 0.95rem;
    }
    
    .product-benefits ul li {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-stats .stat-item {
        text-align: center;
        justify-content: center;
    }
    
    .gallery-filters .btn {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .overlay-content h5 {
        font-size: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    #wa-widget-send-button {
        margin: 0 -10px 100px 0;
        }
    .gallery-image {
        height: 180px;
    }
    
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-filters .btn {
        margin: 0.25rem;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Extra small screen products adjustments */
    .product-features .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    .product-content h3 {
        font-size: 1.2rem;
    }
    
    .product-content p {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .feature-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon-circle i {
        font-size: 1.5rem;
    }
}

/* ========================================
   Footer Custom Styles
   ======================================== */

/* Footer "built with ♥ by" styling - Custom classes */
.footer .footer-credit-link {
    color: #E5E7EB !important; /* Light gray for good contrast on dark footer */
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.75rem;
    line-height: 1rem;
    display: inline-block;
}

.footer .footer-credit-link:hover {
    color: #F9FAFB !important; /* Even lighter on hover */
}

.footer .footer-company-name {
    font-weight: 900;
    color: inherit;
}

/* Custom hover effect for the footer link */
.footer .footer-credit-link:hover {
    transform: translateY(-1px);
}

.footer .footer-credit-link:hover .footer-company-name {
    color: #F2F2F2 !important; /* Use the light background color for contrast */
}

/* Fix long email overflow on mobile */
.footer .footer-contact .contact-item a[href^="mailto:"] {
    word-break: break-all;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: inline-block;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer .footer-credit-link {
        font-size: 0.7rem;
    }
    
    /* Force email to wrap on mobile */
    .footer .footer-contact .contact-item a[href^="mailto:"] {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* ========================================
   Team Dashboard Styles
   ======================================== */

/* Team Hierarchy Layout */
.team-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
}

/* Enhanced KPI Cards */
.kpi-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 300px;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Main User Card (You) */
.main-user-card {
    border: 3px solid #007bff;
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
}

.main-user-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 123, 255, 0.2);
}

/* Connection Lines */
.connection-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 0;
}

.arrow-down {
    font-size: 20px;
    color: #007bff;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* User Info in Main Card */
.user-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.user-info strong {
    color: #007bff;
    font-size: 1.1rem;
}

.kpi-icon {
    height: 60px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.kpi-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.kpi-icon i {
    font-size: 24px;
    color: white;
    z-index: 1;
    position: relative;
}

.kpi-content {
    padding: 20px;
    background: white;
    border-radius: 0 0 15px 15px;
}

.kpi-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1;
}

.kpi-content p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #34495e;
}

.kpi-content small {
    font-size: 0.875rem;
    color: #7f8c8d;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

/* Color variations for different card types */
.main-user-card .kpi-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.direct-members-card .kpi-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.team-members-card .kpi-icon {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

/* Chart Height Constraints - Prevent Infinite Expansion */
#teamGrowthChart,
#teamDistributionChart {
    max-height: 300px !important;
    height: 300px !important;
    width: 100% !important;
}

/* Ensure card body doesn't expand infinitely */
.content-card .card-body {
    overflow: hidden;
}

.performer-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.performer-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.performer-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #e74c3c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.performer-avatar {
    flex-shrink: 0;
}

.performer-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.performer-item:hover .performer-pic {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.performer-info h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.performer-info p {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.performer-info small {
    margin: 0;
    font-size: 11px;
    color: #95a5a6;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-hierarchy {
        gap: 8px;
        padding: 15px 0;
    }
    
    .kpi-card {
        max-width: 100%;
    }
    
    .connection-line {
        margin: 3px 0;
    }
    
    .arrow-down {
        font-size: 18px;
    }
    
    /* Add spacing above Team Distribution when stacked on mobile */
    .team-distribution-mobile {
        margin-top: 30px;
    }
    
    /* Add spacing above Team Growth when stacked on mobile */
    .team-growth-mobile {
        margin-top: 30px;
    }
    
    /* Stack chart controls on mobile */
    .chart-controls {
        margin-top: 10px;
    }
    
    .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

/* Chart Controls Styling */
.chart-controls .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.chart-controls .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.chart-controls .btn {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.chart-controls .btn:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}