/* 
 * LAJA - Legal Aid & Justice Authority - Gov PK Style
 * Theme: Traditional Government (Green, White, Gold)
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Noto+Nastaliq+Urdu&display=swap');

:root {
    --pak-green: #006039;
    --dark-green: #004529;
    --gov-gold: #c5a059;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f4f8f4;
    --border-color: #e0e0e0;
    --container-width: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= Top Bar ================= */
.top-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left,
.top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: var(--text-gray);
    margin-left: 10px;
}

/* ================= Header ================= */
.main-header {
    background: white;
    padding: 15px 0;
    border-bottom: 4px solid var(--pak-green);
    position: relative;
    z-index: 100;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

:-ms-fullscreen {
    width: 70px;
    height: 70px;
    background: var(--pak-green);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    border: 3px solid var(--gov-gold);
}
.logo-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.org-title h1 {
    color: var(--pak-green);
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.org-title span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.search-box {
    display: flex;
    border: 1px solid #ccc;
    background: white;
}

.search-box input {
    border: none;
    padding: 8px;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
}

.search-box button {
    background: var(--pak-green);
    color: white;
    border: none;
    padding: 0 12px;
    cursor: pointer;
}

/* ================= Navigation ================= */
.nav-bar {
    background-color: var(--pak-green);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    color: white;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: var(--gov-gold);
    color: var(--pak-green);
}

.mobile-nav-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
}

/* ================= News Ticker ================= */
.ticker-wrap {
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
    font-size: 0.9rem;
}

.ticker-label {
    background: var(--gov-gold);
    color: var(--text-dark);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content marquee {
    padding-top: 10px;
    /* Align text vertically */
}

/* ================= Slider ================= */
.hero-slider {
    width: 100%;
    height: 600px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position:top;
    display: none;
    /* JS will toggle */
    align-items: center;
    justify-content: center;
}

.slide.active {
    display: flex;
}

.slide-caption {
    background: rgba(0, 96, 57, 0.85);
    /* Pak Green Transparent */
    color: white;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    border-bottom: 4px solid var(--gov-gold);
}

.slide-caption h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: 1.1rem;
}

/* ================= Quick Access Cards ================= */
.quick-access {
    background-color: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.qa-card {
    background: white;
    border: 1px solid #ddd;
    border-bottom: 3px solid var(--pak-green);
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qa-card:hover {
    background: var(--pak-green);
    color: white;
    transform: translateY(-3px);
}

.qa-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--gov-gold);
}

.qa-card:hover i {
    color: white;
}

.qa-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ================= Main Content Grid (Minister + News) ================= */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 40px 0;
}

.section-box {
    margin-bottom: 30px;
}

.box-header {
    background: var(--pak-green);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-left: 5px solid var(--gov-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Minister/Authority Profile */
.profile-box {
    border: 1px solid #ddd;
    background: white;
    padding: 20px;
    text-align: center;
}

.profile-img {
    width: 120px;
    height: 140px;
    background-color: #eee;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 1px solid #ccc;
    padding: 3px;
}

.profile-name {
    color: var(--pak-green);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.profile-desig {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.btn-small {
    display: inline-block;
    background: var(--text-dark);
    color: white;
    font-size: 0.8rem;
    padding: 5px 15px;
    text-transform: uppercase;
}

/* News List */
.news-list {
    border: 1px solid #ddd;
    background: white;
}

.news-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.news-date {
    background: var(--bg-light);
    padding: 5px 10px;
    text-align: center;
    border: 1px solid #ddd;
    min-width: 60px;
}

.news-date span {
    display: block;
    font-weight: bold;
    color: var(--pak-green);
}

.news-desc h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.news-desc p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ================= Projects Section ================= */
.projects-section {
    background-color: #e9f0ea;
    padding: 40px 0;
}

.project-card {
    background: white;
    border: 1px solid #ddd;
    display: flex;
    margin-bottom: 20px;
}

.project-img {
    width: 200px;
    background: #ccc;
}

.project-info {
    padding: 20px;
    flex: 1;
}

/* ================= Statistics ================= */
.stats-bar {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-box h3 {
    font-size: 2rem;
    color: var(--gov-gold);
    margin-bottom: 5px;
}

.stat-box span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ================= Footer ================= */
footer {
    background: #222;
    color: #bbb;
    padding-top: 40px;
    font-size: 0.9rem;
    border-top: 5px solid var(--pak-green);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.col-header {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.footer-links li {
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.footer-links a:hover {
    color: var(--gov-gold);
    padding-left: 5px;
}

.copyright-bar {
    background: #111;
    text-align: center;
    padding: 15px 0;
    font-size: 0.8rem;
}

/* ================= Inner Page ================= */
.page-title-bar {
    background: var(--bg-light);
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.page-title-bar h2 {
    color: var(--pak-green);
    border-left: 5px solid var(--gov-gold);
    padding-left: 15px;
}

.content-area {
    padding: 40px 0;
    min-height: 400px;
}

/* Tables */
.gov-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.gov-table th {
    background: var(--pak-green);
    color: white;
    padding: 10px;
    text-align: left;
}

.gov-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.gov-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .mobile-nav-btn {
        display: block;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .top-bar .container {
        flexDirection: column;
        gap: 10px;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
        height: 200px;
    }
    .about-card {
    padding: 20px;
    border: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.about-card h3 {
    color: var(--pak-green);
    margin-bottom: 10px;
}

}