@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Kannada:wght@400;500;700&display=swap');
:root {
    --red: #b0002c;
    --red-dark: #8a0022;
    --blue: #0b2d5c;
    --dark: #111827;
    --muted: #6b7280;
    --bg: #f3f4f6;
    --card: #ffffff;
    --line: #e5e7eb;
    --green: #16a34a;

    --ancient-light: #f4e4bc;
    --ancient-mid: #d8c08c;
    --ancient-nav: #ead7a1;
    --ancient-border: #b08d57;
    --ancient-text: #5a3e1b;
    --ancient-dark: #7c2d12;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--dark);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* TOPBAR */

.topbar {
    background: #0b1220;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 16px;
}

/* HEADER */

.header {
    background: linear-gradient(135deg, var(--ancient-light), var(--ancient-mid));
    border-bottom: 2px solid var(--ancient-border);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.header-inner {
    max-width: 1180px;
    margin: auto;
    padding: 0px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 38px;
    font-weight: 900;
    color: var(--red);
    text-shadow: 1px 1px 2px rgba(0,0,0,.15);
}

.logo img,
.site-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.logo-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.logo-title{
    display:flex;
    align-items:center;
    gap:8px;
}

.logo-media{
    color: var(--blue);
}

.logo-masters{
    color: var(--red);
}

.logo-tagline{
    font-family:'Noto Serif Kannada', serif;
    font-size:12px;
    font-weight:600;
    color:var(--ancient-text);
    margin-top:4px;
    letter-spacing:.5px;
}

/* SEARCH */

.search {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 520px;
}

.search input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ancient-border);
    border-radius: 10px;
    background: #fffaf0;
}

.search input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(176,0,44,.12);
}

/* BUTTONS */

.btn {
    background: var(--red);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(176,0,44,.25);
}

.danger {
    background: #dc2626;
}

.danger:hover {
    background: #b91c1c;
}

.success {
    background: var(--green);
}

.success:hover {
    background: #15803d;
}

/* NAVIGATION */

.nav {
    background: var(--ancient-nav);
    border-bottom: 1px solid var(--ancient-border);
    overflow-x: auto;
}

.nav-inner {
    max-width: 1180px;
    margin: auto;
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    white-space: nowrap;
    font-weight: 700;
}

.nav-inner a {
    color: var(--ancient-text);
    transition: all .3s ease;
}

.nav-inner a:hover {
    color: var(--red);
    transform: translateY(-1px);
}

/* ADS */

.ad-slot{
    display:none !important;
}

/* LAYOUT */

.layout {
    max-width: 1180px;
    margin: auto;
    padding: 0 16px 30px;
    display: grid;
    grid-template-columns: 2fr 340px;
    gap: 22px;
}

.hero-card,
.section,
.sidebar-card,
.article-page,
.form-box,
.admin-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.section {
    padding: 18px;
}

.section h2,
.sidebar-card h2 {
    margin-bottom: 14px;
}

/* Heading row that acts as a link, but only actually navigates on
   phone screens. On desktop it is inert (pointer-events off) so it
   looks and behaves exactly like a plain heading — no visible arrow,
   no cursor change, no hover effect. */
.section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    pointer-events:none;
    cursor:default;
}

.section-head h2{
    margin-bottom:0;
}

.see-all-arrow{
    display:none;
    color:var(--red);
    font-size:16px;
    flex-shrink:0;
}

@media (max-width:768px){
    .section-head{
        pointer-events:auto;
        cursor:pointer;
    }

    .see-all-arrow{
        display:inline-block;
    }
}

