/* ==========================================================================
   PAKISTAN MINORITIES MOVEMENT (PMM) - CORE MASTER STYLESHEET
   Luxury Emerald Green & Royal Gold Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #020b07;
    --bg-deep: #051d12;
    --bg-card: #04140d;
    --bg-surface: #0b291b;
    --bg-surface-alt: #113825;
    
    --accent-gold: #d4af37;
    --accent-gold-light: #dfb743;
    --accent-gold-pale: #ffd863;
    --accent-gold-glow: rgba(212, 175, 55, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8e6;
    --text-muted: #b2c0bb;
    --text-faded: #8fa89b;
    
    --border-gold: rgba(212, 175, 55, 0.2);
    --border-gold-hover: rgba(212, 175, 55, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 5px 20px rgba(212, 175, 55, 0.25);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
}

.container,
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

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

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.pmm-portal-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #020b07;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.header-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
    flex-shrink: 0;
}

.header-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header-navigation {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 18px;
}

.nav-menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover, 
.has-dropdown:hover > .nav-link,
.nav-link.active {
    color: var(--accent-gold);
}

.highlight-link {
    color: var(--accent-gold-pale);
    font-weight: 700;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-secondary);
    display: inline-block;
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.has-dropdown:hover > .nav-link .arrow-down {
    border-top-color: var(--accent-gold);
    transform: rotate(180deg);
}

/* Dropdowns */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-top: 2px solid var(--accent-gold);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    list-style: none;
    padding: 12px 0;
    width: 250px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 28px;
}

