* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fdf2f8;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;          
    display: flex;              
    flex-direction: column;     
}

/* Top info bar */
#infoTop {
    background-color: #c084a1;
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid white;
}

.top-links {
    display: flex;
    gap: 15px;
}

#infoTop a {
    color: white;
    text-decoration: none;
}

#infoTop a:hover {
    text-decoration: underline;
}

/* Header section */
#headingInfo {
    background-color: #c084a1;
    color: white;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.header-right {
    flex: 0 0 auto;
}

#magazineName {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 5px;
    text-decoration: none;
    color: white;
}

.subdescription {
    font-style: italic;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
}

.subscribe-btn,
.pricing-btn {
    background: transparent;
    background-color: #a0495c;
    border: 2px solid white;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.subscribe-btn:hover,
.pricing-btn:hover {
    background: white;
    color: #c084a1;
}

/* Navigation */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #a0495c;
    padding: 15px 0;
    text-align: center;
    border-bottom: 3px solid #8b3a4f;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-links {
    display: inline-flex;
    gap: 25px;
    padding: 0 20px;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-bar a:hover {
    opacity: 0.8;
}

.search-icon {
    font-size: 0 !important;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 50%;
    position: relative;
    display: inline-block !important;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: white;
    right: -4px;
    bottom: -2px;
    transform: rotate(45deg);
}

.search-icon:hover {
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.nav-a-active {

    opacity: 0.8;
    box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.1) inset;

}

/* Main content area */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    flex: 1;
}

.text-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* Featured article (larger) */
.featured-article {
    grid-column: span 2;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8d7da, #e2b3ba);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 24px;
}

/* Regular article cards */
.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8d7da, #e2b3ba);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: #c084a1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #a0495c;
}

.category-tag {
    background: #c084a1;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #c084a1;
}

.about {
    margin-bottom: 15px;
    color: #c084a1;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.join {
    color: rgb(226, 174, 215);
    text-decoration: none;
}

#subscribeFooter {

    color: whitesmoke;
}

#subscribeFooter:hover {

    background-color: white;
    color: #2c3e50;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    #infoTop {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }

    .top-links {
        justify-content: center;
    }

    #headingInfo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-left,
    .header-right {
        order: 2;
    }

    .header-center {
        order: 1;
    }

    .nav-bar {
        padding: 10px 0;
    }

    .nav-links {
        gap: 15px;
        padding: 0 10px;
    }

    .nav-bar a {
        font-size: 14px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
        flex: 1;
    }

    .featured-article {
        grid-column: span 1;
    }

    .featured-image {
        height: 250px;
    }

    .article-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 15px;
    }

    .article-content {
        padding: 15px;
    }

    .subscribe-btn,
    .pricing-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Grid adjustments for different screen sizes */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-article {
        grid-column: span 2;
    }
}

@media (min-width: 1025px) {
    .main-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-article {
        grid-column: span 2;
    }
}

