/* ============================================================
   DUCOA – FLAT CLEAN ACADEMIC STYLES (FIXED)
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
    --primary-color: #5B2C6F;
    --secondary-color: #8B0000;
    --accent-color: #D4AF37;
    --light-grey: #F8F8F8;
    --dark-grey: #333333;
    --border-color: #e0e0e0;
    --white: #ffffff;
}

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

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-grey);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.topbar a {
    margin-left: 10px;
    color: #000;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    background: var(--primary-color);
    color: var(--white);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 70px;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
}

.logo-text p {
    font-size: 13px;
}

/* Navigation */
.nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

.nav a {
    color: var(--white);
    font-size: 14px;
    padding-bottom: 4px;
}

.nav a:hover,
.nav a.active {
    border-bottom: 2px solid var(--accent-color);
}

/* ============================================================
   SECTIONS (CONTENT ONLY)
   ============================================================ */
section {
    padding: 3rem 0;
}

section.light {
    background: var(--light-grey);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    border: none;
}

.btn:hover {
    background: var(--secondary-color);
}

/* ============================================================
   FLAT CARDS
   ============================================================ */
.highlight-card,
.member-card,
.blog-card,
.contact-form,
.contact-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
}

/* ============================================================
   GRIDS
   ============================================================ */
.highlights,
.members-grid,
.blog-grid {
    display: grid;
    gap: 20px;
}

.highlights {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.members-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ============================================================
   FORMS
   ============================================================ */
input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Noto Sans', sans-serif;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 0;
}

.footer a {
    color: var(--white);
}

/* ============================================================
   GOV SLIDER (ISOLATED – NO CONFLICT)
   ============================================================ */
.gov-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.gov-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.gov-slide {
    min-width: 100%;
    height: 100%;
}

.gov-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* arrows */
.gov-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 99;
}

.gov-arrow.left { left: 10px; }
.gov-arrow.right { right: 10px; }

/* spacing after slider */
.gov-slider + section {
    padding-top: 3rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

    .nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gov-slider {
        height: 300px;
    }
}

/* ============================================================
   HOME PAGE – EXTRA STYLES (INDEX.PHP SUPPORT)
   ============================================================ */

/* Section Headings */
section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* About / Welcome section layout */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-content p {
    margin-bottom: 14px;
    color: #444;
}

/* What we do icons */
.highlight-card i {
    font-size: 34px;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
}

/* Quick link tiles */
.highlight-card.text-center {
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.highlight-card.text-center:hover {
    background: var(--light-grey);
    border-color: var(--primary-color);
}

/* Members section */
.member-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.member-card p {
    font-size: 13px;
    color: #555;
}

/* Blog / notifications */
.blog-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.blog-card p {
    font-size: 13px;
    color: #555;
}

/* Spacing fixes */
.highlights,
.members-grid,
.blog-grid {
    margin-top: 24px;
}

/* ============================================================
   HOME RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 768px) {

    .about-section {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 18px;
    }
}

/* ============================================================
   FOOTER – DU / GOVERNMENT STYLE
   ============================================================ */

.footer {
    background: var(--primary-color);
    color: var(--white);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.footer-col {
    font-size: 13px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.footer-brand i {
    margin-right: 6px;
}

.footer-text {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* BOTTOM STRIP */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 14px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-grid {
        padding: 30px 0;
    }

    .footer-brand {
        font-size: 16px;
    }
}

/* ============================================================
   ABOUT PAGE – CLEAN GOVERNMENT STYLE
   ============================================================ */

/* Breadcrumb */
.page-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 1.5rem;
}

.page-breadcrumb a {
    color: var(--primary-color);
}

/* About layout */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* About heading */
.about-layout h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About text */
.about-layout p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

/* About image */
.about-image-box {
    text-align: center;
}

.about-image-box img {
    max-width: 100%;
    height: auto;
}

/* Vision & mission */
.about-section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.about-section-title h2 {
    color: var(--primary-color);
}

/* Objectives cards reuse highlight-card */
.highlight-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.highlight-card p {
    font-size: 14px;
    color: #555;
}

/* ============================================================
   RESPONSIVE – ABOUT PAGE
   ============================================================ */
@media (max-width: 768px) {

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-layout h1 {
        font-size: 26px;
    }
}


/* ============================================================
   MEMBERS – SQUARE TOP PHOTO CARDS (NIC STYLE)
   ============================================================ */

.members-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Square card */
.member-nic-card.square {
    background: #fff;
    border-radius: 10px;
    border-top: 4px solid #8a6fe8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
}

/* Top photo */
.member-photo-top {
    padding: 1.5rem 0 0.5rem;
}

.member-photo-top img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

/* Info */
.member-info {
    padding: 1rem 1.25rem 1.5rem;
}

.member-info h3 {
    font-size: 17px;
    color: #4a2ca3;
    margin-bottom: 0.25rem;
}

.member-state {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.member-info p {
    font-size: 14px;
    color: #444;
    margin-bottom: 0.35rem;
}

.member-info i {
    margin-right: 6px;
    color: #555;
}

/* Mobile */
@media (max-width: 768px) {
    .members-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}


/* ============================================================
   CONTACT PAGE – NIC / GOV STYLE
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Contact cards */
.contact-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 1.8rem;
}

/* Card title */
.contact-card-title {
    font-size: 20px;
    margin-bottom: 1.2rem;
    color: #000;
}

/* Contact item */
.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 1.2rem;
    font-size: 15px;
    color: #333;
}

.contact-item i {
    font-size: 20px;
    color: #1e88e5;
    margin-top: 2px;
}

/* Note */
.contact-note {
    font-size: 14px;
    color: #555;
    margin-top: 1rem;
}

/* Footer link */
.contact-footer-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    color: #1e88e5;
}

/* Map */
.map-box iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-box iframe {
        height: 300px;
    }
}


/*marqeeeeeeeee */

/* ===== OLD MARQUEE (agar use ho rahi ho) ===== */
.notice-marquee {
    width: 100%;
    height: 26px;
    overflow: hidden;
    background: #0b2c4d;
    margin: 0;
    padding: 0;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    line-height: 26px;
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== NEW DU MARQUEE (FINAL) ===== */
.du-marquee {
    width: 100%;
    height: 34px;                 /* patli patti */
    overflow: hidden;
    background: #d4af37;
    position: relative;
    margin: 0;
    padding: 0;
}

.du-marquee-inner {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    white-space: nowrap;
    display: inline-block;
    font-size: 13px;
    color: #652b7c;
    text-transform: uppercase;
    animation: duScroll 15s linear infinite;
}

.du-marquee-inner span {
    margin-right: 60px;
    text-transform: uppercase;
}

/* animation */
@keyframes duScroll {
    0%   { transform: translate(0, -50%); }
    100% { transform: translate(-200%, -50%); }
}

/* FORCE CLEAN (theme kuch bhi kare) */
.du-marquee *,
.notice-marquee * {
    margin: 0 !important;
    padding: 0 !important;
}