/* Header Action CTA */
.header-action-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-gold {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 8px 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1.5px solid var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-header-gold:hover {
    background-color: transparent;
    color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.btn-header-outline {
    background-color: transparent;
    color: var(--accent-gold);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1.5px solid var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-header-outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

/* Hamburger & Mobile Toggle */
.menu-toggle-checkbox {
    display: none;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    cursor: pointer;
    z-index: 1003;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition);
    transform-origin: left;
}

/* ==========================================================================
   BUTTONS & COMMON UI ELEMENTS
   ========================================================================== */
.btn-gold {
    background: linear-gradient(135deg, #dfb743 0%, #b2902b 100%);
    color: var(--bg-dark);
    padding: 13px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-gold:hover {
    background: #ffffff;
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent-gold);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-gold);
    transition: var(--transition);
    display: inline-block;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.status-badge.approved {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.status-badge.rejected {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

/* Alert Boxes */
.alert-box {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.pmm-portal-footer {
    background-color: #020b07;
    color: #ffffff;
    padding: 80px 20px 25px 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-grid {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr 1fr;
    gap: 40px;
}

.footer-column h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-brand-logo {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.brand-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-faded);
    margin-bottom: 25px;
}

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

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--text-faded);
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
    display: inline-block;
}

.footer-contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-icon {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.detail-icon svg {
    width: 16px;
    height: 16px;
}

.detail-text {
    font-size: 0.92rem;
    color: var(--text-faded);
}

.detail-text a {
    color: var(--text-faded);
}

.detail-text a:hover {
    color: var(--accent-gold);
}

.footer-base-bar {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
}

.footer-base-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-base-bar p,
.copyright-text {
    font-size: 0.85rem;
    color: #657570;
    margin: 0;
}

.footer-corner-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    color: #4e625a;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.footer-admin-btn:hover {
    color: var(--accent-gold);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.08);
}

.footer-logout-btn:hover {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.08);
}

@media (max-width: 768px) {
    .footer-base-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 12px;
    }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WHATSAPP & PHONE)
   ========================================================================== */
.floating-contact-wrap {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.btn-whatsapp {
    background: #25D366;
}

.btn-phone {
    background: #03E78B;
}

.floating-btn svg {
    width: 28px;
    height: 28px;
}

.floating-tooltip {
    position: absolute;
    right: 64px;
    background: #ffffff;
    color: #222222;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateX(-5px);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
    .hamburger-btn {
        display: flex;
    }

    .header-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 310px;
        height: 100vh;
        background: var(--bg-dark);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
        padding: 85px 25px 40px 25px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1001;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-menu-list {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 12px 10px;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
        border: none;
        border-left: 2px solid var(--accent-gold);
        padding: 5px 0 5px 15px;
        margin: 5px 0;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    .header-action-block {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 14px;
        z-index: 1002;
    }

    .header-action-block .header-join-btn,
    .header-action-block .header-logout-btn {
        display: none !important;
    }

    .header-action-block .header-login-btn,
    .header-action-block .header-dashboard-btn {
        display: inline-flex !important;
        padding: 6px 13px;
        font-size: 0.78rem;
        font-weight: 700;
        gap: 5px;
        border-radius: var(--radius-sm);
    }

    .mobile-only-cta {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        width: 100%;
    }

    .mobile-only-cta .btn-header-gold,
    .mobile-only-cta .btn-header-outline {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 11px;
        font-size: 0.92rem;
    }

    .header-backdrop {
        display: none;
    }

    .menu-toggle-checkbox:checked ~ .header-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.68);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1000;
        cursor: pointer;
    }

    .menu-toggle-checkbox:checked ~ .header-navigation {
        right: 0;
    }

    .menu-toggle-checkbox:checked ~ .hamburger-btn .hamburger-line:nth-child(1) {
        transform: rotate(45deg);
        background-color: var(--accent-gold);
    }
    .menu-toggle-checkbox:checked ~ .hamburger-btn .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked ~ .hamburger-btn .hamburger-line:nth-child(3) {
        transform: rotate(-45deg);
        background-color: var(--accent-gold);
    }

    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

.mobile-only-cta {
    display: none;
}

@media (min-width: 992px) and (max-width: 1260px) {
    .header-container {
        padding: 10px 16px;
        gap: 10px;
    }
    .header-navigation {
        margin-right: 10px;
    }
    .nav-menu-list {
        gap: 10px;
    }
    .nav-link {
        font-size: 0.82rem;
        padding: 6px 0;
    }
    .header-action-block {
        gap: 8px;
    }
    .btn-header-gold,
    .btn-header-outline {
        padding: 7px 12px;
        font-size: 0.78rem;
    }
    .header-logo-img {
        height: 50px;
    }
}

.header-backdrop {
    display: none;
}

/* Responsive Shared Grid Layouts */
.contact-grid-split {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.blog-details-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 45px;
    align-items: start;
}

@media (max-width: 991px) {
    .contact-grid-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .blog-details-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .header-logo-img {
        height: 50px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-contact-wrap {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
    }
    
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   GLOBAL SUBPAGE CALL-TO-ACTION (CTA) SECTION
   ========================================================================== */
.subpage-cta-section {
    position: relative;
    padding: 100px 20px;
    background: radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.1) 0%, transparent 70%), #020b07;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    overflow: hidden;
}

.subpage-cta-section .cta-bg-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at bottom, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.subpage-cta-section .site-container,
.subpage-cta-section .cta-container-box {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.subpage-cta-section .cta-subtitle {
    display: inline-block;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.subpage-cta-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 18px auto;
    line-height: 1.25;
    text-align: center;
    max-width: 820px;
}

.subpage-cta-section p {
    color: #a4b3ac;
    max-width: 680px;
    margin: 0 auto 35px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.subpage-cta-section .cta-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    }

    .subpage-cta-section h2 {
        font-size: 2.1rem;
    }
    .subpage-cta-section p {
        font-size: 1rem;
    }

    .monuments-silhouette {
        max-height: 140px;
    }

    .monuments-content h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.3rem !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-container {
        padding: 10px 15px;
    }

    .header-logo-img {
        height: 48px;
    }

    .header-action-block {
        margin-right: 10px;
    }

    .header-action-block .header-login-btn,
    .header-action-block .header-dashboard-btn {
        padding: 5px 10px;
        font-size: 0.74rem;
    }

    .pmm-content h1 {
        font-size: 1.85rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .subpage-hero-section {
        padding: 85px 15px 55px 15px !important;
    }

    .subpage-cta-section h2 {
        font-size: 1.85rem !important;
    }

    .btn-gold,
    .btn-gold-action,
    .btn-gold-fill,
    .btn-outline-gold,
    .btn-outline-action {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }
}

/* ==========================================================================
   MOBILE APP EXPERIENCE & ALL-PAGES MASTER RESPONSIVENESS
   ========================================================================== */

/* 1. Global Viewport & Mobile Touch Smoothness */
html {
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

* {
    box-sizing: border-box;
}

button, a, input, select, textarea {
    touch-action: manipulation;
}

/* 2. Mobile Dock Disabled (Clean standard mobile navigation) */
.mobile-app-dock {
    display: none !important;
}

/* 3. Mobile Form & Inputs Optimization (Prevents iOS Safari auto-zoom) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
        min-height: 46px;
        border-radius: 8px;
    }

    .form-page-container {
        padding: 20px 14px !important;
        margin: 25px auto 60px auto !important;
    }

    .pmm-form-card {
        padding: 22px 16px !important;
        border-radius: 14px !important;
    }

    .btn-submit {
        min-height: 48px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}

/* 4. Subpages Hero & Section Header Rescaling */
@media (max-width: 768px) {
    .subpage-hero-section {
        padding: 65px 16px 40px 16px !important;
        text-align: center;
    }

    .subpage-hero-content h1,
    .hero-title,
    .pmm-content h1 {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }

    .subpage-hero-content p {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }

    .subpage-cta-section {
        padding: 60px 16px !important;
    }

    .subpage-cta-section h2 {
        font-size: 1.75rem !important;
    }

    .cta-actions {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .cta-actions a,
    .cta-actions button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* 5. Jobs Portal Mobile Polish */
@media (max-width: 768px) {
    .jobs-filter-card {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }

    .jobs-search-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .form-search-input,
    .form-select-group,
    .form-search-btn {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .jobs-list-container {
        gap: 14px !important;
    }

    .job-card {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }

    .job-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .job-apply-modal-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
}

/* 6. Media Gallery Mobile Polish */
@media (max-width: 768px) {
    .media-filter-bar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    .filter-pill {
        padding: 7px 14px !important;
        font-size: 0.8rem !important;
    }

    .video-carousel-track {
        gap: 12px !important;
        padding-bottom: 15px !important;
    }

    .video-card-slide {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
    }

    .gallery-masonry-grid {
        column-count: 2 !important;
        column-gap: 10px !important;
    }

    .gallery-masonry-item {
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .gallery-masonry-grid {
        column-count: 2 !important;
        column-gap: 8px !important;
    }
}

/* 7. Directory Cards & Lists on Mobile */
@media (max-width: 768px) {
    .cards-results-grid,
    .members-grid,
    .talent-grid,
    .sectors-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .member-dir-card,
    .talent-card,
    .sector-item-card {
        border-radius: 12px !important;
        padding: 16px !important;
    }

    .filter-inputs-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* 8. Table Responsive Wrapper */
@media (max-width: 768px) {
    .table-responsive,
    .dir-table-wrap {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
