/* =========================================================
   CATEGORY PAGE STYLES
========================================================= */


/* =========================================================
   CATEGORY LABEL
========================================================= */

.cat-label-bar {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 0 12px;

    border-bottom: 2px solid #225fcf;

    margin-bottom: 16px;
}

.cat-label-tag {
    font-size: 14px;
    color: #555;
    font-family: sans-serif;
}

.cat-label-name {
    font-size: 18px;
    font-weight: 700;
    color: #225fcf;
}


/* =========================================================
   PAGE LAYOUT
========================================================= */

.cat-page-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 300px;

    gap: 20px;

    align-items: flex-start;
}

.cat-main {
    min-width: 0;
}


/* =========================================================
   ARTICLE LIST
========================================================= */

.cat-articles-grid {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ARTICLE
========================================================= */

.cat-article-card {
    display: flex;

    width: 100%;

    gap: 32px;

    padding: 28px 0;

    border: none;

    border-bottom: 1px solid #d9d9d9;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    overflow: visible;

    text-decoration: none !important;

    color: inherit;

    transition: none;
}


/* Remove card hover shadow */

.cat-article-card:hover {
    box-shadow: none;

    background: transparent;
}


/* =========================================================
   ARTICLE IMAGE
========================================================= */

.cat-article-img {
    width: 180px;

    min-width: 180px;

    height: 120px;

    aspect-ratio: auto;

    overflow: hidden;

    background: #eee;

    flex-shrink: 0;

    border-radius: 0;
}


/* Image */

.cat-article-img img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 0;

    transition: transform 0.35s ease;
}


/* Image hover */

.cat-article-card:hover .cat-article-img img {
    transform: scale(1.04);
}


/* =========================================================
   ARTICLE BODY
========================================================= */

.cat-article-body {
    flex: 1;

    min-width: 0;

    padding: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;
}


/* =========================================================
   ARTICLE TITLE
========================================================= */

.cat-article-title {
    margin: 0 0 10px 0;

    padding: 0;

    font-size:18px;

    line-height: 1.35;

    font-weight: 700;

    color: #168bd8;

    display: block;

    overflow: visible;

    transition: color 0.2s ease;
}


/* Title hover */

.cat-article-card:hover .cat-article-title {
    color: #006fc7;
}


/* =========================================================
   ARTICLE DESCRIPTION
========================================================= */

.cat-article-source {
    margin: 0 0 12px 0;

    padding: 0;

    font-size: 17px;

    line-height: 1.6;

    font-weight: 400;

    color: #173b63;

    display: block;

    overflow: visible;
}


/* Hide category/source badge */

.cat-source-badge {
    display: none;
}


/* =========================================================
   ARTICLE DATE
========================================================= */

.cat-article-meta {
    margin: 0;

    padding: 0;

    font-size: 15px;

    line-height: 1.4;

    font-weight: 400;

    color: #8a8a8a;

    font-family: sans-serif;
}


/* Clock */

.cat-article-meta i {
    margin-right: 5px;

    color: #8a8a8a;
}


/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.cat-sidebar {
    position: sticky;

    top: 58px;

    display: flex;

    flex-direction: column;

    gap: 0;

    width: 300px;

    max-width: 300px;
}


/* =========================================================
   SIDEBAR SECTION
========================================================= */

.cat-sb-section {
    background: #fff;

    border: 1px solid #e0e0e0;

    border-radius: 8px;

    overflow: hidden;

    margin-bottom: 12px;
}

.cat-sb-section:last-of-type {
    margin-bottom: 0;
}


/* =========================================================
   SIDEBAR HEADING
========================================================= */

.cat-sb-heading {
    background: #225fcf;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    padding: 11px 16px;

    border-radius: 6px 6px 0 0;

    border-left: 5px solid var(--accent);

    letter-spacing: 0.3px;
}


/* =========================================================
   SIDEBAR LIST
========================================================= */

