/* ==========================================================================
   Kushal Industries Association (KIA) - Master Stylesheet (Abhimo-Inspired)
   ========================================================================== */

/* 1. Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* 2. Custom Properties (Design Tokens - Abhimo Blue Theme) */
:root {
    /* Color Palette */
    --primary: #0077ff;        /* Royal Blue */
    --primary-light: #005eff;  /* Vibrant Blue */
    --accent: linear-gradient(135deg, #0099ff 0%, #005eff 100%); /* Cyan-Blue Gradient */
    --accent-color: #0099ff;
    --text-dark: #0f1e2d;      /* Deep Charcoal Slate */
    --text-muted: #475569;     /* Cool Gray */
    --bg-light: linear-gradient(135deg, #f5fbff 0%, #eaf6ff 100%); /* Soft Blue Canvas */
    --bg-white: #ffffff;
    --border-color: rgba(15, 30, 45, 0.12);
    --success: #10b981;
    --error: #ef4444;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(0, 80, 200, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 80, 200, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 80, 200, 0.08);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 120px;
    --navbar-height: 80px;
}

/* 3. Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-muted);
    background: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Blur Background Blobs */
.blur-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(0, 119, 255, 0.06);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.blob-1 { top: 10%; right: -100px; }
.blob-2 { top: 50%; left: -200px; background: rgba(0, 153, 255, 0.04); }
.blob-3 { bottom: 10%; right: -50px; }

/* 4. Common Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 7rem 0;
    position: relative;
}

.section-bg-white {
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* 5. Buttons (Pill Design) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-white);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.2);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* 6. Navigation Header & Top Utility Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.6rem 0;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 1.5rem;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-contact a:hover {
    color: var(--bg-white);
}

.top-bar-socials {
    display: flex;
    gap: 1.25rem;
}

.top-bar-socials a:hover {
    color: var(--bg-white);
    transform: scale(1.1);
}

/* Main Navbar */
.navbar-wrapper {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    height: var(--navbar-height);
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.85;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

.nav-link.active {
    color: var(--primary) !important;
    opacity: 1;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Header Scroll Class Shift */
header.scrolled {
    transform: translateY(-38px); /* Shift top bar out of view */
}

header.scrolled .navbar-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 80, 200, 0.04);
}

/* 7. Hero Sections (Modern Split Layout) */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 7rem;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background-color: rgba(0, 119, 255, 0.08);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero h1 span {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

.hero-visual {
    position: relative;
}

.hero-visual-box {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    transform: rotate(2deg);
    transition: var(--transition-smooth);
}

.hero-visual-box img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-visual:hover .hero-visual-box {
    transform: rotate(0deg) scale(1.02);
}

/* Inner Page Hero (Subpages Banner) */
.page-banner {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-banner h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.breadcrumb {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

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

.breadcrumb span {
    color: var(--primary);
    font-weight: 600;
}

/* 8. Home Intro / Welcome Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.intro-text h3 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.intro-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.intro-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--bg-white);
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.badge-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

.badge-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.intro-visual {
    position: relative;
}

.visual-box {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--bg-white);
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.visual-box img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.intro-visual:hover .visual-box {
    transform: rotate(0deg) scale(1.02);
}

/* 9. Core Objectives / Aims Grid (Glassmorphism) */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.objective-card {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: rgba(0, 119, 255, 0.3);
}

.objective-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 119, 255, 0.08);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.objective-card:hover .objective-icon {
    background: var(--accent);
    color: var(--bg-white);
    transform: scale(1.05);
}

.objective-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.objective-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 10. Vision & Mission Quote Blocks (Soft Panels) */
.vision-mission-section {
    background: var(--bg-light);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.quote-block {
    background-color: var(--bg-white);
    padding: 3.5rem;
    border-radius: 28px;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.quote-block i.quote-icon {
    font-size: 3rem;
    color: rgba(0, 119, 255, 0.08);
    position: absolute;
    top: 25px;
    right: 35px;
}

.quote-block h3 {
    font-size: 1.65rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.quote-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
}

/* 11. Stats Counter Strip */
.stats-strip {
    background: var(--accent);
    color: var(--bg-white);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--bg-white);
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

.stat-item p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* 12. Membership Page Components */
.membership-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Premium Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table th, 
.pricing-table td {
    padding: 1.5rem 2rem;
}

.pricing-table th {
    background-color: var(--primary);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
}

.pricing-table tr {
    border-bottom: 1px solid var(--border-color);
}

.pricing-table tr:last-child {
    border-bottom: none;
}

.pricing-table tr:hover td {
    background-color: rgba(0, 119, 255, 0.02);
}

.pricing-table td.membership-type {
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-table td.price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.15rem;
}

/* Document List Card */
.doc-requirements-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
}

.doc-requirements-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    color: var(--text-dark);
}

.doc-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.doc-list li:last-child {
    margin-bottom: 0;
}

.doc-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.doc-list li span {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Printable Fee Summary Card */
.fee-summary-card {
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.fee-summary-card h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.fee-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.fee-summary-row:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.fee-summary-row span.label {
    color: var(--text-muted);
}

.fee-summary-row span.val {
    font-weight: 700;
    color: var(--primary);
}

.print-btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg-white);
    border: none;
    border-radius: 50px;
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.2);
    transition: var(--transition-fast);
}

.print-btn:hover {
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.35);
    transform: translateY(-2px);
}

/* 13. Office Bearers Section */
.bearers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.bearer-card {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.bearer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: rgba(0, 119, 255, 0.3);
}

.bearer-avatar {
    width: 100px;
    height: 100px;
    background-color: rgba(0, 119, 255, 0.05);
    border: 3px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem auto;
    transition: var(--transition-smooth);
    overflow: hidden;
    padding: 0;
}

.bearer-card:hover .bearer-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 119, 255, 0.2);
}

