*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Open Sans', Arial, Helvetica, sans-serif;
}


/* HERO SECTION */

.hero-section{
width:100%;
padding:80px 8%;
background:#f4f7fb;
}


.hero-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:70px;
    max-width:1200px;
    margin:auto;
}



/* LEFT SIDE */

.hero-left{
flex:1;
max-width:540px;
}


.hero-category{
display:inline-block;
background:#e6edf7;
padding:6px 14px;
font-size:12px;
border-radius:20px;
font-weight:600;
margin-bottom:20px;
}


.hero-title{
font-size:48px;
font-weight:700;
line-height:1.2;
margin-bottom:20px;
color:#000;
max-width:520px;   /* prevents long titles from stretching */
word-break:break-word;
}


.hero-description{
font-size:16px;
color:#555;
max-width:450px;
margin-bottom:30px;
line-height:1.6;
}


.read-more-btn{
display:inline-block;
padding:12px 28px;
border:2px solid #000;
text-decoration:none;
color:#000;
font-weight:600;
transition:0.3s;
}


.read-more-btn:hover{
background:#000;
color:#fff;
}



/* RIGHT SIDE */

.hero-right{
    flex:0 0 600px;
}

.hero-right img{
    width:100%;
    height:auto;
    display:block;
}

/* MINI POSTS STRIP */

.mini-posts{
background:#eaeaea;
padding:30px 8%;
margin-top:-60px; /* overlap hero section */
}

.mini-posts-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}


.mini-post{
display:flex;
align-items:center;
gap:15px;
}


.mini-post img{
    width:90px;
    height:60px;
    object-fit:contain;
    background:#fff;
    border-radius:4px;
}


.mini-category{
font-size:10px;
background:#000;
color:#fff;
padding:3px 8px;
border-radius:10px;
display:inline-block;
margin-bottom:5px;
}


.mini-post-content h4{
font-size:14px;
font-weight:600;
line-height:1.4;
cursor:pointer;
}
/* FEATURED CATEGORIES */

.categories-section{
padding:80px 8%;
background:#f5f5f5;
text-align:center;
}

.categories-title{
font-size:32px;
margin-bottom:50px;
font-weight:700;
}

.categories-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.category-box{
position:relative;
display:block;
overflow:hidden;
border-radius:4px;
}

.category-box img{
width:100%;
height:220px;
object-fit:cover;
display:block;
transition:0.4s;
}

.category-name{
position:absolute;
bottom:20px;
left:50%;
transform:translateX(-50%);
background:#000;
color:#fff;
padding:8px 16px;
font-size:12px;
font-weight:700;
letter-spacing:1px;
}



/* Hover Effect */

.category-box:hover img{
transform:scale(1.05);
}

/* TRENDING / POPULAR SECTION */

.news-section{
padding:80px 8%;
background:#ffffff;
}

.news-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:80px;
}


.news-title{
font-size:28px;
font-weight:700;
margin-bottom:30px;
position:relative;
}

.news-title::after{
content:'';
width:50px;
height:3px;
background:#000;
position:absolute;
bottom:-10px;
left:0;
}


.news-list{
list-style:none;
margin-top:20px;
}


.news-list li{
padding:16px 0;
border-bottom:1px solid #e5e5e5;
}


.news-list li a{
text-decoration:none;
font-size:17px;
color:#333;
line-height:1.4;
transition:0.3s;
display:block;
}


.news-list li a:hover{
color:#0073e6;
padding-left:6px;
}
/* NEWSLETTER CTA */

.newsletter-section{
padding:80px 8%;
background:#f4f4f4;
display:flex;
justify-content:center;
}

.newsletter-box{
max-width:900px;
width:100%;
background:#000;
color:#fff;
padding:50px 40px;
text-align:center;
border-radius:6px;
}

.newsletter-box h2{
font-size:28px;
margin-bottom:10px;
}

.newsletter-box p{
font-size:16px;
color:#ccc;
margin-bottom:25px;
}

.newsletter-form{
display:flex;
justify-content:center;
gap:10px;
flex-wrap:wrap;
}

.newsletter-form input{
padding:12px 15px;
width:320px;
border:none;
border-radius:4px;
font-size:15px;
}

.newsletter-form button{
padding:12px 25px;
border:none;
background:#0073e6;
color:#fff;
font-size:15px;
font-weight:600;
border-radius:4px;
cursor:pointer;
transition:0.3s;
}

.newsletter-form button:hover{
background:#005fcc;
}
/* EDITORS PICKS */

.editors-section{
padding:80px 8%;
background:#f6f6f6;
}

.editors-title{
font-size:36px;
text-align:center;
margin-bottom:50px;
font-weight:700;
}

.editors-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}

.editor-card{
    background:#fff;
    padding:20px;
    border-radius:8px;
    transition:0.3s;
}

.editor-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.editor-card img{
    width:100%;
    height:auto;
    display:block;
    border-radius:6px;
    margin-bottom:18px;   /* creates gap between image and title */
}