.cat-sb-list {
    padding: 4px 0;

    margin: 0;
}


/* =========================================================
   SIDEBAR ITEM
========================================================= */

.cat-sb-item {
    display: flex;

    gap: 10px;

    align-items: flex-start;

    padding: 9px 12px;

    border-bottom: 1px solid #f2f2f2;

    text-decoration: none;

    color: var(--text);

    transition: background 0.15s ease;
}

.cat-sb-item:last-child {
    border-bottom: none;
}

.cat-sb-item:hover {
    background: #f7fdfd;
}


/* Sidebar image */

.cat-sb-item img {
    width: 88px;

    height: 62px;

    object-fit: cover;

    border-radius: 3px;

    flex-shrink: 0;

    display: block;
}


/* Sidebar text */

.cat-sb-item p {
    margin: 0;

    padding: 0;

    font-size: 13.5px;

    line-height: 1.55;

    color: #222;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

    transition: color 0.2s ease;
}


/* Sidebar hover */

.cat-sb-item:hover p {
    color: #225fcf;
}


/* =========================================================
   SIDEBAR AD
========================================================= */

.cat-sb-ad {
    margin-top: 14px;

    text-align: center;
}

.cat-sb-ad-label {
    font-size: 10px;

    color: #aaa;

    font-family: sans-serif;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 4px;
}

.cat-sb-ad-box {
    width: 300px;

    height: 250px;

    max-width: 100%;

    background: #f0f0f0;

    border: 1px dashed #ccc;

    border-radius: 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #bbb;

    font-size: 13px;

    font-family: sans-serif;

    text-align: center;

    line-height: 1.8;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .cat-page-layout {
        grid-template-columns: minmax(0, 1fr) 280px;

        gap: 18px;
    }

    .cat-sidebar {
        width: 280px;

        max-width: 280px;
    }

    .cat-article-card {
        gap: 24px;

        padding: 24px 0;
    }

    .cat-article-img {
        width: 165px;

        min-width: 165px;

        height: 110px;
    }

    .cat-article-title {
        font-size: 21px;

        line-height: 1.4;
    }

    .cat-article-source {
        font-size: 16px;

        line-height: 1.55;
    }

}


/* =========================================================
   TABLET / SMALL SCREEN
========================================================= */

