/* ============================================
   ARUNACHAL PRADESH ADMINISTRATIVE REFORMS COMMISSION
   Design System & Shared Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --primary-deep: #003d33;
    --primary: #004d40;
    --primary-medium: #00796b;
    --primary-light: #00bfa5;
    --primary-pale: #e0f2f1;
    --primary-bg: #f0faf8;
    --accent-gold: #c5993e;
    --text-dark: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fdfdfd;
    --bg-light: #f8fafb;
    --white: #ffffff;
    --border: #e8e8e8;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base / Reset ---------- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif; 
    background-color: var(--bg); 
    color: #444;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* ============================================
   HEADER & NAVIGATION (Shared across all pages)
   ============================================ */

.main-header {
    background-color: var(--white);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    transition: background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Homepage header: transparent over hero, solid on scroll */
.home-page .main-header {
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0);
    border-bottom-color: transparent;
    box-shadow: none;
}

.home-page .main-header .logo-text .title,
.home-page .main-header .logo-text .subtitle {
    color: var(--white);
    transition: color var(--transition);
}

.home-page .main-header .main-nav a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition), background-color var(--transition);
}

.home-page .main-header .main-nav a:hover {
    color: var(--white);
}

.home-page .main-header .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.home-page .main-header .hamburger-menu .bar {
    background-color: var(--white);
    transition: background-color var(--transition);
}

.home-page .main-header .dropbtn::after {
    color: rgba(255, 255, 255, 0.9);
}

/* Force dark text inside dropdown panel — overrides the white text from transparent header */
.home-page .main-header .dropdown-content a {
    color: var(--primary);
}

.home-page .main-header .dropdown-content a:hover {
    color: var(--primary-medium);
    background-color: #e8f5e9;
}

/* Scrolled state — solid white with glassmorphism */
.home-page .main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: #eee;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.home-page .main-header.scrolled .logo-text .title {
    color: var(--text);
}

.home-page .main-header.scrolled .logo-text .subtitle {
    color: #555;
}

.home-page .main-header.scrolled .main-nav a {
    color: var(--primary);
}

.home-page .main-header.scrolled .main-nav a:hover {
    color: var(--primary-medium);
}

.home-page .main-header.scrolled .main-nav a.active {
    background-color: #e8f5e9;
    color: var(--primary);
}

.home-page .main-header.scrolled .hamburger-menu .bar {
    background-color: var(--text);
}

.home-page .main-header.scrolled .dropbtn::after {
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 30px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    color: var(--text);
    white-space: nowrap;
}

.logo-text .subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    color: #555;
}

.emblem {
    height: 50px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 22px 14px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-medium);
    background-color: transparent;
}

.main-nav a.active {
    background-color: #e8f5e9; 
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding-right: 30px !important; 
}

.dropbtn::after {
    content: '▼';
    font-size: 0.6em;
    position: absolute;
    right: 15px;
    top: 48%;
    transform: translateY(-50%);
    transition: transform var(--transition);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: var(--radius-sm);
    overflow: hidden; 
}

.dropdown-content a {
    color: var(--primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
    font-size: 0.95em;
}

.dropdown-content a:hover {
    background-color: #e8f5e9;
    color: var(--primary-medium);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Header controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-menu {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}


/* ============================================
   HERO SECTION (Homepage only)
   ============================================ */

#hero {
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        160deg,
        rgba(0, 40, 35, 0.75) 0%,
        rgba(0, 60, 50, 0.6) 40%,
        rgba(0, 50, 42, 0.5) 70%,
        rgba(0, 30, 25, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
    /* Animation: starts hidden, revealed via JS */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85em;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.4em;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.15;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.5px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 0.8s;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    margin: 0 0 36px 0;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 1.1s;
}

.hero-cta {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 14px 40px;
    border-radius: 50px;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 1.4s;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll down indicator */
.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-decoration: none;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards 1.8s;
}

.scroll-indicator span {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.4; transform: translateX(-50%) translateY(12px); }
}


/* ============================================
   SECTION HEADERS (Homepage)
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 0 auto;
    border-radius: 2px;
}

.section-line.light {
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
}


/* ============================================
   CONTENT SECTIONS (Shared base)
   ============================================ */

.content-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 90px 30px;
}

.content-section h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: 600;
}


/* ============================================
   ABOUT SECTION (Homepage)
   ============================================ */

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    background: var(--white);
    padding: 48px 52px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    border-radius: 4px 0 0 4px;
}

.about-map-container {
    flex-shrink: 0;
}

.about-map {
    width: 420px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.about-map:hover {
    transform: scale(1.03);
}

.about-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 20px 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
    position: relative;
    padding-bottom: 18px;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-pale));
    border-radius: 2px;
}

.about-text-container {
    flex-grow: 1;
}

.about-text-container p {
    text-align: justify;
    font-size: 1.08em;
    line-height: 1.9;
    color: var(--text-light);
    margin: 0;
}