/* NEWS GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.news-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    transition: all .3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(176,0,44,.12);
}

.news-card img {
    height: 210px;
    width: 100%;
    object-fit: cover;
}

.news-body {
    padding: 14px;
}

.badge{
    display:inline-block;
    background:var(--ancient-light);
    color:var(--red);
    border:1px solid var(--ancient-border);
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:800;
}

.news-body h3{
    font-family:'Noto Serif Kannada', serif;
    font-size:24px;
    font-weight:700;
    line-height:1.45;
    margin-bottom:12px;
    color:#1b1b1b;
}
.news-body p {
    color: var(--muted);
    line-height: 1.6;
}

.meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    padding: 16px;
    transition: all .3s ease;
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(176,0,44,.12);
}

.trend-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.trend-item a{
    font-family:'Noto Serif Kannada', serif;
    font-size:18px;
    font-weight:600;
    line-height:1.6;
    color:var(--text);
    text-decoration:none;
    transition:0.3s;
}

.trend-item a:hover {
    color: var(--red);
}

/* VIDEOS */

.desktop-videos h3{
    font-family:'Noto Serif Kannada', serif;
    font-size:18px;
    font-weight:600;
    line-height:1.5;
    margin-bottom:10px;
    color:#1b1b1b;
}

.video-box{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    height:0;
    overflow:hidden;
    border-radius:12px;
    background:#000;
}

.video-box iframe,
.video-box embed,
.video-box object,
.video-box video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}

/* Tap-to-play video facade (thumbnail + play button).
   Sits on top instead of a live iframe so touch/swipe gestures on the
   sliders keep working; the iframe is only injected on tap. */
.yt-facade{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    cursor:pointer;
}

.yt-facade img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.yt-play{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:60px;
    height:60px;
    border:0;
    border-radius:50%;
    background:rgba(176,0,44,.9);
    color:#fff;
    font-size:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.25s;
}

.yt-facade:hover .yt-play{
    background:var(--red);
    transform:translate(-50%,-50%) scale(1.08);
}

/* Article image should look and behave like a clear tap target */
.news-card a.news-thumb{
    display:block;
}

.news-card a.news-thumb img{
    display:block;
}



/* ARTICLE PAGE */

.article-page {
    max-width: 900px;
    margin: 22px auto;
    padding: 22px;
}

.article-page h1{
    font-family:'Noto Serif Kannada', serif;
    font-size:42px;
    font-weight:700;
    line-height:1.4;
    color:#1b1b1b;
    letter-spacing:-0.3px;
    margin:0 0 18px;
}
.article-page img {
    border-radius: 16px;
    margin: 18px 0;
}

.article-content{
    font-family:'Noto Serif Kannada', serif;
    font-size:20px;
    line-height:2;
    color:#222;
    text-align:justify;
    text-justify:inter-word;
    word-break:break-word;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 20px;
    color: #6b7280;
    font-size: 14px;
}

.sponsored-tag{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 14px;
    background:#b0002c;
    color:#fff;
    font-size:13px;
    font-weight:600;
    border-radius:20px;
    width:auto;
    max-width:max-content;
    white-space:nowrap;
}

.article-content iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content a {
    color: var(--red);
    font-weight: 700;
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--red-dark);
}

.article-content blockquote {
    margin: 20px auto;
}

/* FORMS AND ADMIN */

.form-box,
.admin-card {
    max-width: 1050px;
    margin: 24px auto;
    padding: 22px;
}

.admin-card{
    background:#fffdf7;
    border:1px solid var(--ancient-mid);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 8px 0;
    background: #ffffff;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(176,0,44,.12);
}

