/* Global Styles */
:root {
    --primary-color: #FF69B4; /* Hot pink */
    --secondary-color: #4169E1; /* Royal blue */
    --light-pink: #FFC0CB;
    --light-blue: #ADD8E6;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* General Styles */
body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e045a0;
    border-color: #e045a0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #3151b5;
    border-color: #3151b5;
}

.section-title {
    position: relative;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
}

/* Header Styles */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

header h1 {
    font-weight: 700;
    color: #fff;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Article Cards */
.article-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.08);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex-grow: 1;
    padding: 15px;
}

.article-title {
    min-height: 50px;
    overflow: hidden;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Boxes */
.category-box {
    transition: all 0.3s ease;
}

.category-box:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 105, 180, 0.1);
    margin: 0 auto;
    color: var(--primary-color);
}

.category-icon.blue {
    background-color: rgba(65, 105, 225, 0.1);
    color: var(--secondary-color);
}

/* Article Detail Page */
.article-detail {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-detail-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.article-detail-image img {
    width: 100%;
    height: auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-meta-item {
    margin-right: 25px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.article-meta-item i {
    margin-right: 5px;
    color: var(--primary-color);
}

.tips-list, .content-list {
    padding-left: 20px;
}

.tips-list li, .content-list li {
    margin-bottom: 10px;
}

/* Age Group Badges */
.age-group-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-group-pregnancy {
    background-color: #FF69B4;
}

.age-group-planning {
    background-color: #FF8C00;
}

.age-group-newborn {
    background-color: #4169E1;
}

.age-group-toddler {
    background-color: #32CD32;
}

.age-group-preschool {
    background-color: #9370DB;
}

.age-group-maternal {
    background-color: #20B2AA;
}

/* Ads */
.ad-container {
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: white;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: var(--light-pink);
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    background: var(--light-pink);
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--text-color);
}

/* Responsive fixes */
@media (max-width: 767px) {
    .article-image {
        height: 160px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
}

/* Rating stars */
.rating {
    display: inline-flex;
    align-items: center;
    background-color: var(--light-pink);
    color: black;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.rating i {
    color: var(--primary-color);
    margin-right: 4px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
    }
    
    .article-meta-item {
        margin-right: 0;
    }
}

/* Special content sections */
.pregnancy-tracker {
    background-color: var(--light-pink);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.baby-milestone {
    background-color: var(--light-blue);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

/* Alerts */
.alert-primary {
    background-color: var(--light-pink);
    border-color: var(--primary-color);
    color: #721c24;
}

.alert-secondary {
    background-color: var(--light-blue);
    border-color: var(--secondary-color);
    color: #0c5460;
}

/* Banner Section */
.banner {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Trimester Icons */
.trimester-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trimester-icon i {
    font-size: 30px;
}

/* Custom colored buttons */
.btn-pink {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-pink:hover {
    background-color: #e045a0;
    border-color: #e045a0;
    color: white;
}

.btn-blue {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-blue:hover {
    background-color: #3151b5;
    border-color: #3151b5;
    color: white;
}

/* Special sections */
.advice-box {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(255, 105, 180, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
}

.advice-box.blue {
    border-left: 4px solid var(--secondary-color);
    background-color: rgba(65, 105, 225, 0.1);
}