/* ============================================
   COMMISSION MEMBERS (Homepage)
   ============================================ */

.member-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    border-radius: 4px 0 0 4px;
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
    border: 4px solid transparent;
    background-image: linear-gradient(var(--white), var(--white)), linear-gradient(135deg, var(--primary), var(--primary-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    flex-shrink: 0;
}

.member-details h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 1.4em;
    font-weight: 700;
}

.designation {
    font-style: normal;
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-medium));
    display: inline-block;
    padding: 4px 18px;
    border-radius: 50px;
    margin: 0 0 16px 0;
    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bio {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95em;
}


/* ============================================
   MANDATE SECTION (Homepage)
   ============================================ */

.mandate-section {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 50%, #00695c 100%);
    max-width: 100% !important;
    padding: 90px 30px !important;
    position: relative;
    overflow: hidden;
}

.mandate-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.mandate-section .section-header h2 {
    color: var(--white);
}

.mandate-points {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.mandate-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), background var(--transition);
}

.mandate-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.16);
}

.mandate-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mandate-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
}

.mandate-card p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}


/* ============================================
   QUICK LINKS (Homepage)
   ============================================ */

#quick-links {
    background: var(--bg-light);
    max-width: 100% !important;
    padding: 90px 30px !important;
}

#quick-links .section-header h2 {
    color: var(--primary);
}

.quick-links-grid {
    display: flex;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-link-card {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-pale);
}

.quick-link-card:hover .ql-arrow {
    transform: translateX(6px);
    color: var(--primary);
}

.quick-link-card:hover .ql-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-medium));
    color: var(--white);
}

.ql-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all var(--transition);
}

.quick-link-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.quick-link-card p {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.ql-arrow {
    font-size: 1.3em;
    color: var(--text-muted);
    font-weight: 700;
    transition: all var(--transition);
}


/* ============================================
   SCROLL ANIMATIONS (Homepage)
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   NEWS STYLES (News page — shared)
   ============================================ */

.news-item {
    display: flex;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image-container {
    flex: 0 0 250px; 
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85em;
    color: #777;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.news-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: var(--text);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.news-content p {
    margin-bottom: 20px;
}


/* ============================================
   POLICY PAGE STYLES (Shared)
   ============================================ */

.policy-page p {
    text-align: justify;
    margin-bottom: 20px;
}

.policy-page h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
}

.policy-page ul {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 20px;
}

.policy-page ul li {
    margin-bottom: 12px;
    text-align: justify;
}


/* ============================================
   CONTACT & EMAIL (Shared)
   ============================================ */

.email-link {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    margin-top: 5px;
    display: inline-block;
}

.email-link a {
    color: var(--primary);
    text-decoration: none;
}

.email-link a:hover {
    text-decoration: underline;
}

.page-intro.left-align {
     text-align: left; 
     max-width: 100%;
     margin-bottom: 30px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9; 
    border-left: 4px solid var(--primary); 
    padding: 20px;
    border-radius: var(--radius-sm);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.address-lines {
    font-style: normal;
}


/* ============================================
   FORM STYLES (Shared)
   ============================================ */

.form-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #555;
}

#suggestion-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    box-sizing: border-box; 
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

.optional-text {
    font-weight: 400;
    font-size: 0.85em;
    color: #777;
}

.submit-btn {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-medium);
}


/* ============================================
   NOTICE TABLE (Shared)
   ============================================ */

.notice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
    box-shadow: var(--shadow-xs);
}