textarea {
    min-height: 190px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.notice {
    background: #ecfdf5;
    color: #166534;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* TABLE */

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.table th{
    background:#fff7ed;
    color:var(--ancient-text);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* COMMENTS */

.comments-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.comments-section h2 {
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
}

.comment-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 14px;
    border-radius: 12px;
    margin: 14px 0;
}

.comment-box strong {
    color: var(--red);
}

.comment-box p {
    margin: 8px 0;
}

.comment-box small {
    color: #6b7280;
}

/* STATUS BADGES */

.status-approved {
    background: #dcfce7;
    color: #166534;
    padding: 7px 12px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
    padding: 7px 12px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    padding: 7px 12px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

/* ADMIN NAV */

.admin-sidebar {
    width: 100%;
    background: linear-gradient(135deg, var(--ancient-light), var(--ancient-mid));
    border-bottom: 2px solid var(--ancient-border);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-radius: 0;
    margin: 0;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    margin-right: 20px;
}

.admin-brand img {
    width: 50px;
    height: 50px;
    background: #fffdf7;
    border:1px solid var(--ancient-border);
    border-radius: 12px;
    padding: 4px;
}

.admin-brand h2{
    color:var(--blue);
}

.admin-brand p{
    color:var(--red);
    font-weight:700;
}

.admin-sidebar a {
    background: var(--blue);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.admin-sidebar a:hover {
    background: var(--red);
    transform: translateY(-2px);
    box-shadow:0 8px 18px rgba(176,0,44,.22);
}

.logout-link {
    margin-left: auto;
    background: var(--red) !important;
}

.logout-link:hover {
    background: var(--red-dark) !important;
}

/* ADMIN LOGIN */

.admin-login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ancient-light), var(--ancient-mid), var(--ancient-nav));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: #fffdf7;
    border: 2px solid var(--ancient-border);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.admin-login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.admin-login-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.admin-login-logo h1 {
    font-size: 30px;
    color: var(--blue);
}

.admin-login-logo p {
    color: var(--red);
    font-weight: 700;
}

.admin-login-card label {
    font-weight: 700;
    display: block;
    margin-top: 12px;
    color: var(--ancient-text);
}

.password-wrap {
    position: relative;
    margin: 8px 0;
}

.password-wrap .input {
    margin: 0;
    padding-right: 56px;
}

.toggle-password {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 12px;
    cursor: pointer;
}

.admin-login-btn {
    background: var(--red);
    width: 100%;
    margin-top: 18px;
    font-size: 16px;
    min-height: 48px;
    padding: 13px 16px;
}

@media (max-width: 480px) {
    body {
        padding-bottom: 150px; /* footer links wrap to 2 lines on narrow screens */
    }

    .admin-login-body {
        padding: 12px;
    }

    .admin-login-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .admin-login-logo img {
        width: 70px;
        height: 70px;
    }

    .admin-login-logo h1 {
        font-size: 24px;
    }
}

/* CKEDITOR */

.ck-editor__editable {
    min-height: 500px;
}

/* MOBILE */

@media(max-width: 850px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        font-size: 28px;
    }

    .logo img,
    .site-logo {
        width: 55px;
        height: 55px;
    }

    .logo-title{
        font-size:28px;
    }

    .logo-tagline{
        font-size:10px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .article-page h1 {
        font-size: 28px;
    }

    .news-card img {
        height: 190px;
    }

    .article-video iframe,
    .article-content iframe {
        min-height: 220px;
        height: 220px;
    }

    .admin-sidebar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .admin-brand {
        justify-content: center;
        margin-right: 0;
    }

    .admin-sidebar a {
        text-align: center;
    }

    .logout-link {
        margin-left: 0;
    }
}

@media(max-width:850px){

    .topbar{
        font-size:12px;
        padding:6px 10px;
        text-align:center;
    }

    .header-inner{
        padding:6px 10px;
        gap:8px;
    }

    .logo{
        justify-content:center;
        gap:8px;
    }

    .logo img,
    .site-logo{
        width:42px;
        height:42px;
    }

    .logo-title{
        font-size:24px;
        gap:5px;
        justify-content:center;
    }

    .logo-tagline{
        font-size:9px;
        text-align:center;
    }

    .search{
        max-width:100%;
        width:100%;
    }

    .search input{
        padding:8px 10px;
        font-size:13px;
    }

    .btn{
        padding:8px 12px;
        font-size:13px;
    }

    .nav-inner{
        gap:14px;
        padding:9px 10px;
        font-size:13px;
    }

    .layout{
        padding:0 10px 25px;
        gap:15px;
    }

    .section,
    .sidebar-card,
    .article-page,
    .form-box,
    .admin-card{
        border-radius:14px;
        padding:14px;
    }

    .news-body h3{
        font-size:18px;
    }

    .article-content{
        font-size:16px;
        line-height:1.7;
    }

    .article-meta{
        gap:8px;
        font-size:12px;
    }

    .admin-sidebar{
        gap:8px;
        padding:10px;
    }

    .admin-sidebar a{
        padding:9px 12px;
        font-size:13px;
    }
}

.about-hero{
    background:linear-gradient(135deg,#f4e4bc,#d8c08c);
    padding:70px 20px;
    text-align:center;
    border-bottom:2px solid #b08d57;
}

.about-hero-content{
    max-width:900px;
    margin:auto;
}

.about-hero h1{
    font-size:48px;
    color:#0b2d5c;
    margin:18px 0;
}

.about-hero p{
    font-size:18px;
    color:#5a3e1b;
    line-height:1.7;
}

.about-wrap{
    max-width:1100px;
    margin:auto;
    padding:30px 16px;
}

.about-card{
    background:#fffdf7;
    border:1px solid #d8c08c;
    border-radius:22px;
    padding:26px;
    margin-bottom:22px;
    box-shadow:0 12px 30px rgba(176,0,44,.06);
}

.about-card h2{
    color:#b0002c;
    margin-bottom:14px;
}

.about-card p{
    line-height:1.8;
    color:#374151;
    margin-bottom:12px;
}

.about-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:22px;
}

.about-stat{
    background:#0b2d5c;
    color:#fff;
    text-align:center;
    padding:25px;
    border-radius:20px;
}

.about-stat h3{
    font-size:32px;
    color:#f4e4bc;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.service-grid div{
    background:#fff7ed;
    border:1px solid #d8c08c;
    padding:14px;
    border-radius:14px;
    font-weight:700;
    color:#5a3e1b;
}

.about-motto{
    text-align:center;
    background:#b0002c;
    color:#fff;
    padding:35px;
    border-radius:24px;
    margin-bottom:22px;
}

.about-motto h2{
    font-size:34px;
    margin-bottom:10px;
}

.contact-card{
    border-left:6px solid #b0002c;
}

@media(max-width:768px){
    .about-hero{
        padding:45px 16px;
    }

    .about-hero h1{
        font-size:32px;
    }

    .about-grid,
    .service-grid{
        grid-template-columns:1fr;
    }

    .about-card{
        padding:20px;
    }

    .about-motto h2{
        font-size:26px;
    }
}

.contact-card{
    text-align:center;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:20px;
}

.contact-item{
    background:#fff7ed;
    border:1px solid #d8c08c;
    border-radius:18px;
    padding:25px;
    transition:.3s;
}

.contact-item:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(176,0,44,.12);
}

.contact-item h3{
    color:#b0002c;
    margin-bottom:10px;
    font-size:20px;
}

.contact-item p{
    color:#374151;
    margin:0;
}

@media(max-width:768px){

    .contact-grid{
        grid-template-columns:1fr;
    }

}

.simple-about{
    max-width:900px;
    margin:25px auto;
    background:#fffdf7;
    border:1px solid #d8c08c;
    border-radius:20px;
    padding:30px;
    line-height:1.8;
}

.simple-about h1{
    color:#0b2d5c;
    margin:15px 0;
}

.simple-about h2{
    color:#b0002c;
    margin-top:25px;
    margin-bottom:10px;
}

.simple-about p{
    margin-bottom:14px;
    color:#374151;
}

.simple-about ul{
    margin-left:22px;
    margin-bottom:15px;
}

.about-motto-simple{
    text-align:center;
    background:#b0002c;
    color:white;
    padding:18px;
    border-radius:14px;
    font-size:24px;
    font-weight:700;
    margin:25px 0;
}

.simple-contact{
    background:#fff7ed;
    border:1px solid #d8c08c;
    border-radius:15px;
    padding:18px;
}

@media(max-width:768px){
    .simple-about{
        margin:15px 10px;
        padding:20px;
        border-radius:16px;
    }

    .simple-about h1{
        font-size:28px;
    }

    .about-motto-simple{
        font-size:20px;
    }
}

.article-admin-card{
    background:#fffdf7;
    border:1px solid var(--ancient-mid);
}

.admin-page-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:25px;
    padding-bottom:18px;
    border-bottom:1px solid var(--ancient-mid);
}

