/* =========================================================
   नगर परिषद रन्नौद वेबसाइट - Clean & Responsive Styles
   Revised from the existing styles file
   ========================================================= */

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Noto Sans Devanagari', Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #005a9c;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------- Header ---------- */
header,
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    gap: 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 170px;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.additional-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.time-display {
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1,
.header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.25;
    font-weight: 700;
}

.header img {
    height: 80px;
}

/* ---------- Announcement ---------- */
.announcement,
.breaking-news {
    background-color: #e67e22;
    color: #fff;
    font-weight: 700;
    padding: 8px 12px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

/* ---------- Navigation ---------- */
nav,
.navbar {
    background-color: #2c3e50;
}

nav ul,
nav ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
    margin: 0;
}

nav ul li a,
.navbar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 13px 18px;
    font-size: 16px;
    transition: background-color .25s ease, color .25s ease;
}

nav ul li a:hover,
.navbar a:hover {
    background-color: #e67e22;
    color: #fff;
}

nav ul.menu .submenu,
nav ul.menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #252f38;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

nav ul.menu li:hover > .submenu,
nav ul.menu li:hover > .sub-menu {
    display: block;
}

nav ul.menu .submenu li,
nav ul.menu .sub-menu li {
    width: 100%;
}

nav ul.menu .submenu li a,
nav ul.menu .sub-menu li a {
    padding: 12px 16px;
    white-space: nowrap;
}

/* ---------- Main Content ---------- */
main {
    padding: 30px 20px 50px;
    max-width: 1280px;
    margin: 0 auto;
}

.content {
    padding: 10px;
    text-align: justify;
    line-height: 1.75;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.sidebar {
    width: 20%;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-holder.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.center-text {
    text-align: center;
    margin: 8px 0;
}

.main-content {
    width: 60%;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

/* ---------- Slider ---------- */
.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.slides {
    display: flex;
    transition: transform .5s ease-in-out;
}

.slides img {
    width: 100%;
    height: auto;
    display: block;
    flex: 0 0 100%;
}

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    text-align: center;
    transition: transform .3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #e67e22;
    object-fit: cover;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
    color: #2c3e50;
}

/* ---------- About / Intro ---------- */
.about-waraseoni {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    margin-top: 25px;
}

.section-title {
    text-align: center;
    margin: 0 auto 25px;
}

.section-title h2 {
    color: #007b5e;
    font-size: clamp(26px, 3vw, 34px);
    margin: 0 0 8px;
    line-height: 1.35;
}

.section-title p {
    color: #666;
    font-size: 17px;
    margin: 0;
}

.about-intro p,
.about-details p {
    text-align: justify;
    line-height: 1.9;
    font-size: 17px;
    margin-bottom: 18px;
}

.city-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.city-box {
    background: #f7fbff;
    border-left: 5px solid #0d6efd;
    padding: 20px;
    border-radius: 10px;
    transition: .3s;
}

.city-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.city-box h3,
.about-details h3 {
    color: #005a9c;
    margin-top: 0;
    margin-bottom: 12px;
}

/* ---------- Tables ---------- */
/* Important: keeps tables from becoming tiny/unstyled */
table {
    width: min(100%, 1100px);
    margin: 25px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px 14px;
    text-align: left;
}

th {
    background: #005a9c;
    color: #fff;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f8fafc;
}

tr:hover {
    background: #eef7fb;
}

/* ---------- Council Members Table ---------- */
.council-members-section {
    padding: 60px 20px;
    background: #f7f8fa;
}

.council-members-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.council-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.07);
}

.council-table {
    width: 100%;
    min-width: 850px;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.council-table thead th {
    background: #007b5e;
    text-align: center;
    padding: 14px 12px;
}

.council-table tbody td {
    vertical-align: middle;
}

.council-table tbody td:nth-child(1),
.council-table tbody td:nth-child(2),
.council-table tbody td:nth-child(5) {
    text-align: center;
}

.council-table td a {
    color: #005a9c;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Yojana / Updates ---------- */
.updates {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    background: #fff;
}

.update-box {
    width: 23%;
    background: #fff;
    padding: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,.08);
    border-top: 4px solid #e67e22;
}

.update-box h3 {
    margin-top: 0;
}

.update-box ul,
.yojna-box ul {
    list-style: none;
    padding: 0;
}

.update-box ul li {
    margin-bottom: 8px;
}

.update-box ul li a {
    text-decoration: none;
    color: #333;
}

.update-box button {
    background-color: #e67e22;
    border: none;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
}

.update-box button a {
    color: #fff;
    text-decoration: none;
}

.yojna-box {
    width: min(100%, 900px);
    margin: 25px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,.08);
    text-align: center;
}

.yojna-box h2 {
    color: #333;
    margin-bottom: 15px;
}

.yojna-box ul li {
    margin: 10px 0;
}