@media (max-width: 850px) {

    .cat-page-layout {
        grid-template-columns: 1fr;
    }

    .cat-main {
        width: 100%;
    }

    .cat-sidebar {
        position: static;

        width: 100%;

        max-width: 100%;

        margin-top: 20px;
    }

    .cat-sb-ad-box {
        width: 100%;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .cat-label-bar {
        padding: 8px 0 10px;

        margin-bottom: 8px;
    }

    .cat-label-tag {
        font-size: 13px;
    }

    .cat-label-name {
        font-size: 17px;
    }


    /* Article */

    .cat-article-card {
        display: flex;

        width: 100%;

        gap: 15px;

        padding: 18px 0;

        align-items: flex-start;
    }


    /* Image */

    .cat-article-img {
        width: 115px;

        min-width: 115px;

        height: 80px;
    }


    /* Content */

    .cat-article-body {
        flex: 1;

        min-width: 0;
    }


    /* Title */

    .cat-article-title {
        font-size: 17px;

        line-height: 1.35;

        margin: 0 0 5px 0;

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    /* Description */

    .cat-article-source {
        font-size: 14px;

        line-height: 1.45;

        margin: 0 0 5px 0;

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    /* Date */

    .cat-article-meta {
        font-size: 12px;

        line-height: 1.4;
    }


    /* Sidebar */

    .cat-sidebar {
        margin-top: 15px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .cat-article-card {
        gap: 12px;

        padding: 15px 0;
    }


    .cat-article-img {
        width: 100px;

        min-width: 100px;

        height: 70px;
    }


    .cat-article-title {
        font-size: 15px;

        line-height: 1.35;
    }


    .cat-article-source {
        font-size: 13px;

        line-height: 1.4;
    }


    .cat-article-meta {
        font-size: 11px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 350px) {

    .cat-article-card {
        gap: 10px;
    }

    .cat-article-img {
        width: 90px;

        min-width: 90px;

        height: 63px;
    }

    .cat-article-title {
        font-size: 14px;
    }

    .cat-article-source {
        font-size: 12px;
    }

}

.article-share-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 0;              /* reduced height */
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
    margin:12px 0 18px;
    flex-wrap:wrap;
}

.share-author{
    display:flex;
    align-items:center;
    gap:10px;
}

.share-author img{
    width:36px;
    height:36px;
    border-radius:50%;
    object-fit:cover;
}

.author-text strong{
    font-size:14px;
    line-height:1.2;
    color:#111;
}

.author-text span{
    font-size:12px;
    color:#777;
}

.suryaa-now{
    display:flex;
    align-items:center;
    gap:8px;
    background:#5A2DDE;
    color:#fff;
    text-decoration:none;
    padding:6px 12px;
    border-radius:22px;
    font-size:13px;
    font-weight:700;
}

.suryaa-now img{
    width:24px;
    height:24px;
    border-radius:50%;
    background:#fff;
    padding:2px;
}

.share-icons{
    display:flex;
    align-items:center;
    gap:6px;
}

.font-size-btn,
.share-btn{
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    text-decoration:none;
}

.font-size-btn{
    background:#f2f2f2;
    color:#222;
    font-weight:700;
}

.fb{background:#1877F2;color:#fff;}
.x{background:#000;color:#fff;}
.wa{background:#25D366;color:#fff;}
.link{background:#2196F3;color:#fff;}

@media(max-width:768px){
    .article-share-bar{
        gap:8px;
    }

    .suryaa-now{
        order:3;
    }
}


/* =========================================
   PHOTO GALLERY SECTION
========================================= */

.photo-gallery-section{
    width:100%;
    background:#111;
    padding:22px 14px 28px;
    margin-top:20px;
    box-sizing:border-box;
}


/* HEADER */

.pg-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:18px;
}

.pg-heading{
    margin:0;
    padding:0;
    color:#fff;
    font-size:25px;
    font-weight:700;
    line-height:1.2;
}

.pg-view-more{
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:3px;
}

.pg-view-more:hover{
    color:#fff;
    text-decoration:none;
}

.pg-view-more span{
    font-size:26px;
    line-height:12px;
}


/* =========================================
   4 COLUMN GRID
========================================= */

.pg-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
    width:100%;
}


/* =========================================
   CARD
========================================= */

.pg-card{
    display:block;
    width:100%;
    min-width:0;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    color:#222;
    transition:transform .2s ease, box-shadow .2s ease;
}

.pg-card:hover{
    color:#222;
    text-decoration:none;
    transform:translateY(-3px);
    box-shadow:0 6px 18px rgba(0,0,0,.25);
}


/* =========================================
   THUMBNAIL
========================================= */

.pg-thumb{
    position:relative;
    width:100%;
    aspect-ratio:16 / 10;
    overflow:hidden;
    background:#ddd;
}

.pg-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease;
}

.pg-card:hover .pg-thumb img{
    transform:scale(1.04);
}


/* Small gallery icon on image */

.pg-image-icon{
    position:absolute;
    left:8px;
    bottom:8px;

    width:28px;
    height:28px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff;
    color:#079de5;

    border-radius:3px;

    font-size:15px;

    box-shadow:0 1px 4px rgba(0,0,0,.25);
}


/* =========================================
   PHOTO META
========================================= */

.pg-meta{
    display:flex;
    align-items:center;
    gap:7px;

    padding:9px 10px 0;
}

.pg-photo-icon{
    width:27px;
    height:27px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:2px solid #00a3e8;
    border-radius:3px;

    color:#00a3e8;
    background:#fff;

    font-size:13px;
}

.pg-photo-text{
    color:#444;
    font-size:13px;
    font-weight:700;
}


/* =========================================
   TITLE
========================================= */
.pg-card-title{
    background:#fff;
    color:#222;

    padding:8px 12px 14px;

    font-size:17px;
    font-weight:600;
    line-height:1.5;

    /* Auto height */
    min-height:0;
    height:auto;

    /* Don't cut Telugu text */
    display:block;
    overflow:visible;

    word-break:break-word;
    overflow-wrap:anywhere;
}

/* =========================================
   TABLET
========================================= */

@media(max-width:991px){

    .pg-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:15px;
    }

    .pg-card-title{
        font-size:16px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media(max-width:576px){

    .photo-gallery-section{
        padding:18px 10px 22px;
    }

    .pg-header{
        margin-bottom:14px;
    }

    .pg-heading{
        font-size:20px;
    }

    .pg-view-more{
        font-size:12px;
    }

    .pg-view-more span{
        font-size:22px;
    }

    .pg-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:12px;
    }

    .pg-image-icon{
        width:24px;
        height:24px;
        left:6px;
        bottom:6px;
        font-size:12px;
    }

    .pg-meta{
        padding:7px 8px 0;
    }

    .pg-photo-icon{
        width:23px;
        height:23px;
        font-size:11px;
    }

    .pg-photo-text{
        font-size:11px;
    }

   .pg-card-title{
        padding:7px 9px 12px;
        font-size:14px;
        line-height:1.5;

        min-height:0;
        height:auto;

        display:block;
        overflow:visible;
        word-break:break-word;
        overflow-wrap:anywhere;
    }


}


/* =========================================
   SURYAA PHOTO GALLERY LIST
========================================= */

.suryaa-gallery-list{
    width:100%;
}


/* =========================================
   EACH PHOTO
========================================= */

.suryaa-gallery-item{
    width:100%;
    background:#fff;

    margin-bottom:24px;

    border:1px solid #ddd;

    box-shadow:0 1px 3px rgba(0,0,0,.08);

    overflow:hidden;
}


/* =========================================
   PHOTO CONTAINER
========================================= */

.suryaa-gallery-photo{
    position:relative;

    width:100%;

    background:#000;

    overflow:hidden;
}


/* IMAGE */

.suryaa-gallery-photo img{
    display:block;

    width:100%;
    height:auto;

    max-height:none;

    object-fit:contain;

    background:#000;
}


/* =========================================
   PHOTO NUMBER
========================================= */

.suryaa-photo-count{
    position:absolute;

    top:0;
    left:0;

    background:#d40000;

    color:#fff;

    padding:8px 10px;

    font-size:18px;
    font-weight:700;

    line-height:1.2;

    min-width:50px;

    text-align:center;
}


/* =========================================
   CAPTION
========================================= */

.suryaa-gallery-caption{
    background:#fff;

    color:#222;

    padding:12px 18px 18px;

    text-align:center;

    font-size:20px;

    font-weight:600;

    line-height:1.65;
}


/* =========================================
   HOVER
========================================= */

.suryaa-gallery-item:hover{
    box-shadow:0 3px 10px rgba(0,0,0,.12);
}


/* =========================================
   TABLET
========================================= */

@media(max-width:991px){

    .suryaa-gallery-item{
        margin-bottom:20px;
    }

    .suryaa-photo-count{
        font-size:16px;
        padding:7px 9px;
    }

    .suryaa-gallery-caption{
        font-size:18px;
        padding:10px 14px 15px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media(max-width:576px){

    .suryaa-gallery-item{
        margin-bottom:16px;
    }

    .suryaa-photo-count{
        font-size:14px;

        padding:6px 8px;

        min-width:42px;
    }

    .suryaa-gallery-caption{
        padding:9px 10px 13px;

        font-size:16px;

        line-height:1.55;
    }

}