.admin-page-head h1{
    color:var(--blue);
    margin:10px 0 6px;
}

.admin-page-head p{
    color:var(--muted);
}

.modern-admin-form label{
    font-weight:800;
    color:var(--ancient-text);
    display:block;
    margin-bottom:4px;
}

.form-section-box{
    background:#fff7ed;
    border:1px solid var(--ancient-mid);
    border-radius:16px;
    padding:18px;
    margin:16px 0;
}

.current-image-box{
    margin:12px 0;
}

.current-image-box p{
    color:var(--muted);
    margin-bottom:8px;
}

.current-image-box img{
    max-width:240px;
    border-radius:14px;
    border:1px solid var(--ancient-border);
}

.article-options{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    background:#fff7ed;
    border:1px solid var(--ancient-mid);
    border-radius:16px;
    padding:15px;
    margin:18px 0;
}

.article-options label{
    display:flex;
    align-items:center;
    gap:8px;
}

@media(max-width:768px){
    .admin-page-head{
        flex-direction:column;
    }

    .admin-page-head .btn{
        width:100%;
        text-align:center;
    }

    .current-image-box img{
        max-width:100%;
    }
}

.publisher-card{
    display:flex;
    gap:20px;
    margin:40px 0 30px;
    padding:24px;
    background:#fffdf7;
    border:1px solid var(--ancient-mid);
    border-left:5px solid var(--red);
    border-radius:18px;
    align-items:flex-start;
    box-shadow:0 12px 30px rgba(176,0,44,.08);
}