.editor-card h3{
    font-size:20px;
    margin-bottom:12px;
    margin-top:5px;
}

.editor-card p{
    font-size:15px;
    color:#666;
    line-height:1.6;
    margin-bottom:18px;
}

.read-more{
text-decoration:none;
font-weight:600;
color:#000;
transition:0.3s;
}

.read-more:hover{
color:#0073e6;
}

.editor-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* CATEGORY HIGHLIGHTS FIX */

.category-highlights{
    padding:90px 6%;
    background:#f6f6f6;
}

.highlight-title{
    text-align:center;
    font-size:40px;
    font-weight:700;
    margin-bottom:70px;
    position:relative;
}

/* decorative line */

.highlight-title::after{
    content:"";
    width:80px;
    height:4px;
    background:#000;
    display:block;
    margin:15px auto 0;
    border-radius:2px;
}

/* CATEGORY NAME STYLE */

.category-heading{
    font-size:32px;
    font-weight:700;
    margin:50px auto 40px;
    text-align:center;
    position:relative;
    display:inline-block;
}

/* decorative side lines */

.category-heading::before,
.category-heading::after{
    content:"";
    position:absolute;
    top:50%;
    width:120px;
    height:2px;
    background:#ddd;
}

.category-heading::before{
    right:100%;
    margin-right:20px;
}

.category-heading::after{
    left:100%;
    margin-left:20px;
}

.category-block{
    width:100%;
    max-width:1200px;
    margin:70px auto;
    text-align:center;
}

.highlight-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
    margin-bottom:60px;
}

.highlight-item.reverse{
    flex-direction:row-reverse;
}

.highlight-image{
    width:50%;
}

.highlight-image img{
    width:100%;
    height:auto;
    border-radius:10px;
    display:block;
}

.highlight-content{
    width:50%;
}

.highlight-content h4{
    font-size:26px;
    margin-bottom:12px;
}

.highlight-content p{
    color:#666;
    font-size:16px;
    margin-bottom:18px;
    line-height:1.6;
}

.highlight-btn{
    display:inline-block;
    padding:10px 22px;
    background:#000;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
}
.view-all-btn{
    display:inline-block;
    margin:40px auto 0;
    padding:12px 30px;
    border:2px solid #000;
    background:#fff;
    color:#000;
    text-decoration:none;
    font-weight:600;
    border-radius:6px;
    transition:0.3s;
}

.view-all-btn:hover{
    background:#000;
    color:#fff;
}
/* LATEST ARTICLES SECTION */

.latest-section{
padding:90px 8%;
background:#ffffff;
}

.latest-title{
text-align:center;
font-size:40px;
font-weight:700;
margin-bottom:60px;
}

.latest-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}

.latest-card{
background:#fff;
border-radius:8px;
overflow:hidden;
transition:0.3s;
display:block;
text-decoration:none;
color:inherit;
}

.latest-card:hover{
transform:translateY(-6px);
box-shadow:0 12px 25px rgba(0,0,0,0.08);
}

.latest-card img{
width:100%;
height:auto;
display:block;
}

.latest-category{
display:inline-block;
margin:15px 20px 8px;
font-size:12px;
font-weight:700;
background:#000;
color:#fff;
padding:4px 10px;
border-radius:4px;
}

.latest-card h3{
font-size:20px;
margin:0 20px 10px;
line-height:1.4;
}

.latest-card p{
font-size:15px;
color:#666;
margin:0 20px 20px;
line-height:1.6;
}

.latest-card:hover h3{
color:#0073e6;
}
/* ABOUT SECTION */

.about-section{
padding:100px 8%;
background:#f8f9fb;
}

.about-container{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
gap:60px;
}

.about-image{
flex:1;
}

.about-image img{
width:100%;
height:auto;
border-radius:10px;
display:block;
}

.about-content{
flex:1;
}

.about-content h2{
font-size:38px;
margin-bottom:20px;
font-weight:700;
}

.about-content p{
font-size:16px;
color:#555;
line-height:1.7;
margin-bottom:15px;
}

.about-points{
list-style:none;
margin:20px 0;
}

.about-points li{
font-size:15px;
margin-bottom:10px;
padding-left:20px;
position:relative;
}

.about-points li::before{
content:"✔";
position:absolute;
left:0;
color:#0073e6;
font-size:14px;
}

.about-btn{
display:inline-block;
margin-top:15px;
padding:12px 28px;
background:#000;
color:#fff;
text-decoration:none;
border-radius:6px;
font-weight:600;
transition:0.3s;
}

.about-btn:hover{
background:#0073e6;
}
/* MAIN CTA SECTION */

