/* ===============================
PORTUGAL NEWS MODERN BLOG STYLE
================================ */

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

body{
font-family: 'Segoe UI', Arial, sans-serif;
background:#f4f6f9;
color:#333;
line-height:1.6;
}

/* ===============================
CONTAINER
================================ */

.container{
max-width:1200px;
margin:auto;
padding:40px 20px;
}

/* ===============================
HEADER TITLE
================================ */

.title{
text-align:center;
font-size:42px;
font-weight:700;
margin-bottom:40px;
padding-top: 25px;
color:#111;
letter-spacing:1px;
}

/* ===============================
BLOG GRID
================================ */

.grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

gap:30px;

padding:20px;

max-width:1200px;

margin:auto;

}

/* ===============================
BLOG CARD
================================ */

.card{

background:#fff;

border-radius:12px;

overflow:hidden;

box-shadow:0 6px 20px rgba(0,0,0,0.08);

transition:0.35s;

position:relative;

}

.card:hover{

transform:translateY(-8px);

box-shadow:0 15px 35px rgba(0,0,0,0.12);

}

/* ===============================
IMAGE
================================ */

.card img{

width:100%;

height:210px;

object-fit:cover;

display:block;
transition: 0.4s ease;

}

.card img:hover{
    transform: scale(1.04);
}

/* Date */
.portugal_news_date{
    position:absolute;
    top:10px;
    left:0px;
    background:#fff;
    padding:6px 12px;
    font-size:12px;
    font-weight:600;
    border-radius: 4px;
}

.portugal_news_date:hover{
    color:#fff;
    background:#333;
}

/* ===============================
CARD CONTENT
================================ */

.card h2{

font-size:22px;

padding:18px;

color:#111;

}

.card p{

padding:0 18px 20px 18px;

font-size:15px;

color:#666;

}

/* ===============================
READ BUTTON
================================ */

.card a{

display:inline-block;
margin:0 18px 22px;
padding:10px 18px;
background:#111;
color:#fff;
font-size:14px;
text-decoration:none;
border-radius:6px;
width:max-content;
transition: 0.3s ease;

}

.card a:hover{

    transform: translateY(-4px);
    background:#222;
    box-shadow:0 8px 18px rgba(0,0,0,0.2);

}

.card a:active{
    transform: translateY(-1px);
}

/* ===============================
SINGLE POST PAGE
================================ */

.single{
max-width:850px;
margin:10px auto;
background:transparent !important;
background:#fff;
padding:40px;
border-radius:10px;

}

.single h1{

font-size:36px;

margin-bottom:20px;

}

.single img{

width:100%;

border-radius:8px;

margin:20px 0;

}

.single p{

font-size:17px;

line-height:1.8;

color:#444;

}

/* ===============================
Related Posts
================================ */

.related-posts{
max-width:750px;
margin:40px auto;
padding:0 20px;
}

.related-title{
max-width:750px;
margin:40px auto 20px;
padding:0 20px;
font-size:22px;
}

/* card */

.related-card{
display:flex;
gap:20px;
margin-bottom:25px;
border:1px solid #eee;
padding:15px;
border-radius:6px;
background:#fff;
transition: 0.4s ease;
}
.related-card:hover{
    transform: translateY(-5px);
}

/* image */

.related-image{
width:200px;
flex-shrink:0;
transition: 0.4s ease;
}

.related-image:hover{
    transform: scale(1.04);
}

.related-image img{
width:100%;
height:130px;
object-fit:cover;
border-radius:4px;
}



/* content */

.related-content{
flex:1;
display:flex;
flex-direction:column;
}

.related-content h4{
margin:0 0 8px;
font-size:18px;
}

.related-content p{
font-size:14px;
color:#555;
line-height:1.5;
margin-bottom:12px;
}

/* button */

.read-more{
display:inline-block;
background:#000;
color:#fff;
padding:7px 14px;
font-size:13px;
text-decoration:none;
border-radius:4px;
width:max-content;
transition: all 0.3s ease;
}

.read-more:hover{
    transform: translateY(-4px);
    background:#222;
    box-shadow:0 8px 18px rgba(0,0,0,0.2);
}

.read-more:active{
transform: translateY(-1px);
}

/* ===============================
Responsive
================================ */

@media (max-width:768px){

.related-card{
flex-direction:column;
}

.related-image{
width:100%;
}

.related-image img{
height:200px;
}

}

/* ===============================
SEARCH BAR
================================ */

.search-box{

max-width:500px;

margin:30px auto;

display:flex;

}

.search-box input{

flex:1;

padding:12px;

border:1px solid #ddd;

border-radius:6px 0 0 6px;

outline:none;

}

.search-box button{

padding:12px 20px;

border:none;

background:#111;

color:white;

border-radius:0 6px 6px 0;

cursor:pointer;

transition:0.3s;

}

.search-box button:hover{

background:#ff3b3b;

}

/* ===============================
CATEGORY TITLE
================================ */

.category-title{

text-align:center;

font-size:34px;

margin:40px 0;

}

/* ===============================
PAGINATION
================================ */

.pagination{

display:flex;

justify-content:center;

margin:40px 0;

gap:10px;

}

.pagination a{

padding:10px 16px;

background:white;

border:1px solid #ddd;

text-decoration:none;

color:#333;

border-radius:5px;

transition:0.3s;

}

