/* ==========================================================
   INFOWORLD V2
   CATEGORY.CSS
========================================================== */

/* =====================================
   CATEGORY PAGE
===================================== */

.category-page{

    padding:40px 0 70px;

    background:#fff;

}

.category-page .container{

    max-width:1280px;

    margin:0 auto;

    padding:0 20px;

}

/* =====================================
   BREADCRUMB
===================================== */

.breadcrumb{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:30px;

    font-size:.9rem;

    color:#64748b;

}

.breadcrumb a{

    color:var(--primary);

    font-weight:600;

    text-decoration:none;

    transition:.3s;

}

.breadcrumb a:hover{

    text-decoration:underline;

}

.breadcrumb span{

    color:#94a3b8;

}

/* =====================================
   CATEGORY HERO
===================================== */

.category-hero{

    display:grid;

    grid-template-columns:1fr 430px;

    gap:45px;

    align-items:center;

    margin-bottom:50px;

    padding-bottom:45px;

    border-bottom:1px solid var(--border);

}

.category-info{

    max-width:720px;

}

.category-label{

    display:inline-flex;

    align-items:center;

    padding:8px 18px;

    background:var(--primary);

    color:#fff;

    border-radius:999px;

    font-size:.85rem;

    font-weight:700;

    letter-spacing:.5px;

    margin-bottom:20px;

    text-transform:uppercase;

}

.category-info h1{

    font-size:3rem;

    line-height:1.2;

    font-weight:800;

    color:#111827;

    margin-bottom:20px;

}

.category-info p{

    font-size:1.1rem;

    line-height:1.9;

    color:#64748b;

}

/* =====================================
   FEATURED CARD
===================================== */

.category-featured{

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    transition:.35s;

}

.category-featured:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 35px rgba(0,0,0,.10);

}

.category-featured img{

    width:100%;

    display:block;

    aspect-ratio:16/9;

    object-fit:cover;

}

.featured-content{

    padding:25px;

}

.featured-content span{

    display:inline-block;

    color:var(--primary);

    font-size:.8rem;

    font-weight:700;

    text-transform:uppercase;

    margin-bottom:12px;

}

.featured-content h2{

    font-size:1.5rem;

    line-height:1.5;

    margin-bottom:15px;

    color:#111827;

}

.featured-content p{

    color:#64748b;

    line-height:1.8;

    margin-bottom:18px;

}

.featured-content a{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--primary);

    font-weight:700;

    text-decoration:none;

    transition:.3s;

}

.featured-content a:hover{

    gap:12px;

}
/* =====================================
   CATEGORY LAYOUT
===================================== */

.category-layout{

    display:grid;

    grid-template-columns:minmax(0,1fr) 340px;

    gap:40px;

    align-items:start;

}

/* =====================================
   CONTENT
===================================== */

.category-content{

    min-width:0;

}

/* =====================================
   SECTION TITLE
===================================== */

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.section-title h2{

    font-size:2rem;

    font-weight:800;

    color:#111827;

}

.section-title a{

    color:var(--primary);

    font-weight:700;

    text-decoration:none;

    transition:.3s;

}

.section-title a:hover{

    text-decoration:underline;

}

/* =====================================
   CATEGORY GRID
===================================== */

.category-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}

/* =====================================
   NEWS CARD
===================================== */

.news-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 6px 20px rgba(0,0,0,.05);

}

.news-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 35px rgba(0,0,0,.10);

}

/* =====================================
   IMAGE
===================================== */

.news-card img{

    width:100%;

    display:block;

    aspect-ratio:16/9;

    object-fit:cover;

}

/* =====================================
   CARD CONTENT
===================================== */

.card-content{

    padding:22px;

}

.card-category{

    display:inline-block;

    margin-bottom:14px;

    padding:6px 12px;

    border-radius:999px;

    background:#eef6ff;

    color:var(--primary);

    font-size:.75rem;

    font-weight:700;

    text-transform:uppercase;

}

.card-content h3{

    font-size:1.3rem;

    line-height:1.5;

    margin-bottom:14px;

}

.card-content h3 a{

    color:#111827;

    text-decoration:none;

    transition:.3s;

}

.card-content h3 a:hover{

    color:var(--primary);

}

.card-content p{

    color:#64748b;

    line-height:1.8;

    margin-bottom:18px;

}

.card-content time{

    display:block;

    font-size:.85rem;

    color:#94a3b8;

}
/* =====================================
   SIDEBAR
===================================== */

.category-sidebar{

    position:sticky;

    top:120px;

    display:flex;

    flex-direction:column;

    gap:30px;

}

/* =====================================
   SIDEBAR WIDGET
===================================== */

.sidebar-widget{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    padding:25px;

    box-shadow:0 6px 20px rgba(0,0,0,.05);

}

.sidebar-widget h3{

    font-size:1.2rem;

    font-weight:700;

    color:#111827;

    margin-bottom:20px;

    padding-bottom:12px;

    border-bottom:2px solid var(--primary);

}

/* =====================================
   SIDEBAR LIST
===================================== */

.sidebar-widget ul{

    list-style:none;

    margin:0;

    padding:0;

}

