
/**
 * UMCA - Main Stylesheet
 * Colors: USA Flag Colors - Red (#B22234), White, Blue (#3C3B6E)
 */

/* CSS Variables */
:root {
    --primary-red: #B22234;
    --primary-red-light: #C41E3A;
    --primary-red-dark: #8B0000;
    --primary-blue: #3C3B6E;
    --primary-blue-light: #5A5A8F;
    --primary-blue-dark: #2C2C54;
    --primary-green: #2E7D32;
    --primary-green-light: #4CAF50;
    --primary-green-dark: #1B5E20;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #6c6c7c;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.logo-icon img {
    background-color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-menu a {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-medium);
    padding: 4px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-red);
}

.admin-link {
    color: var(--primary-blue) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Animated Donate Button */
.animated-donate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-red);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.animated-donate-btn .donate-icon-img {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.animated-donate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(178, 34, 52, 0.6);
}

.animated-donate-btn:hover .donate-icon-img {
    transform: scale(1.2) rotate(-10deg);
    color: var(--primary-red-dark);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(178, 34, 52, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(178, 34, 52, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(178, 34, 52, 0);
    }
}

.donate-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: transparent;
    z-index: -1;
}

.animated-donate-btn:hover .donate-pulse {
    animation: pulse 1.5s infinite;
}

@media (max-width: 992px) {
    .animated-donate-btn {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-blue {
    background: var(--primary-blue);
    color: white;
}

.btn-blue:hover {
    background: var(--primary-blue-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-green {
    background: var(--primary-green);
    color: white;
}

.btn-green:hover {
    background: var(--primary-green-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-red {
    background: var(--primary-red);
    color: white;
}

.btn-red:hover {
    background: var(--primary-red-dark);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-bg {
    background: var(--bg-light);
}

/* Highlights Section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.highlight-card {
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Core Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.value-icon i {
    font-size: 24px;
    color: white;
}

.value-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Core Values */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 25px 15px;
    }
}

/* Mission Section */
.mission-section {
    background: var(--primary-red);
    color: white;
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.mission-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Services Grid */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    padding: 18px;
}

.service-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.service-body {
    padding: 18px;
}

.service-body p {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-section h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item .icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-item .content h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-info-item .content p,
.contact-info-item .content a {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.95rem;
}

.contact-info-item .content a:hover {
    color: var(--primary-red);
}

/* Contact Form */
.contact-form-section {
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--border-radius-lg);
}

.contact-form-section h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(60, 59, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Footer Styles */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 35px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    font-size: 16px;
}

/* YouTube Brand Color */
.social-links a.youtube {
    background: #FF0000;
}

.social-links a.youtube:hover {
    background: #CC0000;
    transform: translateY(-3px);
}

/* Instagram Brand Color */
.social-links a.instagram {
    background: #E4405F;
}

.social-links a.instagram:hover {
    background: #C13584;
    transform: translateY(-3px);
}

/* Facebook Brand Color */
.social-links a.facebook {
    background: #1877F2;
}

.social-links a.facebook:hover {
    background: #0D65D9;
    transform: translateY(-3px);
}

/* X/Twitter Brand Color */
.social-links a.twitter-x {
    background: #000000;
}

.social-links a.twitter-x:hover {
    background: #333333;
    transform: translateY(-3px);
}

/* Fallback for other social links */
.social-links a:not(.youtube):not(.instagram):not(.facebook):not(.twitter-x) {
    background: rgba(255,255,255,0.1);
}

.social-links a:not(.youtube):not(.instagram):not(.facebook):not(.twitter-x):hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-red-light);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 0.95rem;
}

.contact-info a {
    color: #aaa;
}

.contact-info a:hover {
    color: var(--primary-red-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
}

.footer-bottom-links a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-red-light);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Donation Section */
.donation-section {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 50%, var(--primary-red-light) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donation-content {
    max-width: 700px;
    margin: 0 auto;
}

.donation-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.donation-section p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 25px;
}

.donation-btn {
    background: white;
    color: var(--primary-red);
    padding: 14px 40px;
    font-size: 1rem;
    display: inline-block;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.donation-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Media Gallery Styles */
.media-gallery {
    margin-top: 25px;
}

.media-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.media-tab {
    padding: 12px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-medium);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.media-tab:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.media-tab.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.media-slideshow-container {
    margin: 35px 0;
}

.media-slideshow {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--text-dark);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 25px;
    z-index: 2;
}

.media-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.media-info p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 16px;
}

.slideshow-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slideshow-nav.prev {
    left: 15px;
}

.slideshow-nav.next {
    right: 15px;
}

.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.media-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.media-item .caption {
    padding: 12px;
    background: var(--bg-light);
    font-size: 0.85rem;
    color: var(--text-medium);
    text-align: center;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 25px; }
.mt-4 { margin-top: 35px; }
.mt-5 { margin-top: 45px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 18px; }
.mb-3 { margin-bottom: 25px; }
.mb-4 { margin-bottom: 35px; }
.mb-5 { margin-bottom: 45px; }

/* Get Involved Cards */
.get-involved-section {
    background: var(--primary-blue);
    color: white;
    padding: 50px 0;
}

.get-involved-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.get-involved-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.get-involved-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15) !important;
}

