/* ==========================================
   Custom CSS for Health Education Website
   Color Palette: 
   - Primary Green: #5C8326
   - Light Green: #D0D269
   - Orange: #F99912
   - White: #FFFFFF
   - Dark Green: #1D5113
   ========================================== */

:root {
    --primary-green: #5C8326;
    --light-green: #D0D269;
    --orange: #F99912;
    --white: #FFFFFF;
    --dark-green: #1D5113;
    --light-gray: #f8f9fa;
     --primary-light: #DBFDF9;
    --primary-accent: #FFC107;
    --dark-text: #1F2933;
    --success-green: #4CAF50;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.2rem;
    color: var(--primary-green) !important;
    font-weight: 600;
}

.navbar-brand i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */

/* Image card container */
.hero-image-card {
  position: relative;
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  max-width: 420px;
}

/* Image */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-image-card:hover .hero-img {
  transform: scale(1.1);
}

/* Glow background */
.hero-glow {
  position: absolute;
  inset: -40px;
  background: rgba(0, 195, 169, 0.25);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
}

/* Gradient overlay */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    transparent 60%
  );
}

/* Glass card */
.hero-glass-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 16px;
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

/* Icon box */
.hero-icon {
  background: rgba(0, 195, 169, 0.25);
  padding: 10px;
  border-radius: 12px;
  color: #00C3A9;
  font-size: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-image-card {
    max-width: 100%;
    border-radius: 2rem;
  }
}



 /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-light) 0%, rgba(76, 175, 80, 0.1) 100%);
            padding: 4rem 0;
            min-height: 500px;
            display: flex;
            align-items: center;
            border-bottom: 4px solid var(--primary-accent);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 300px;
            height: 300px;
            background: rgba(76, 175, 80, 0.1);
            border-radius: 50%;
            transform: translate(50%, -50%);
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 3rem;
            font-weight: 800;
            color: var(--dark-text);
            margin-bottom: 1.5rem;
            line-height: 1.2;
            text-shadow: 2px 2px 4px rgba(219, 253, 249, 0.5);
        }

        .hero p {
            font-size: 1.25rem;
            color: var(--dark-text);
            margin-bottom: 2rem;
            max-width: 600px;
        }
  .btn-primary-custom {
            background-color: var(--primary-accent);
            border: none;
            color: var(--dark-text);
            font-weight: 700;
            padding: 0.75rem 2.5rem;
            border-radius: 50px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .btn-primary-custom:hover {
            background-color: #FFB300;
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
            color: var(--dark-text);
        }

/* ...... */

.tamil-quote {
    font-size: 2.5rem;
    color: var(--light-green);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Color Utilities */
.text-primary {
    color: var(--primary-green) !important;
}

.text-warning {
    color: var(--orange) !important;
}

.text-success {
    color: var(--dark-green) !important;
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

.bg-warning {
    background-color: var(--orange) !important;
}

.bg-success {
    background-color: var(--dark-green) !important;
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 131, 38, 0.3);
}

.btn-warning {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e88800;
    border-color: #e88800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 153, 18, 0.3);
}

.btn-success {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-success:hover {
    background-color: #153d0e;
    border-color: #153d0e;
}

/* Badge Colors */
.badge.bg-primary {
    background-color: var(--primary-green) !important;
}

.badge.bg-success {
    background-color: var(--dark-green) !important;
}

.badge.bg-warning {
    background-color: var(--orange) !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Icon Box */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Card Hover Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--orange) 0%, #e88800 100%);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-primary {
    background-color: rgba(92, 131, 38, 0.1);
    color: var(--dark-green);
}

.alert-warning {
    background-color: rgba(249, 153, 18, 0.1);
    color: #c77700;
}

.alert-success {
    background-color: rgba(29, 81, 19, 0.1);
    color: var(--dark-green);
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(92, 131, 38, 0.25);
}

.form-label {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Expert Section */
.expert-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.expert-image-container img {
    transition: transform 0.3s ease;
}

.expert-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(29, 81, 19, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expert-image-container:hover .expert-overlay {
    opacity: 1;
}

.expert-image-container:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer a:hover {
    color: var(--orange) !important;
}

.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: var(--orange) !important;
    padding-left: 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .tamil-quote {
        font-size: 1.8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 50px 0;
    }
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Scrolling Effects */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Custom Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(92, 131, 38, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Timeline Styles (if needed) */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-green);
}

/* Statistics Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Testimonial Cards */
.testimonial {
    position: relative;
    padding: 2rem;
    background: white;
    border-left: 4px solid var(--primary-green);
}

/* Image Overlay Effects */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(29, 81, 19, 0.7));
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(92, 131, 38, 0.1);
}

.progress-bar {
    background-color: var(--primary-green);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item.active {
    color: var(--primary-green);
}

/* Social Media Buttons */
.social-links .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    transform: translateY(-3px);
}

/* Spinner/Loader */
.spinner {
    border: 3px solid rgba(92, 131, 38, 0.1);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-5px);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .expert-image-container {
        min-height: 300px;
    }
}

/* Tablet Responsiveness */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #4a6b1e;
        --dark-green: #153d0e;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


  /* Stats Section */
        .stats-section {
            background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
            color: var(--white);
            padding: 4rem 0;
            text-align: center;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .stat-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            border-radius: 12px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--light-green);
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            font-size: 1.1rem;
            color: var(--white);
        }
          .highlight-box {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-left: 5px solid var(--accent-orange);
            padding: 2rem;
            margin: 2rem 0;
            border-radius: 8px;
            box-shadow: 0 3px 10px var(--shadow);
        }
         .content-card {
            background: var(--white);
            padding: 2.5rem;
            margin-bottom: 2rem;
            border-radius: 12px;
            box-shadow: 0 5px 20px var(--shadow);
            border-left: 5px solid var(--primary-green);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
         .fade-in {
            animation: fadeInUp 0.8s ease;
        }