.publisher-card img{
    width:110px;
    height:110px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid var(--ancient-light);
}

.publisher-info span{
    color:var(--red);
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
}

.publisher-info h3{
    color:var(--blue);
    margin:6px 0 4px;
    font-size:24px;
}

.publisher-info small{
    color:var(--muted);
    display:block;
    margin-bottom:10px;
    font-weight:700;
}

.publisher-info p{
    line-height:1.7;
    color:#374151;
}

@media(max-width:768px){
    /* Mobile Written By Section */

.publisher-card,
.author-box{
    display:flex;
    flex-direction:row !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    gap:15px;
    text-align:left !important;
    padding:18px;
}

.publisher-card img,
.author-box img{
    width:75px;
    height:75px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
    margin:0;
}

.publisher-info{
    flex:1;
    text-align:left !important;
}

.publisher-info h3{
    margin:0 0 6px;
    font-size:18px;
    font-weight:700;
    text-align:left;
}

.publisher-info p{
    margin:4px 0;
    font-size:14px;
    line-height:1.6;
    text-align:left;
}
}


.admin-sidebar a{
    min-height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
}

.logout-link{
    margin-left:auto;
}

/* FIX ADMIN NAVBAR ALIGNMENT */

.admin-sidebar{
    flex-wrap:nowrap !important;
    overflow-x:auto;
    overflow-y:hidden;
}