.get-involved-card h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
}

.get-involved-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 70px 25px 25px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .get-involved-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .get-involved-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .slideshow-wrapper {
        height: 300px;
    }

    .media-info {
        padding: 18px;
    }

    .media-info h3 {
        font-size: 1.1rem;
    }

    .slideshow-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .media-item img,
    .media-item video {
        height: 100px;
    }

    .media-item .caption {
        padding: 10px;
        font-size: 0.8rem;
    }

    .contact-form-section {
        padding: 22px;
    }
}

@media (min-width: 481px) and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 993px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Media Modal / Lightbox Styles
   ============================================ */

/* Modal Overlay */
.media-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.media-modal {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.media-modal-overlay.active .media-modal {
    transform: scale(1);
}

/* Modal Header */
.media-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
}

.media-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.media-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    max-height: calc(90vh - 60px);
}

/* Media Section (Left Side) */
.media-modal-media {
    flex: 3;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.media-modal-media img,
.media-modal-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-modal-media video {
    width: 100%;
    height: 100%;
}

/* Description Section (Right Side) */
.media-modal-description {
    flex: 2;
    padding: 25px;
    overflow-y: auto;
    background: #fafafa;
    border-left: 1px solid #eee;
}

/* Media Date */
.media-modal-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.media-modal-date i {
    margin-right: 5px;
}

/* Media Title */
.media-modal-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

/* Media Caption */
.media-modal-caption {
    font-size: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 6px;
    border-left: 4px solid var(--primary-green);
}

/* Full Description / Article */
.media-modal-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.media-modal-content p {
    margin-bottom: 15px;
}

/* Modal Navigation */
.media-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    z-index: 10001;
}

.media-modal-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.media-modal-nav.prev {
    left: 20px;
}

.media-modal-nav.next {
    right: 20px;
}

/* Modal Dots */
.media-modal-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.media-modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-modal-dot.active {
    background: white;
    transform: scale(1.2);
}

/* No Description State */
.no-description {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

.no-description i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* Responsive Modal */
@media (max-width: 992px) {
    .media-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .media-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .media-modal-media {
        flex: none;
        height: 50vh;
        min-height: 300px;
    }
    
    .media-modal-description {
        flex: none;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .media-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .media-modal-nav.prev {
        left: 10px;
    }
    
    .media-modal-nav.next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .media-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .media-modal-header {
        padding: 12px 15px;
    }
    
    .media-modal-header h3 {
        font-size: 0.95rem;
    }
    
    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .media-modal-media {
        height: 40vh;
        min-height: 250px;
    }
    
    .media-modal-description {
        padding: 20px;
    }
    
    .media-modal-title {
        font-size: 1.25rem;
    }
}

/* Clickable media items */
.media-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.media-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 59, 110, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.media-item:hover::after {
    background: rgba(60, 59, 110, 0.1);
}

.slide {
    cursor: pointer;
}

.slide:hover::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

