/* HopeForTots - shared site styles */

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

iframe {
    margin: 0 auto;
}

.gradient-bg {
    background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-animate {
    animation: countUp 1s ease-out;
}

/* Navbar */
.navbar-scroll {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scroll a,
.navbar-scroll button {
    color: #1f2937 !important;
}

.navbar-scroll a:hover {
    color: #FF6B9D !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 60;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    color: #1f2937 !important;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #fdf2f8;
    color: #FF6B9D !important;
}

.navbar-scroll .nav-dropdown-menu a {
    color: #1f2937 !important;
}

.mobile-news-submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.mobile-news-submenu a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Homepage hero topics */
.topic-quick-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.topic-quick-links a:hover {
    color: #FFE66D;
    border-bottom-color: #FFE66D;
}

/* Homepage sections */
.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D, #4ECDC4);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.counter {
    font-size: 3rem;
    font-weight: bold;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FF6B9D;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #FF6B9D;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% + 1rem);
    background: #e5e7eb;
}

.timeline-item:last-child::after {
    display: none;
}

.news-card,
.story-card {
    transition: all 0.3s ease;
}

.news-card:hover,
.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact form */
.form-input:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Articles & topics */
.article-content {
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.article-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: #FF6B9D;
    margin-bottom: 0.35rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: #6B7280;
}

.topic-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.topic-chip-row a {
    color: #FF6B9D;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 157, 0.35);
    padding-bottom: 2px;
}

.topic-chip-row a:hover {
    color: #e25586;
    border-bottom-color: #e25586;
}
