/* Landing Page Specific Styles */

.landing-page {
    margin-top: 0;
}

/* Application Form Dropdown Styling */
.application-form-dropdown,
.form-select,
select {
    padding: 8px 12px !important;
    border: 2px solid #007bff !important;
    border-radius: 6px !important;
    background: white !important;
    color: #007bff !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 200px !important;
}

.application-form-dropdown:hover,
.form-select:hover,
select:hover {
    background: #007bff !important;
    color: white !important;
}

/* Dropdown menu items with reduced padding */
.dropdown-menu,
.select2-dropdown {
    padding: 2px 0 !important;
    margin-top: 2px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    background: white !important;
    z-index: 9999 !important;
}

.dropdown-menu li,
.dropdown-menu a,
.select2-results__option {
    padding: 3px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    border: none !important;
    background: transparent !important;
    transition: background-color 0.2s ease !important;
}

.dropdown-menu li:hover,
.dropdown-menu a:hover,
.select2-results__option:hover {
    background-color: #f8f9fa !important;
    color: #007bff !important;
}

/* Hero Carousel Section */
.hero-carousel-section {
    margin-top: 80px; /* Use fixed spacing to avoid env differences */
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .hero-carousel-section {
        margin-top: 60px;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section {
        margin-top: 40px;
    }
}

.carousel {
    position: relative;
}

.carousel-item {
    height: clamp(320px, 60vh, 500px); /* Consistent yet responsive height */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 15;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: white;
    border-color: white;
}

.carousel-indicators li:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    border: none;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Hero Section (keeping for reference) */
.hero-section {
    background: white;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-top: 8%;
    margin-bottom: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

/* ============================= */
/* SaveMother Landing Sections   */
/* ============================= */

.stm-section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 18px;
    color: #222;
}

.stm-section-intro {
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
    color: #444;
    font-size: 1.05rem;
}

/* 1) Mission & Vision */
.stm-mission-section {
    padding: 72px 0;
    background: #ffffff;
}

.stm-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stm-icon-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stm-icon-card i { font-size: 30px; margin-bottom: 8px; color: #fff; }
.stm-icon-card h3 { margin: 6px 0 6px; font-size: 1.15rem; color: #1f2937; font-weight: 700; }
.stm-icon-card p { color: #475569; margin: 0; font-size: .98rem; }

.stm-card-pink { background: linear-gradient(135deg,#ff7aa2,#ff5d8f); color: #fff; }
.stm-card-red { background: linear-gradient(135deg,#ff6b6b,#ef476f); color: #fff; }
.stm-card-yellow { background: linear-gradient(135deg,#ffd166,#ffb703); color: #fff; }
.stm-card-green { background: linear-gradient(135deg,#06d6a0,#1dbf73); color: #fff; }

.stm-icon-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.12); }

@media (max-width: 992px) { .stm-icons-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px) { .stm-icons-grid { grid-template-columns: 1fr; } }

/* 2) Impact Numbers */
.stm-impact-section {
    padding: 60px 0;
    background: linear-gradient(90deg, rgba(255,182,193,0.25), rgba(144,238,144,0.25));
}

.stm-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stm-impact-item {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stm-impact-item i { font-size: 28px; color: #ef476f; margin-bottom: 6px; }
.stm-impact-number { font-size: 2rem; font-weight: 900; color: #111827; }
.stm-impact-label { color: #4b5563; margin-top: 2px; }

@media (max-width: 768px) { .stm-impact-grid { grid-template-columns: 1fr; } }

/* 3) Services */
.stm-services-section { padding: 72px 0; background: #fff; }
.stm-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stm-service-card { border-radius: 16px; padding: 24px; color: #111; box-shadow: 0 10px 24px rgba(0,0,0,.08); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.stm-service-card i { font-size: 26px; margin-bottom: 6px; color: #111; }
.stm-service-card h3 { margin: 4px 0 6px; font-size: 1.15rem; font-weight: 800; }
.stm-service-card p { margin: 0; color: #374151; }
.stm-service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.12); }

.stm-bg-red { background: #ffd2d8; }
.stm-bg-green { background: #c8ffec; }
.stm-bg-orange { background: #ffe1c2; }
.stm-bg-yellow { background: #fff3b0; }

@media (max-width: 768px) { .stm-services-grid { grid-template-columns: 1fr; } }

/* 4) Stories */
.stm-stories-section { padding: 72px 0; background: #fff7f4; }
.stm-story-card { display: grid; grid-template-columns: 320px 1fr; gap: 18px; background: #ffede5; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.08); padding: 18px; align-items: center; }
.stm-story-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: #fff; }
.stm-story-content p { color: #7a3e2d; margin: 0 0 10px; font-size: 1.02rem; }

.stm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.stm-btn-warm { background: #ff6b6b; color: #fff; box-shadow: 0 6px 18px rgba(255,107,107,.35); }
.stm-btn-warm:hover { background: #ff4d4d; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,77,77,.45); }

@media (max-width: 992px) { .stm-story-card { grid-template-columns: 1fr; } }

/* 5) Help CTAs */
.stm-help-section { padding: 72px 0; background: #fff; }
.stm-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stm-help-card { display: flex; gap: 12px; align-items: center; justify-content: center; border-radius: 18px; padding: 24px; font-weight: 900; color: #111; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.stm-help-card i { font-size: 24px; }
.stm-help-donate { background: linear-gradient(135deg,#ff7aa2,#ff5d8f); color: #fff; }
.stm-help-volunteer { background: linear-gradient(135deg,#67e8f9,#34d399); color: #0a0a0a; }
.stm-help-awareness { background: linear-gradient(135deg,#fef08a,#f59e0b); color: #0a0a0a; }
.stm-help-card:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 28px rgba(0,0,0,.12); filter: brightness(1.03); }

@media (max-width: 768px) { .stm-help-grid { grid-template-columns: 1fr; } }

/* 6) Partners */
.stm-partners-section { padding: 60px 0; background: #f7fafc; }
.stm-partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; }
.stm-partner-logo { background: #fff; border-radius: 12px; min-height: 64px; display: flex; align-items: center; justify-content: center; color: #94a3b8; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
@media (max-width: 992px) { .stm-partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .stm-partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* 7) Newsletter */
.stm-newsletter-section { padding: 54px 0; background: linear-gradient(90deg,#ff6b6b,#f59e0b,#34d399); color: #fff; }
.stm-newsletter-title { text-align: center; font-weight: 900; font-size: 2rem; margin: 0 0 16px; }
.stm-newsletter-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.stm-input { flex: 1; border: none; border-radius: 999px; padding: 14px 18px; outline: none; box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.stm-btn-contrast { background: #111827; color: #fff; border: none; border-radius: 999px; padding: 12px 22px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.stm-btn-contrast:hover { background: #000; transform: translateY(-1px); }

@media (max-width: 576px) { .stm-newsletter-form { flex-direction: column; } }