.yojna-box ul li a {
    text-decoration: none;
    color: #005a9c;
    font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-container {
    max-width: 600px;
    margin: 25px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,.1);
}

.contact-container h2 {
    text-align: center;
    color: #007b5e;
}

.address {
    font-size: 18px;
    line-height: 1.8;
    margin-top: 20px;
    color: #333;
}

.icon {
    margin-right: 10px;
    color: #007b5e;
}

/* ---------- Footer ---------- */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 35px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   Directions / Guidelines page
   ========================================================= */

main > h1,
.content > h1 {
    color: #2c3e50;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 25px;
    font-weight: 700;
}

main > h2,
.content > h2 {
    color: #007b5e;
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
    margin: 15px 0 20px;
}

main > p,
.content > p {
    font-size: 17px;
    line-height: 1.8;
    margin: 12px 0;
}

main > a,
.content > a {
    display: inline-block;
    margin: 3px 0;
    color: #0645ad;
    font-weight: 600;
    line-height: 1.5;
}

/* Prevent plain document links from looking cramped */
main a,
.content a {
    transition: color .2s ease;
}

main a:hover,
.content a:hover {
    color: #e67e22;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    header {
        padding: 14px 20px;
    }

    .header-left {
        flex-basis: 130px;
    }

    nav ul li a,
    .navbar a {
        padding: 11px 12px;
        font-size: 15px;
    }

    .sidebar,
    .main-content {
        width: 100%;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .updates {
        flex-wrap: wrap;
    }

    .update-box {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    header,
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-left {
        flex-basis: auto;
    }

    .header-center h1,
    .header h1 {
        font-size: 25px;
    }

    nav ul,
    nav ul.menu,
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }

    nav ul li a,
    .navbar a {
        text-align: center;
        padding: 11px 10px;
    }

    nav ul.menu .submenu,
    nav ul.menu .sub-menu {
        position: static;
        min-width: 100%;
    }

    .about-waraseoni {
        padding: 22px;
    }

    .city-boxes {
        grid-template-columns: 1fr;
    }

    .updates {
        flex-direction: column;
    }

    .update-box {
        width: 100%;
    }

    .council-members-section {
        padding: 45px 12px;
    }

    .council-table {
        min-width: 800px;
        font-size: 14px;
    }

    main {
        padding: 22px 12px 40px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

    .logo {
        height: 60px;
    }

    .header-center h1,
    .header h1 {
        font-size: 21px;
    }

    .section-title h2 {
        font-size: 25px;
    }

    .section-title p {
        font-size: 15px;
    }

    .contact-container {
        padding: 20px;
    }
}
.inner-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 20px 60px;
}

.guideline-page-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.guideline-page-card > h1 {
    margin: 0 0 28px;
    color: #2c3e50;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.25;
    font-weight: 700;
}

.guideline-section {
    background: #fff;
    padding: 32px 35px 35px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,.07);
}

.guideline-section .section-heading {
    margin: 0 0 25px;
    text-align: left;
}

.guideline-section .section-heading h2 {
    margin: 0 0 8px;
    color: #007b5e;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.4;
}

.guideline-section .section-heading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

/* Document list */
.guideline-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guideline-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 155px;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 17px 18px;
    background: #f8fafb;
    border: 1px solid #e2e7eb;
    border-left: 4px solid #007b5e;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease,
                background-color .2s ease, border-color .2s ease;
}

.guideline-row:hover {
    background: #fff;
    border-color: #007b5e;
    box-shadow: 0 7px 18px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

.guideline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #007b5e;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.guideline-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.guideline-title strong {
    color: #174b70;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.guideline-title span {
    color: #777;
    font-size: 14px;
    line-height: 1.4;
}

.guideline-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    color: #007b5e;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.guideline-action b {
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.guideline-row:hover .guideline-action b {
    transform: translateX(4px);
}

/* Mobile */
@media (max-width: 768px) {
    .inner-page {
        padding: 28px 12px 45px;
    }

    .guideline-page-card > h1 {
        margin-bottom: 20px;
        font-size: 30px;
    }

    .guideline-section {
        padding: 23px 15px 20px;
        border-radius: 10px;
    }

    .guideline-section .section-heading h2 {
        font-size: 24px;
    }

    .guideline-section .section-heading p {
        font-size: 15px;
    }

    .guideline-row {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .guideline-number {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .guideline-title strong {
        font-size: 15px;
    }

    .guideline-title span {
        font-size: 13px;
    }

    .guideline-action {
        grid-column: 2;
        justify-content: flex-start;
        font-size: 14px;
        margin-top: -3px;
    }
}

@media (max-width: 480px) {
    .guideline-section .section-heading h2 {
        font-size: 21px;
    }

    .guideline-row {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 12px;
    }

    .guideline-number {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .guideline-title strong {
        font-size: 14px;
    }
}