.sidebar-widget li{

    padding:14px 0;

    border-bottom:1px solid #edf2f7;

}

.sidebar-widget li:last-child{

    border-bottom:none;

}

.sidebar-widget a{

    display:block;

    color:#374151;

    text-decoration:none;

    line-height:1.7;

    font-weight:600;

    transition:.3s;

}

.sidebar-widget a:hover{

    color:var(--primary);

    padding-left:8px;

}

/* =====================================
   NEWSLETTER
===================================== */

.newsletter-widget p{

    color:#64748b;

    line-height:1.8;

    margin-bottom:18px;

}

.newsletter-widget form{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.newsletter-widget input{

    width:100%;

    padding:14px;

    border:1px solid var(--border);

    border-radius:10px;

    font-size:.95rem;

}

.newsletter-widget input:focus{

    outline:none;

    border-color:var(--primary);

}

.newsletter-widget button{

    padding:14px;

    border:none;

    border-radius:10px;

    background:var(--primary);

    color:#fff;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.newsletter-widget button:hover{

    background:var(--primary-dark);

}

/* =====================================
   PAGINATION
===================================== */

.pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:12px;

    margin-top:60px;

}

.pagination a{

    display:flex;

    justify-content:center;

    align-items:center;

    min-width:46px;

    height:46px;

    padding:0 18px;

    border:1px solid var(--border);

    border-radius:10px;

    background:#fff;

    color:#374151;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.pagination a:hover{

    background:var(--primary);

    border-color:var(--primary);

    color:#fff;

}

.pagination a.active{

    background:var(--primary);

    border-color:var(--primary);

    color:#fff;

}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width:1200px){

.category-hero{

grid-template-columns:1fr;

gap:35px;

}

.category-info{

max-width:100%;

}

.category-featured{

max-width:700px;

margin:auto;

}

.category-layout{

grid-template-columns:1fr 320px;

}

}

/* =====================================
   TABLET
===================================== */

@media (max-width:992px){

.category-layout{

grid-template-columns:1fr;

}

.category-sidebar{

position:static;

}

.category-grid{

grid-template-columns:repeat(2,1fr);

}

.section-title{

flex-wrap:wrap;

gap:15px;

}

}

/* =====================================
   MOBILE
===================================== */

@media (max-width:768px){

.category-page{

padding:30px 0 50px;

}

.breadcrumb{

font-size:.85rem;

}

.category-hero{

gap:25px;

margin-bottom:40px;

padding-bottom:35px;

}

.category-label{

font-size:.75rem;

padding:6px 14px;

}

.category-info h1{

font-size:2.2rem;

line-height:1.3;

}

.category-info p{

font-size:1rem;

line-height:1.8;

}

.featured-content{

padding:20px;

}

.featured-content h2{

font-size:1.3rem;

}

.section-title{

margin-bottom:25px;

}

.section-title h2{

font-size:1.6rem;

}

.category-grid{

grid-template-columns:1fr;

gap:25px;

}

.news-card{

border-radius:14px;

}

.card-content{

padding:20px;

}

.card-content h3{

font-size:1.2rem;

}

.sidebar-widget{

padding:20px;

}

.pagination{

gap:10px;

}

.pagination a{

min-width:42px;

height:42px;

padding:0 14px;

font-size:.9rem;

}

}

/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width:480px){

.category-page .container{

padding:0 15px;

}

.breadcrumb{

font-size:.8rem;

gap:6px;

}

.category-info h1{

font-size:1.8rem;

}

.category-info p{

font-size:.95rem;

}

.featured-content{

padding:18px;

}

.featured-content h2{

font-size:1.15rem;

}

.featured-content p{

font-size:.95rem;

}

.card-content{

padding:18px;

}

.card-content h3{

font-size:1.1rem;

line-height:1.5;

}

.card-content p{

font-size:.92rem;

}

.sidebar-widget{

padding:18px;

}

.sidebar-widget h3{

font-size:1.05rem;

}

.newsletter-widget input,

.newsletter-widget button{

font-size:.9rem;

}

.pagination{

justify-content:flex-start;

overflow-x:auto;

padding-bottom:5px;

}

}

/* =====================================
   DARK MODE
===================================== */

body.dark-mode .category-page{

background:#0f172a;

}

body.dark-mode .category-featured,

body.dark-mode .news-card,

body.dark-mode .sidebar-widget{

background:#111827;

border-color:#334155;

}

body.dark-mode .category-info h1,

body.dark-mode .featured-content h2,

body.dark-mode .card-content h3 a,

body.dark-mode .sidebar-widget h3{

color:#f8fafc;

}

body.dark-mode .category-info p,

body.dark-mode .featured-content p,

body.dark-mode .card-content p,

body.dark-mode .sidebar-widget a,

body.dark-mode .breadcrumb{

color:#cbd5e1;

}

body.dark-mode .pagination a{

background:#111827;

border-color:#334155;

color:#f8fafc;

}

body.dark-mode .pagination a:hover,

body.dark-mode .pagination a.active{

background:var(--primary);

border-color:var(--primary);

}