.notice-table th, .notice-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.notice-table th {
    background-color: #e8f5e9; 
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.notice-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.notice-table tr:hover {
    background-color: #f1f1f1;
}

.download-btn {
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    display: inline-block;
    text-align: center;
    min-width: 100px;
    transition: background-color var(--transition);
}

.download-btn:hover {
    background-color: var(--primary-medium);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}


/* ============================================
   THEME BUTTON & MARQUEE (Shared)
   ============================================ */

.theme-button {
    background-color: #e8f5e9;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.theme-button:hover {
    background-color: var(--primary);
    color: var(--white);
}

.important-links {
    background-color: var(--bg);
    padding: 15px 0;
    border-top: 1px solid var(--white);
}

.links-header {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content li {
    display: inline-block;
    margin: 0 30px;
}

.marquee-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

@keyframes scroll {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}


/* ============================================
   FOOTER (Shared — enhanced)
   ============================================ */

.main-footer {
    background: linear-gradient(160deg, #1a1a1a 0%, #252525 50%, #1e1e1e 100%);
    color: #bbb; 
    padding: 60px 50px 25px 50px; 
    font-size: 0.9em;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 35px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.footer-column {
    flex: 1; 
}

.footer-column.about-column {
    flex: 1.5; 
    padding-right: 20px;
}

.footer-emblem {
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    font-size: 1.05em;
    margin-top: 0;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    border-radius: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
    font-size: 0.95em;
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 6px; 
}

.footer-bottom {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding-top: 15px;
    gap: 50px; 
    flex-wrap: wrap; 
}

.copyright {
    margin: 0;
    color: #888;
    font-size: 0.9em;
}

.nic-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nic-logo {
    height: 40px;
    opacity: 0.85;
}

.nic-branding p {
    margin: 0;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: left;
    color: #999;
}


/* ============================================
   RESPONSIVE — Mobile (≤ 950px)
   ============================================ */

@media (max-width: 950px) {
    
    /* Header */
    .main-header {
        flex-direction: row; 
        justify-content: space-between;
        padding: 10px 15px;
        height: auto;
        min-height: 60px;
    }

    /* Homepage: force solid header on mobile */
    .home-page .main-header {
        background-color: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom-color: #eee !important;
        box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
    }

    .home-page .main-header .logo-text .title {
        color: var(--text) !important;
    }

    .home-page .main-header .logo-text .subtitle {
        color: #555 !important;
    }

    .home-page .main-header .hamburger-menu .bar {
        background-color: var(--text) !important;
    }

    .logo {
        margin-right: 0;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .logo-text .title {
        white-space: normal !important;
        font-size: 0.85em !important;
        line-height: 1.3;
    }

    .logo-text .subtitle {
        font-size: 0.75em !important;
    }

    .emblem {
        height: 36px;
    }

    .header-controls {
        flex-shrink: 0;
        margin-left: 10px;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        background-color: var(--white);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999; 
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: flex; 
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        flex-wrap: wrap;
        margin-left: 0; 
    }

    .main-nav ul li {
        margin-left: 0; 
    }
    
    /* Force all nav links to dark text on mobile — overrides homepage white text */
    .main-nav a,
    .home-page .main-header .main-nav a,
    .home-page .main-header.scrolled .main-nav a {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        color: var(--primary) !important;
        white-space: normal;
    }

    .main-nav a:hover,
    .home-page .main-header .main-nav a:hover {
        color: var(--primary-medium) !important;
        background-color: #f5f5f5;
    }

    .main-nav a.active,
    .home-page .main-header .main-nav a.active {
        background-color: #e8f5e9 !important;
        color: var(--primary) !important;
    }

    .main-nav .dropdown .dropdown-content {
        position: static;
        display: none; 
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 20px; 
    }
    
    .main-nav .dropdown:hover .dropdown-content {
        display: block; 
    }

    /* Dropdown links on mobile */
    .main-nav .dropdown-content a,
    .home-page .main-header .dropdown-content a {
        color: var(--primary) !important;
        padding: 12px 20px;
    }

    .main-nav .dropdown-content a:hover,
    .home-page .main-header .dropdown-content a:hover {
        background-color: #e8f5e9 !important;
    }

    .home-page .main-header .dropbtn::after {
        color: var(--primary);
    }
    
    /* Base sizing */
    .emblem { height: 40px; }
    .logo-text .title { font-size: 1em; padding-right: 0; }
    .logo-text .subtitle { font-size: 0.8em; }

    /* Hero */
    #hero {
        height: 85vh;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-cta {
        padding: 12px 30px;
        font-size: 0.85em;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    /* About */
    .about-content {
        flex-direction: column;
        align-items: center;
        padding: 30px 24px;
    }

    .about-map {
        width: 100%;
        max-width: 300px;
    }

    .about-heading {
        font-size: 1.3em;
        text-align: center;
    }

    .about-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text-container p { text-align: left; }

    /* Members */
    .member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 24px;
    }

    .member-card::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        border-radius: 4px 4px 0 0;
    }

    .profile-pic {
        margin: 0 0 20px 0;
    }

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

    /* Mandate */
    .mandate-points {
        flex-direction: column;
        align-items: center;
    }

    .mandate-card {
        max-width: 100%;
        width: 100%;
    }

    /* Quick links */
    .quick-links-grid {
        flex-direction: column;
        align-items: center;
    }

    .quick-link-card {
        max-width: 100%;
        width: 100%;
    }

    /* Content section */
    .content-section {
        padding: 60px 20px;
    }

    .mandate-section {
        padding: 60px 20px !important;
    }

    #quick-links {
        padding: 60px 20px !important;
    }

    /* Footer */
    .main-footer {
        padding: 40px 25px 20px 25px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* News & other shared */
    .news-item { flex-direction: column; }
    .news-image-container { flex-basis: auto; height: 200px; }
    .news-image-container img { height: 100%; }
    .contact-grid { flex-direction: column; }

    /* Section headers */
    .section-header h2 {
        font-size: 1.8em;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7em;
    }

    .hero-badge {
        font-size: 0.7em;
        padding: 6px 16px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 0.9em;
    }

    .member-details h3 {
        font-size: 1.2em;
    }

    .logo-text .title {
        font-size: 0.85em;
    }
}