/* Custom Variables */
:root {
    --primary-color: #e65100;
    --secondary-color: #ff9800;
    --accent-color: #ffd180;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #333333;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Language Selector */
.btn-link {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

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

.nav-link.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.nav-link.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 8rem 0;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Programs Section */
.program-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    transition: color 0.3s ease;
}

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

.newsletter-form .form-control {
    border-radius: 5px 0 0 5px;
    border: none;
}

.newsletter-form .btn {
    border-radius: 0 5px 5px 0;
}

/* Social Media Icons */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Gallery Styles */
.page-header {
    background-color: var(--light-color);
    border-bottom: 3px solid var(--primary-color);
}

.gallery-section .nav-pills .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 25px;
    margin: 0 5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.gallery-section .nav-pills .nav-link:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.gallery-section .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.video-item:hover .play-button {
    color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.2);
}

.gallery-overlay {
    padding: 15px;
    background-color: white;
}

.gallery-overlay h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.gallery-overlay p {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Gallery Modal Styles */
#imageModal .modal-body img {
    border-radius: 5px;
}

#imageModalDescription,
#videoModalDescription {
    color: var(--text-color);
    line-height: 1.6;
}

/* Educational Videos Styles */
.educational-video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.educational-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.educational-video-card .video-thumbnail {
    position: relative;
    cursor: pointer;
}

.educational-video-card .video-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.educational-video-card .video-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.educational-video-card .video-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.educational-video-card .video-info p {
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 10px;
}

.educational-video-card .video-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: auto;
}

.educational-videos-section {
    background-color: #f8f9fa;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin-top: 3px;
}

/* WhatsApp pulse animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stat-card {
        margin-bottom: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .gallery-section .nav-pills .nav-link {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .gallery-image,
    .video-thumbnail {
        height: 200px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }
}