.pagination a:hover{

background:#111;

color:#fff;

}

/* ===============================
FOOTER
================================ */

footer{

text-align:center;

padding:30px;

background:#111;

color:white;

margin-top:60px;

}

/* ===============================
RESPONSIVE DESIGN
================================ */

@media(max-width:768px){

.title{
font-size:32px;
}

.single{
padding:25px;
}

.card img{
height:180px;
}

}


/* ===============================
Comment Section
================================ */

.comment-section{
max-width:750px;
margin:60px auto;
padding:0 20px;
font-family:Arial, sans-serif;
}

/* toggle button */

.comment-toggle{
background:#111;
color:#fff;
padding:10px 20px;
border:none;
cursor:pointer;
border-radius:4px;
font-size:14px;
}

/* comment container */

.comment-box{
display:none;
margin-top:25px;
background:#fff;
padding:25px;
border-radius:8px;
box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

/* comment list spacing */

#commentsList{
margin-bottom:25px;
}

/* single comment */

.single-comment{
padding:15px 18px;
margin-bottom:15px;
border:1px solid #eee;
border-radius:6px;
background:#fafafa;
}

/* comment name */

.single-comment b{
display:block;
font-size:15px;
margin-bottom:5px;
color:#222;
}

/* comment text */

.single-comment p{
margin:0;
line-height:1.6;
color:#444;
}

/* reply button */

.single-comment button{
margin-top:8px;
font-size:12px;
background:#eee;
border:none;
padding:5px 10px;
cursor:pointer;
border-radius:3px;
}

/* reply comments */

.reply{
margin-left:35px;
margin-top:12px;
padding:12px;
background:#f3f3f3;
border-radius:5px;
border:1px solid #e5e5e5;
}

/* comment form */

.comment-form{
margin-top:30px;
}

.comment-form h3{
margin-bottom:15px;
font-size:20px;
text-align:center;
}

/* input fields */

.comment-form input,
.comment-form textarea{
width:100%;
padding:12px;
margin-bottom:12px;
border:1px solid #ddd;
border-radius:4px;
font-size:14px;
}

.comment-form textarea{
min-height:100px;
resize:vertical;
}

/* submit button */

.comment-form button{
background:#000;
color:#fff;
padding:12px 20px;
border:none;
cursor:pointer;
border-radius:4px;
font-size:14px;
}

/* ===============================
Responsive
================================ */

@media (max-width:768px){

.comment-section{
padding:0 15px;
}

.comment-box{
padding:18px;
}

.reply{
margin-left:20px;
}

}

@media (max-width:480px){

.comment-form h3{
font-size:18px;
}

.comment-toggle{
font-size:13px;
padding:8px 16px;
}

}






/* ===============================
POST BREADCRUMB
================================ */

.post-breadcrumb{
max-width:850px;
margin:auto auto 50px auto;
font-size:14px;
color:#666;
display:flex;
gap:15px;
align-items:center;
}

.post-breadcrumb a{
text-decoration:none;
color:#111;
padding:4px 8px;
border-radius:6px;
transition:0.3s;
}

.post-breadcrumb a:hover{
background:#111;
color:#fff;
}

/* ===============================
POST META
================================ */

.post-meta{
display:flex;
gap:20px;
margin-bottom:20px;
font-size:14px;
color:#666;
flex-wrap:wrap;
}

.post-meta span{
background:#f1f1f1;
padding:6px 12px;
border-radius:20px;
transition:0.3s;
}

.post-meta span:hover{
background:#111;
color:#fff;
}



/* ===============================
READING PROGRESS BAR
================================ */

.reading-progress{
position:fixed;
top:0;
left:0;
width:100%;
height:4px;
background:#eee;
z-index:9999;
}

.reading-bar{
height:4px;
width:0%;
background:#111;
transition:width 0.2s ease;
}


/* ===============================
TABLE OF CONTENTS
================================ */

.toc-box{

background:#fff;
border:1px solid #eee;
padding:20px;
border-radius:8px;
margin:30px 0;

}

.toc-box h3{

margin-bottom:10px;
font-size:18px;

}

.toc-box ul{

list-style:none;
padding-left:10px;

}

.toc-box li{

margin-bottom:8px;

}

/* arrow symbol */

.toc-box li::before{

content: "» ";
color:#0073e6;

}

.toc-box a{

text-decoration:none;
color:#111;
font-size:14px;
transition:all .3s ease;

}

.toc-box a:hover{

text-decoration:underline;
color:#0073e6;
padding-left:5px;

}



/* ===============================
AUTO CONTENT STYLE
================================ */

.single h1,
.single h2,
.single h3,
.single h4,
.single h5,
.single h6{
font-weight:600;
margin-top:20px;
margin-bottom:10px;
}

/* main heading inside content */

.single h2{
font-size:18px;
border-left:3px solid #0073e6;
padding-left:8px;
}

/* other headings */

.single h3,
.single h4,
.single h5,
.single h6{
font-size:15px;
}

/* paragraph */

.single p{
font-size:14px;
line-height:1.8;
color:#333;
}

/* ul li */

.single ul li{
    font-size:14px;
    line-height:1.8;
}

/* table th td tr */

.single th td tr{
    font-size:14px;
}