.main-cta{
padding:110px 8%;
background:linear-gradient(135deg,#000,#1a1a1a);
color:#fff;
text-align:center;
}

.cta-container{
max-width:800px;
margin:auto;
}

.main-cta h2{
font-size:42px;
font-weight:700;
margin-bottom:20px;
}

.main-cta p{
font-size:18px;
color:#ccc;
line-height:1.6;
margin-bottom:35px;
}

.cta-form{
display:flex;
justify-content:center;
gap:10px;
flex-wrap:wrap;
margin-bottom:30px;
}

.cta-form input{
padding:14px 16px;
width:320px;
border:none;
border-radius:6px;
font-size:16px;
}

.cta-form button{
padding:14px 28px;
border:none;
background:#0073e6;
color:#fff;
font-size:16px;
font-weight:600;
border-radius:6px;
cursor:pointer;
transition:0.3s;
}

.cta-form button:hover{
background:#005fcc;
}

.cta-info{
display:flex;
justify-content:center;
gap:25px;
flex-wrap:wrap;
font-size:15px;
color:#ddd;
}
/* BREAKING NEWS TICKER */

.breaking-news{
background:#000;
color:#fff;
padding:10px 0;
overflow:hidden;
}

.breaking-container{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
gap:20px;
}

.breaking-label{
background:#e60000;
padding:6px 14px;
border-radius:20px;
font-size:14px;
font-weight:600;
white-space:nowrap;
}

.breaking-slider{
overflow:hidden;
flex:1;
}

.breaking-track{
display:flex;
gap:50px;
animation:breakingScroll 25s linear infinite;
}

.breaking-track a{
color:#fff;
text-decoration:none;
font-size:15px;
white-space:nowrap;
}

.breaking-track a:hover{
text-decoration:underline;
}

/* animation */

@keyframes breakingScroll{

0%{
transform:translateX(100%);
}

100%{
transform:translateX(-100%);
}

}
/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */


/* TABLETS */

@media (max-width: 1024px){

.hero-container{
flex-direction:column;
text-align:center;
}

.hero-left{
max-width:100%;
}

.hero-right{
flex:unset;
width:100%;
}

.hero-right img{
max-width:500px;
margin:auto;
}

.hero-title{
font-size:36px;
margin:auto;
}

.mini-posts-container{
grid-template-columns:1fr 1fr;
}

.categories-container{
grid-template-columns:1fr 1fr;
}

.editors-container{
grid-template-columns:1fr 1fr;
}

.latest-container{
grid-template-columns:1fr 1fr;
}

.news-container{
grid-template-columns:1fr;
gap:50px;
}

.about-container{
flex-direction:column;
text-align:center;
}

.highlight-item{
flex-direction:column;
text-align:center;
}

.highlight-item.reverse{
flex-direction:column;
}

.highlight-image,
.highlight-content{
width:100%;
}

}


/* MOBILE */

@media (max-width: 768px){

.hero-section{
padding:60px 6%;
}

.hero-title{
font-size:32px;
}

.hero-description{
font-size:15px;
margin:auto;
}

.read-more-btn{
margin-top:10px;
}

.mini-posts-container{
grid-template-columns:1fr;
}

.categories-container{
grid-template-columns:1fr;
}

.editors-container{
grid-template-columns:1fr;
}

.latest-container{
grid-template-columns:1fr;
}

.news-title{
font-size:24px;
}

.category-heading::before,
.category-heading::after{
display:none;
}

.highlight-title{
font-size:32px;
}

.about-content h2{
font-size:30px;
}

.main-cta h2{
font-size:32px;
}

.cta-form{
flex-direction:column;
}

.cta-form input{
width:100%;
}

.cta-form button{
width:100%;
}

.newsletter-form{
flex-direction:column;
}

.newsletter-form input{
width:100%;
}

.newsletter-form button{
width:100%;
}

/* MOBILE BREAKING NEWS FIX */

@media (max-width:768px){

.breaking-container{
display:flex;
align-items:center;
gap:12px;
padding:0 10px;
}

.breaking-label{
font-size:13px;
padding:5px 12px;
}

.breaking-slider{
flex:1;
overflow:hidden;
}

.breaking-track{
display:flex;
gap:40px;
animation:breakingScroll 18s linear infinite;
}

.breaking-track a{
font-size:14px;
}

}

}


/* SMALL MOBILE */

@media (max-width:480px){

.hero-title{
font-size:28px;
}

.latest-title{
font-size:32px;
}

.editors-title{
font-size:32px;
}

.highlight-title{
font-size:30px;
}

.main-cta h2{
font-size:28px;
}

.about-content h2{
font-size:28px;
}

}

/* VIEW ALL CATEGORIES BUTTON */

.view-all-categories{
    display:inline-block;
    margin-top:50px;
    padding:14px 36px;
    background:#000;
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    border-radius:50px;
    letter-spacing:0.5px;
    transition:all 0.3s ease;
    position:relative;
    overflow:hidden;
}

/* Hover Effect */
.view-all-categories:hover{
    background:#0073e6;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

/* Optional: glowing effect */
.view-all-categories::after{
    content:'';
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:-100%;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,0.4),transparent);
    transition:0.5s;
}

.view-all-categories:hover::after{
    left:100%;
}