.admin-sidebar a{
    flex-shrink:0;
    white-space:nowrap;
    min-height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.admin-brand{
    flex-shrink:0;
    min-width:280px;
}

.logout-link{
    margin-left:auto !important;
    flex-shrink:0;
}

/* Add Article title */
.admin-title{
    color:var(--blue);
    font-size:32px;
    font-weight:800;
    margin-bottom:25px;
    padding-bottom:15px;
    border-bottom:2px solid var(--ancient-mid);
}

/* Mobile admin menu */
@media(max-width:850px){
    .admin-sidebar{
        flex-direction:column;
        align-items:stretch;
        overflow-x:hidden;
    }

    .admin-brand{
        min-width:100%;
        justify-content:center;
    }

    .admin-sidebar a{
        width:100%;
        text-align:center;
    }

    .logout-link{
        margin-left:0 !important;
    }
}

/* FINAL MOBILE RESPONSIVE FIX */

@media(max-width:850px){

    body{
        overflow-x:hidden;
    }

    .topbar{
        font-size:11px;
        padding:6px 8px;
        text-align:center;
        line-height:1.4;
    }

    .header{
        position:relative;
    }

    .header-inner{
        padding:6px 10px;
        flex-direction:column;
        align-items:center;
        gap:8px;
    }

    .logo{
        justify-content:center;
        gap:8px;
        width:100%;
    }

    .logo img,
    .site-logo{
        width:48px;
        height:48px;
    }

    .logo-title{
        font-size:24px;
        gap:5px;
        justify-content:center;
    }

    .logo-tagline{
        font-size:9px;
        text-align:center;
        margin-top:2px;
    }

    .search{
        width:100%;
        max-width:100%;
    }

    .search input{
        padding:9px 10px;
        font-size:13px;
    }

    .search .btn,
    .search button{
        padding:9px 12px;
        font-size:13px;
        white-space:nowrap;
    }

    .nav{
        overflow-x:auto;
    }

    .nav-inner{
        gap:14px;
        padding:9px 10px;
        font-size:13px;
        width:max-content;
        min-width:100%;
    }

    .layout{
        grid-template-columns:1fr;
        padding:0 10px 25px;
        gap:15px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .section,
    .sidebar-card,
    .article-page,
    .form-box,
    .admin-card{
        margin:14px 10px;
        padding:14px;
        border-radius:14px;
    }

    .news-card img{
    width:100%;
    max-width:100%;
    height:165px;
    object-fit:cover;
    display:block;
    border-radius:12px 12px 0 0;
}

    .news-body h3{
        font-size:18px;
    }

    .article-page h1{
        font-size:26px;
        line-height:1.25;
    }

    .article-content{
        font-size:16px;
        line-height:1.7;
    }

    .article-meta{
        gap:8px;
        font-size:12px;
        flex-direction:column;
    }

    .article-content iframe,
    .article-video iframe{
        min-height:220px;
        height:220px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .input,
    select,
    textarea{
        font-size:14px;
        padding:10px;
    }

    textarea{
        min-height:150px;
    }

    .table-wrap{
        overflow-x:auto;
    }

    .table{
        min-width:700px;
        font-size:13px;
    }

    .admin-sidebar{
        flex-direction:column !important;
        align-items:stretch !important;
        overflow-x:hidden !important;
        gap:8px;
        padding:10px;
    }

    .admin-brand{
        min-width:100% !important;
        justify-content:center;
        margin-right:0;
        text-align:left;
    }

    .admin-brand img{
        width:42px;
        height:42px;
    }

    .admin-brand h2{
        font-size:20px;
    }

    .admin-brand p{
        font-size:13px;
    }

    .admin-sidebar a{
        width:100%;
        min-height:auto;
        padding:10px 12px;
        font-size:14px;
        text-align:center;
    }

    .logout-link{
        margin-left:0 !important;
    }

    .admin-title{
        font-size:26px;
        margin-bottom:18px;
    }

    .form-section-box,
    .article-options{
        padding:14px;
        border-radius:14px;
    }

    .publisher-card{
        flex-direction:column;
        text-align:center;
        align-items:center;
        padding:18px;
    }

    .publisher-card img{
        width:90px;
        height:90px;
    }

    .publisher-info h3{
        font-size:21px;
    }

    .simple-about{
        margin:14px 10px;
        padding:18px;
        border-radius:16px;
    }

    .simple-about h1{
        font-size:26px;
    }

    .about-motto-simple{
        font-size:19px;
        padding:15px;
    }
}
.kannada-font{
    font-family:'Noto Serif Kannada', serif;
}

.article-content p{
    margin-bottom:18px;
}

.article-content ul,
.article-content ol{
    margin:18px 0 18px 28px;
}

.article-content li{
    margin-bottom:10px;
}

.article-content img{
    display:block;
    max-width:100%;
    height:auto;
    margin:20px auto;
    border-radius:12px;
}

@media(max-width:768px){
    .article-content{
    font-family:'Noto Serif Kannada', serif;
    font-size:18px;
    line-height:1.75;
    text-align:justify;
    text-justify:inter-word;
    word-spacing:-0.05em;
    letter-spacing:0;
    word-break:normal;
    overflow-wrap:break-word;
    hyphens:auto;
    margin:0;
    padding:0;
}
 .article-content p{
        margin:0 0 14px;
        text-align:justify;
    }

}

/* ==========================
   YOUTUBE VIDEO SWIPER
========================== */

.videoSwiper{
    display:none;
}

.desktop-videos{
    display:block;
}

/* ===== Compact Mobile Layout ===== */
@media (max-width:768px){

    /* Overall page */
    body{
        margin:0;
        padding:0;
    }

    .page-spacing{
        height:8px;
    }

    .layout{
        display:block;
        padding:0 10px;
        margin:10px auto;
    }

    /* Sections */
    .section{
        margin-bottom:16px;
    }

    .section h2{
        margin:0 0 12px;
        font-size:22px;
    }

    /* News cards */
    .grid{
        gap:14px;
    }

    .news-card{
        margin:0;
        border-radius:10px;
    }

    .news-body{
        padding:12px;
    }

    .news-body h3{
        margin:8px 0;
        font-size:20px;
        line-height:1.4;
    }

    .news-body p{
        margin:8px 0;
        line-height:1.6;
    }

    /* Sidebar */
    .sidebar{
        margin-top:16px;
        gap:16px;
    }

    .sidebar-card{
        padding:14px;
    }

    /* Article page */
    .article-page{
        margin:10px 0;
        padding:16px;
    }

    .article-page h1{
        margin-bottom:10px;
        font-size:28px;
        line-height:1.35;
    }

    .article-content p{
        margin:0 0 12px;
    }

    /* Written By section */
    .publisher-card{
        margin:18px 0;
        padding:14px;
    }

    /* Comments */
    .comments-section{
        margin-top:20px;
    }

    /* Footer */
    footer{
        margin-top:20px;
        padding:20px 15px;
    }
}

/* Floating Social Icons */

.social-float{
    position:fixed;
    right:20px;
    bottom:20px;
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:99999;
}

.social-float a{
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    font-size:24px;
    box-shadow:0 6px 18px rgba(0,0,0,.25);
    transition:.3s;
}

.social-float a:hover{
    transform:translateY(-4px) scale(1.08);
}

.youtube{
    background:#FF0000;
}

.facebook{
    background:#1877F2;
}

.instagram{
    background:linear-gradient(45deg,#833AB4,#FD1D1D,#FCAF45);
}

.whatsapp{
    background:#25D366;
}

@media(max-width:768px){

.social-float{
    right:12px;
    bottom:15px;
    gap:10px;
}

.social-float a{
    width:46px;
    height:46px;
    font-size:20px;
}

}


/* ===========================
   MOBILE SWIPER
=========================== */

.mobile-swiper{
    display:none;
}

@media (max-width:768px){

    .desktop-grid{
        display:none;
    }
.desktop-videos{
    display:none !important;
}

.videoSwiper{
    display:block !important;
    width:100%;
}

    .mobile-swiper{
        display:block;
    }

    .mobile-swiper .news-card{
        margin:0;
        width:100%;
    }

    .mobile-swiper img{
        width:100%;
        height:165px;
        object-fit:cover;
        border-radius:12px 12px 0 0;
    }

    .swiper{
        width:100%;
        overflow:hidden;
    }

    .swiper-slide{
        width:100%;
    }

    .swiper-pagination{
        position:relative;
        margin-top:12px;
    }

    .swiper-pagination-bullet{
        width:10px;
        height:10px;
        background:#999;
        opacity:1;
    }

    .swiper-pagination-bullet-active{
        background:#b30000;
    }

    /* Mobile YouTube */

.desktop-videos{
    display:none;
}

.videoSwiper{
    display:block;
    width:100%;
}


}
/* =====================================
   CATEGORY PAGE - 3 ARTICLES PER ROW
   ONLY CATEGORY PAGE
===================================== */

.category-page {
    max-width: 1180px;
    width: 100%;
    margin: auto;
    padding: 0 16px 30px;
    display: block;
}


.category-page .section {
    width: 100%;
}


.category-page .grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}


/* Keep cards same size */

.category-page .news-card {
    width: 100%;
}


.category-page .news-card img {
    width:100%;
    height:210px;
    object-fit:cover;
}


/* Tablet */

@media(max-width:900px){

    .category-page .grid {
        grid-template-columns: repeat(2,1fr);
    }

}


/* Mobile */

@media(max-width:600px){

    .category-page .grid {
        grid-template-columns:1fr;
    }

}


/* =====================================
   VIDEOS PAGE - 3 VIDEOS PER ROW
===================================== */

.videos-page {
    max-width:1180px;
    width:100%;
    margin:auto;
    padding:0 16px 30px;
    display:block;
}


.videos-page .section {
    width:100%;
}


.videos-page .grid {

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}


/* Video cards */

.videos-page .news-card,
.videos-page .video-card {
    width:100%;
}


/* Tablet */

@media(max-width:900px){

    .videos-page .grid {
        grid-template-columns:repeat(2,1fr);
    }

}


/* Mobile */

@media(max-width:600px){

    .videos-page .grid {
        grid-template-columns:1fr;
    }

}

/* =================================
   CATEGORY MOBILE FIX
================================= */

@media(max-width:768px){

    .category-page {
        width:100%;
        padding:0 10px 25px;
        margin:0;
        display:block;
    }


    .category-page .section {
        width:100%;
        margin:0;
        padding:14px;
    }


    .category-page .grid {
        display:grid;
        grid-template-columns:1fr;
        gap:16px;
        width:100%;
    }


    .category-page .news-card {
        width:100%;
        margin:0;
    }


    .category-page .news-card img {
        width:100%;
        height:190px;
        object-fit:cover;
    }


    .category-page .news-body {
        padding:12px;
    }


    .category-page .news-body h3 {
        font-size:20px;
        line-height:1.4;
    }

}

/* =================================
   VIDEOS MOBILE FIX
================================= */

@media(max-width:768px){

    .videos-page {
        width:100%;
        padding:0 10px 25px;
        margin:0;
        display:block;
    }


    .videos-page .section {
        width:100%;
        margin:0;
        padding:14px;
    }


    .videos-page .grid {
        display:grid;
        grid-template-columns:1fr;
        gap:16px;
        width:100%;
    }


    .videos-page .news-card,
    .videos-page .video-card {
        width:100%;
        margin:0;
    }


    .videos-page .video-box {
        width:100%;
        height:auto;
    }


    .videos-page iframe {
        width:100%;
        height:160px;
        border-radius:12px;
    }


    .videos-page h3 {
        font-size:20px;
        line-height:1.4;
    }

}

/* ===========================
   ADMIN MOBILE NAV TOGGLE
=========================== */

.admin-nav-links {
    display: contents;
}

.admin-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
    background: rgba(255,255,255,.5);
    border: 1px solid var(--ancient-border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--blue);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.admin-nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.admin-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.admin-nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 850px) {

    .admin-brand {
        width: 100%;
        justify-content: flex-start !important;
        margin-right: 0;
    }

    .admin-nav-toggle {
        display: flex;
    }

    .admin-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: 14px;
    }

    .admin-nav-links.open {
        display: flex;
    }
}
/* Site footer (added) */
.site-footer{
    padding:24px 16px;
    text-align:center;
    background:#111;
    color:#ddd;
    margin-top:20px;
    position: sticky;
    top: 100vh;
}
.site-footer .footer-inner{
    max-width:1100px;
    margin:0 auto;
}
.site-footer .footer-links{
    margin-top:0px;
    display:flex;
    gap:16px;
    justify-content:center;
    flex-wrap:wrap;
}
.site-footer .footer-links a{
    color:#ddd;
    text-decoration:none;
}
.site-footer .footer-links a:hover{
    text-decoration:underline;
}


/* Cookie consent banner (added) */
.cookie-consent{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9999;
    background:#1a1a1a;
    color:#fff;
    padding:14px 18px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:14px;
    font-size:14px;
}
.cookie-consent[hidden]{
    display:none;
}
.cookie-consent a{
    color:#9fd3ff;
}
.cookie-consent .btn{
    white-space:nowrap;
}