/* ----- GLOBAL & VARIABLES ----- */
* { margin: 0; padding: 0; box-sizing: border-box;   font-family: 'Poppins', sans-serif; }
body { background-color: #fcfcfc; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

/* color palette */
:root {
    --brand-orange: #f37021;
    --navy-blue: #1b3e6c;
    --dark-grey: #2e2f41;
    --text-color: #58595b;
    --teal: #008ba3;
    --green-community: #67a041;
    --pink-pop: #d84b8d;
    --purple-topic: #7e69a8;
    --bg-beige: #EAE3D9;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;      /* Adjust size */
    width: auto;
    object-fit: contain;
}
.logo img {
    max-height: 80px;
    width: auto;
}   

.logo-title {
    font-size: 26px;
    font-weight: bold;
}

.orange-text {
    color: #ff6600;
}

.grey-text {
    color: #555;
}

.logo-subtitle {
    font-size: 12px;
    color: #777;
    margin-top: -4px;
}

/* ----- HEADER (sticky, original) ----- */
.main-header {
    background: #fff; border-bottom: 1px solid #eee; padding: 10px 20px;
    position: sticky; top: 0; z-index: 1000;
}
.header-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.header-left { display: flex; align-items: center; }
.menu-toggle { background: none; border: none; font-size: 20px; color: #58595b; cursor: pointer; margin-right: 15px; }
.logo { font-size: 24px; font-weight: bold; cursor: pointer; }
.orange-text { color: #f37021; }
.grey-text { color: #58595b; }

.nav-menu { display: flex; gap: 30px; }
.nav-item { text-decoration: none; color: #333; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.nav-item.active { color: #333; border-bottom: 3px solid #f37021; padding-bottom: 5px; }
.nav-item i { font-size: 18px; color: #666; }
.badge-new { background: #f37021; color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 4px; margin-left: -5px; text-transform: uppercase; }

.header-right { display: flex; align-items: center; gap: 20px; }
.search-icon { color: #58595b; font-size: 18px; }
.auth-buttons { font-size: 14px; font-weight: bold; }
.btn-signin, .btn-signup { text-decoration: none; color: #f37021; }
.divider { margin: 0 10px; color: #ccc; }

@media (max-width: 992px) {
    .nav-menu { display: none; }
    .auth-buttons { display: none; }
}

/* ----- TOP ANNOUNCEMENT BAR ----- */
.top-announcement { background: var(--dark-grey); color: white; padding: 10px 0; font-size: 14px; }
.top-flex { display: flex; align-items: center; justify-content: space-between; text-align: center; flex-wrap: wrap; gap: 10px; }
.top-center img { height: 50px; background: #4a5a6a; min-width: 50px; border-radius: 35px; }
.top-right { flex: 0 0 35%; line-height: 1.3; font-size: 13px; min-width: 250px; }


.brand-logo-hero { font-size: 28px; font-weight: bold; margin-bottom: 30px; }
.campaign-yellow-tag { background: #ffcc00; display: inline-block; padding: 8px 15px; border-radius: 5px; font-weight: bold; font-size: 18px; margin-bottom: 15px; }
h1 { font-size: 40px; color: #fff; line-height: 1.1; margin-bottom: 30px; font-weight: 500; }
.btn-dark-blue { background: var(--navy-blue); color: white; padding: 12px 35px; text-decoration: none; border-radius: 8px; font-size: 18px; display: inline-block; }
.hero-center img { max-height: 50px; width: auto; max-width: 50px; background: #ddd; border-radius: 35px;}
.campaign-logo img { width: 70px; background: #eee; height: 70px; margin-bottom: 20px; border-radius: 35px; }
.expert-bio h2 { color: #fff; font-size: 30px; position: relative; }
.expert-bio h2::before { content: '➔'; position: absolute; left: -45px; top: 5px; transform: rotate(150deg); font-size: 25px; opacity: 0.7; }

@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .expert-bio h2::before { display: none; }
    h1 { font-size: 30px; }
}

/* swiper pagination */
.swiper-pagination-bullet-active { background: var(--brand-orange) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--brand-orange); }

/* ----- ICON NAV 9 items ----- */
.icon-nav { padding: 40px 0; background: #fff; }
.icon-scroller { display: flex; justify-content: space-between; gap: 10px; width: 100%; flex-wrap: wrap; }
.icon-item { flex: 0 0 calc(100% / 9 - 10px); text-align: center; min-width: 90px; }
.circle { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; transition: transform 0.3s; border: 2px solid var(--brand-orange); padding: 4px; }
.circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #ccc; }
.icon-item p { font-size: 14px; color: #333; font-weight: 600; line-height: 1.2; }
@media (max-width: 1024px) {
    .icon-scroller { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
}

/* ----- EDITOR'S PICKS (teal) ----- */
.editors-picks { padding: 60px 5%; background: #f9f9f9; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 40px; }
.section-header h2 { color: #008ba3; font-size: 28px; margin-bottom: 5px; }
.section-header p { font-size: 14px; color: #555; }
.see-all { color: #008ba3; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 5px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.08); transition: 0.3s ease; cursor: pointer; }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.card-img { position: relative; height: 200px; background: #ddd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-tag { position: absolute; top: 10px; right: 10px; background: #ff7f50; color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 3px; text-transform: uppercase; }
.card-body { padding: 20px; }
.meta { font-size: 12px; color: #888; display: block; margin-bottom: 10px; }
.card-body h3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; color: #222; }
.card-body p { font-size: 14px; color: #666; line-height: 1.5; }
.card-footer { border-top: 1px solid #eee; margin-top: 20px; padding-top: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.readers { font-size: 12px; color: #777; display: flex; align-items: center; gap: 8px; }
.readers img { width: 24px; height: 24px; border-radius: 50%; background: #aaa; }
.actions { display: flex; align-items: center; gap: 15px; color: #888; font-size: 13px; flex-wrap: wrap; }
.actions span, .actions i { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.share-btn { background: #e0f2fe; color: #008ba3; padding: 3px 8px; border-radius: 5px; font-size: 12px; }

/* ----- JUST FOR YOU (beige background) ----- */
.just-for-you { background: var(--bg-beige); padding: 40px 20px; }
.jfy-container { max-width: 1200px; margin: 0 auto; }
.jfy-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.jfy-header h2 { color: #B92F26; font-size: 28px; font-weight: 800; margin: 0; }
.filter-btn { background: none; border: none; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 16px; }
.jfy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; }
.jfy-card { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.jfy-img { width: 100%; height: 200px; background: #ccc; }
.jfy-img img { width: 100%; height: 100%; object-fit: cover; }
.jfy-content { padding: 20px; }
.jfy-content h3 { font-size: 17px; line-height: 1.4; color: #222; margin: 0 0 15px 0; font-weight: 700; }
.jfy-meta { font-size: 13px; color: #777; margin: 0; }

/* ----- COMMUNITIES (green) ----- */
.communities-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.communities-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.communities-header h2 { color: var(--green-community); font-size: 32px; margin: 0 0 8px; font-weight: 700; }
.communities-header p { color: #888; font-size: 16px; max-width: 70%; }
.see-all-link { color: var(--green-community); text-decoration: none; font-weight: bold; }
.communities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.community-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; text-align: center; }
.image-container { position: relative; height: 180px; background: #ccc; }
.image-container img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); display: flex; }
.avatar { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; margin-left: -15px; background-size: cover; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; background-color: #4db6ac; }
.avatar:first-child { margin-left: 0; }
.card-body-comm { padding: 35px 15px 25px; }
.card-body-comm h3 { font-size: 18px; margin: 0 0 8px; }
.stats { font-size: 14px; color: #888; margin-bottom: 15px; }
.description { font-size: 15px; font-weight: 500; }

/* ----- POPULAR (pink) horizontal cards ----- */
.popular-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.popular-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.popular-header h2 { color: var(--pink-pop); font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.popular-header p { color: #777; max-width: 80%; }
.popular-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.popular-card { display: flex; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; height: 110px; }
.pop-card-img { width: 140px; min-width: 140px; background: #ccc; }
.pop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-info { padding: 15px; display: flex; flex-direction: column; justify-content: center; }
.pop-info h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.pop-meta { font-size: 12px; color: #8e8e8e; }
@media (max-width: 900px) { .popular-grid { grid-template-columns: 1fr; } }

/* ----- TOPICS (purple) ----- */
.topics-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.topics-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 25px; }
.topics-header h2 { color: var(--purple-topic); font-size: 36px; font-weight: 700; margin: 0; }
.tags-container { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { background: #ececec; color: #333; padding: 10px 20px; border-radius: 50px; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
@media (max-width:600px) { .tag { font-size:13px; padding:8px 15px; } }

.footer-container {
    background: #0f172a;
    color: #fff;
    padding: 60px 0 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #ff7a00;
}

.footer-about {
    margin: 15px 0;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #ff7a00;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 16px;
    background: #1e293b;
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #ff7a00;
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    padding: 10px 15px;
    border: none;
    background: #ff7a00;
    color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #e56b00;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
    color: #94a3b8;
}

.footer-bottom-links a {
    color: #94a3b8;
    margin-left: 15px;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #ff7a00;
}