.bearer-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.bearer-card p {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Members Grid containing actual logo images */
.members-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.member-placeholder-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    height: 110px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.member-placeholder-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.85);
    transition: var(--transition-fast);
}

.member-placeholder-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 119, 255, 0.3);
}

.member-placeholder-card:hover img {
    filter: grayscale(0) opacity(1);
}

/* 14. Contact Page Components */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info-list {
    margin-bottom: 3.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 119, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-details h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-info-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 320px;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form (Borderless input fields) */
.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
    font-size: 1.65rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Pill inputs */
    background-color: #f1f5f9;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
}

textarea.form-control {
    border-radius: 20px;
    resize: vertical;
    min-height: 130px;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.form-alert.success {
    display: flex;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.form-alert.error {
    display: flex;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.contact-form-wrapper button[type="submit"] {
    width: 100%;
    border: none;
}

/* 15. Premium Footer */
footer {
    background-color: #0c1520;
    color: #94a3b8;
    padding: 6rem 0 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-about .footer-logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.footer-about .footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bg-white);
    letter-spacing: -0.75px;
}

.footer-about .footer-logo-text span {
    color: var(--primary);
}

.footer-about p {
    line-height: 1.8;
}

.footer-header {
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    font-weight: 500;
}

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

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.footer-contact li span {
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: #475569;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* 16. Scroll Entrance Animation Styles */
.reveal {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 17. Responsive Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-grid {
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .intro-grid, 
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --navbar-height: 80px;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }

    .top-bar {
        display: none; /* Hide social utility bar on mobile screens */
    }

    header.scrolled {
        transform: none; /* Reset top bar hiding */
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1100;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        padding: 3rem;
        gap: 1.5rem;
        box-shadow: -10px 0 30px rgba(0, 80, 200, 0.1);
        transition: right var(--transition-smooth);
        z-index: 1050;
        backdrop-filter: blur(15px);
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        color: var(--text-dark);
        font-size: 1.25rem;
        display: block;
        padding: 0.75rem 0;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    /* Grids to single columns */
    .hero-grid,
    .intro-grid,
    .vision-mission-grid,
    .membership-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid > div {
        text-align: left;
    }

    .hero-visual-box img {
        height: 320px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-strip {
        padding: 4rem 0;
    }
    
    .visual-box img {
        height: 320px;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 3rem);
        padding-bottom: 5rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2.5rem;
    }

    .bearers-grid,
    .objectives-grid {
        gap: 1.5rem;
    }

    .contact-map-container {
        height: 250px;
    }
}

/* Extra Tweaks for Tablet and Mid-sized Screens */
@media (max-width: 600px) {
    .pricing-table th, 
    .pricing-table td {
        padding: 1.25rem 1rem;
        font-size: 0.85rem;
    }

    .intro-badges {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .badge-item {
        width: 100%;
        justify-content: center;
    }

    .quote-block {
        padding: 2.5rem 1.75rem;
    }

    .quote-block h3 {
        font-size: 1.4rem;
    }

    .quote-block p {
        font-size: 1.05rem;
    }

    .doc-requirements-card {
        padding: 2rem 1.5rem;
    }

    .fee-summary-card {
        padding: 2rem 1.5rem;
    }
}

/* Optimization for small smartphones (iPhone SE, etc.) */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.85rem;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .hero h1 {
        font-size: 2.15rem;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.25rem;
    }

    .contact-info-item {
        gap: 1rem;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-grid {
        gap: 2.5rem;
    }

    footer {
        padding: 4rem 0 2rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}

/* Adjustments for micro-screens */
@media (max-width: 360px) {
    .logo-text {
        font-size: 1.35rem;
    }
    .logo-icon {
        font-size: 1.4rem;
    }
    .mobile-menu-toggle {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   KIA Website Enhancements Styles
   ========================================================================== */

/* 1. Floating Back-to-Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.25);
    z-index: 999;
    border: none;
    outline: none;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.45);
    background-color: var(--primary-light);
}

/* 2. Infinite Sliding Logo Marquee */
.logo-marquee {
    overflow: hidden;
    padding: 1.5rem 0;
    width: 100%;
    position: relative;
    margin-top: 3rem;
}

/* Gradient fade overlays for edges */
.logo-marquee::before,
.logo-marquee::after {
    content: '';
    height: 100%;
    width: 150px;
    position: absolute;
    top: 0;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-track {
    display: flex;
    width: calc(240px * 12 + 2rem * 12);
    gap: 2rem;
    animation: marquee-scroll 25s linear infinite;
}

.logo-marquee-track:hover {
    animation-play-state: paused;
}

.logo-marquee .member-placeholder-card {
    flex-shrink: 0;
    width: 240px;
    height: 110px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-240px * 6 - 2rem * 6));
    }
}

/* 3. Form Button Submitting Loading state */
.btn-primary.submitting {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-primary.submitting::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-white);
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 17. Print Media Queries */
.print-only-header,
.print-only-footer {
    display: none;
}

@media print {
    /* Hide layout components completely */
    header,
    footer,
    .page-banner,
    .blur-blob,
    .print-btn,
    .membership-grid > div:first-child,
    section:not(.membership-section) {
        display: none !important;
    }
    
    /* Make membership section expand to full page size */
    .membership-section,
    .membership-section .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        background: #ffffff !important;
    }
    
    .membership-grid {
        display: block !important;
    }

    /* Professional printable invoice summary format for the card */
    .fee-summary-card {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        padding: 2.5rem !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #0f1e2d !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 650px !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Display header/footer blocks on print */
    .print-only-header,
    .print-only-footer {
        display: block !important;
    }

    .print-only-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .print-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 1.75rem;
        color: #0077ff !important;
        margin-bottom: 0.5rem;
    }

    .print-logo i {
        color: #0077ff !important;
    }

    .print-only-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
        font-weight: 800;
        color: #0f1e2d !important;
    }

    .print-subtitle {
        font-size: 0.9rem;
        color: #475569 !important;
        margin-bottom: 0.25rem;
    }

    .print-meta {
        font-size: 0.85rem;
        color: #64748b !important;
    }

    .print-divider {
        border: 0;
        border-top: 1px solid #cbd5e1;
        margin: 1.5rem 0;
    }

    .fee-summary-card h3 {
        text-align: center;
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
        color: #0f1e2d !important;
    }

    .fee-summary-row {
        border-bottom: 1px dashed #cbd5e1 !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .fee-summary-row .label {
        font-weight: 500;
        color: #475569 !important;
    }

    .fee-summary-row .val {
        font-weight: 700;
        color: #0077ff !important;
    }

    .fee-instructions {
        font-size: 0.85rem !important;
        color: #334155 !important;
        margin: 1.5rem 0 !important;
        line-height: 1.6 !important;
        background-color: #f8fafc !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
    }

    .print-only-footer {
        font-size: 0.8rem;
        text-align: center;
        color: #475569 !important;
        margin-top: 2rem;
    }

    .print-only-footer p {
        margin-bottom: 0.25rem;
    }

    .print-date {
        font-size: 0.75rem;
        color: #94a3b8 !important;
        margin-top: 1rem;
    }
}

