/* Custom Styles for Virchow Foundation */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 80px 0;
}

/* Hero Slideshow */
/* Add space for fixed navbar */
main {
    margin-top: 0;
    padding-top: 90px;
}

.hero-slideshow {
    position: relative;
    margin-top: 0 !important;
    min-height: 500px;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-slide {
    filter: brightness(1.1) contrast(1.15);
}

/* Hero Slide Background Images */
.hero-slide-health {
    background-image: url('../img/health.jpeg');
    background-size: cover;
    background-position: center 20%;
}

.hero-slide-education {
    background-image: url('../img/cha1835T01.JPG');
    background-size: cover;
    background-position: center;
}

.hero-slide-infrastructure {
    background-image: url('../img/infra.jpg');
    background-size: cover;
    background-position: center top;
}

.hero-slide-about {
    background-image: url('../img/About.JPG');
    background-size: cover;
    background-position: center top;
}

/* Hero Slide Text - Light green color with shadow for visibility */
.hero-slide .col-lg-8 h1 {
    color: #4CAF50 !important; /* Light green */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.hero-slide .col-lg-8 p {
    color: #000000 !important; /* Black - plain text */
    font-weight: bold;
}

.hero-slide .col-lg-8 .btn-outline-light {
    color: #4CAF50 !important;
    border-color: #4CAF50 !important;
    background: rgba(255, 255, 255, 0.85);
}

.hero-slide .col-lg-8 .btn-outline-light:hover {
    background: #4CAF50 !important;
    color: #fff !important;
}

.hero-slide .col-lg-8 .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #4CAF50 !important;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Carousel Controls */
.hero-slideshow .carousel-control-prev,
.hero-slideshow .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-slideshow .carousel-control-prev {
    left: 20px;
}

.hero-slideshow .carousel-control-next {
    right: 20px;
}

.hero-slideshow .carousel-control-prev:hover,
.hero-slideshow .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

/* Carousel Indicators */
.hero-slideshow .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-slideshow .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-slideshow .carousel-indicators button.active {
    background-color: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

/* Carousel Fade Transition */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Responsive Hero Slideshow */
@media (max-width: 768px) {
    .hero-slideshow {
        height: calc(100vh - 70px) !important;
        min-height: 400px;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-slide .lead {
        font-size: 1rem !important;
    }
    
    .hero-slideshow .carousel-control-prev,
    .hero-slideshow .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-slideshow .carousel-control-prev {
        left: 10px;
    }
    
    .hero-slideshow .carousel-control-next {
        right: 10px;
    }
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Rating Stars */
.rating-star {
    transition: color 0.2s ease;
}

.rating-star:hover {
    color: #ffc107 !important;
}

.rating-star.active {
    color: #ffc107 !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar */
/* Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.navbar .container-fluid {
    padding-left: 15px;
}

/* White navbar with blue text */
.navbar.bg-white .nav-link {
    color: #1a5c2e !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    margin: 0 0.25rem;
}

.navbar.bg-white .nav-link:hover {
    color: #4CAF50 !important;
    background-color: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.navbar.bg-white .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navbar.bg-white .nav-link:hover i {
    transform: scale(1.1);
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

/* Hover dropdown for desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown {
        position: relative;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 250px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        display: block !important;
        pointer-events: none;
        margin-top: 0;
        z-index: 1000;
    }
    
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu,
    .navbar-nav .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .navbar-nav .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    
    .navbar-nav .nav-item.dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.navbar .dropdown-item:hover {
    background-color: #e8f5e9;
    color: #1a5c2e;
    padding-left: 2rem;
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Active nav link styling */
.navbar .nav-link.active {
    background-color: rgba(76, 175, 80, 0.15);
    color: #1a5c2e !important;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .navbar .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar .dropdown-menu {
        margin-left: 1rem;
        border-left: 3px solid #1a5c2e;
    }
}

.navbar.bg-white .navbar-toggler {
    border-color: #1a5c2e;
}

.navbar.bg-white .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%2826, 92, 46, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.bg-white .dropdown-menu {
    border-color: #1a5c2e;
}

.navbar.bg-white .dropdown-item:hover {
    background-color: #e8f5e9;
    color: #1a5c2e;
}

/* Footer - Green Theme */
.footer-green {
    background: linear-gradient(135deg, #198754 0%, #157347 50%, #0f5132 100%);
    position: relative;
    overflow: hidden;
}

.footer-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-green .container {
    position: relative;
    z-index: 1;
}

.footer-link {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    color: #fff !important;
    text-decoration: underline !important;
    transform: translateX(5px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.3) !important;
    margin: 2rem 0 1rem 0;
}

/* Footer */
footer a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Section Spacing */
section {
    padding: 60px 0;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Floating Social Media Icons */
.floating-social-icons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-icon.facebook:hover {
    background: linear-gradient(135deg, #0d5dbf 0%, #1877f2 100%);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-icon.youtube:hover {
    background: linear-gradient(135deg, #cc0000 0%, #ff0000 100%);
}

/* Responsive: Hide on mobile or make smaller */
@media (max-width: 768px) {
    .floating-social-icons {
        right: 10px;
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .floating-social-icons {
        right: 5px;
        gap: 8px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Google Map Styles */
.map-container {
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.map-container iframe {
    border-radius: 0.375rem;
}

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 75% !important;
    }
}
