/* Google Font import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #1b4d24;       /* Rich Engineering Green */
    --color-primary-light: #2c6e3b; /* Medium Green */
    --color-secondary: #fbc02d;     /* Deep Accent Gold/Yellow */
    --color-secondary-light: #fff59d;
    --color-accent: #0f2b14;        /* Very Dark Green */
    --color-background: #f4f7f5;    /* Light Sage Gray */
    --color-card: #ffffff;
    --color-text-main: #1c261e;     /* Charcoal with a hint of green */
    --color-text-muted: #5e6b60;
    --color-border: #e2e8e3;
    --color-danger: #d32f2f;
    --color-success: #388e3c;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(27, 77, 36, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(27, 77, 36, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(27, 77, 36, 0.15);
}

/* Base resets & layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent);
}

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

a:hover {
    color: var(--color-secondary);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav ul li a {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li.active a::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

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

.btn-secondary:hover {
    background-color: #f9a825;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Alert/Notifications */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-danger { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }
.alert-warning { background: #fffde7; color: #f57f17; border-left: 4px solid #fbc02d; }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 8rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(251, 192, 45, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(27, 77, 36, 0.08) 0%, transparent 60%),
                var(--color-card);
    overflow: hidden;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(27, 77, 36, 0.06);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(27, 77, 36, 0.1);
}

.hero-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--color-primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(251, 192, 45, 0.3);
    z-index: -1;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid #fff;
    transform: rotate(1deg);
}

.hero-stats-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.page-banner h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 77, 36, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(27, 77, 36, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* Card Grids (Trainings, Blogs) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 77, 36, 0.1);
}

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--color-accent);
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--color-secondary);
    color: var(--color-accent);
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.card-badge.free {
    background: var(--color-primary);
    color: #fff;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(27, 77, 36, 0.02);
}

.card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding-top: 75%; /* 4:3 Ratio */
    border: 4px solid #fff;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15, 43, 20, 0.9));
    color: #fff;
    padding: 1.5rem 1rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Forms */
.form-container {
    background-color: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 3rem;
    max-width: 550px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fafbfa;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 77, 36, 0.1);
    background-color: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Detail page layout */
.details-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 3rem;
}

.details-main {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.details-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-primary-light);
}

.details-banner-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.details-meta-bar {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    margin: 1.5rem 0;
}

.meta-box h5 {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.meta-box p {
    font-weight: 600;
    font-size: 1rem;
}

/* Dashboard Core Layout */
body.portal-body {
    height: 100vh !important;
    overflow: hidden !important;
    padding-top: 60px !important;
    margin: 0 !important;
}

.portal-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    background: var(--color-accent);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-toast-container {
    position: fixed;
    top: 75px;
    right: 20px;
    z-index: 9999;
    width: 350px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.sidebar {
    background: var(--color-accent);
    color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    overflow-y: auto;
}

.sidebar h3 {
    color: var(--color-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li.active a {
    border-left: 4px solid var(--color-secondary);
}

.dashboard-content {
    padding: 3rem;
    height: 100%;
    overflow-y: auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dash-stat-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dash-stat-card h4 {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.dash-stat-card .val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* Tables */
.table-wrapper {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-top: 1.5rem;
}

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

th {
    background-color: rgba(27, 77, 36, 0.04);
    color: var(--color-accent);
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(27, 77, 36, 0.01);
}

/* Certificate Area Styling */
.cert-container {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
    background: #4a544d;
}

#certificate-area {
    width: 850px;
    height: 600px;
    background-color: #fff;
    border: 20px solid var(--color-primary);
    padding: 3rem;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    background-image: 
        radial-gradient(var(--color-secondary-light) 1px, transparent 0),
        radial-gradient(var(--color-secondary-light) 1px, transparent 0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.cert-border-inner {
    border: 4px double var(--color-secondary);
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.cert-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cert-logo-icon {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 800;
    font-family: var(--font-heading);
}

.cert-logo-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

.cert-title {
    font-size: 2.75rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-primary);
    margin-top: 1rem;
    letter-spacing: 1px;
}

.cert-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.cert-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 0.5rem;
    min-width: 300px;
    margin: 1rem 0;
}

.cert-reason {
    font-size: 0.95rem;
    max-width: 550px;
    color: var(--color-text-main);
}

.cert-course {
    font-weight: 700;
    color: var(--color-primary);
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-end;
    margin-top: 2rem;
}

.cert-sign-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
}

.cert-signature {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.cert-sign-line {
    border-top: 1px solid var(--color-text-muted);
    width: 100%;
    margin-bottom: 0.25rem;
}

.cert-sign-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-main);
}

.cert-sign-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.cert-stamp {
    width: 90px;
    height: 90px;
    border: 4px double var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-secondary);
    text-transform: uppercase;
    transform: rotate(-10deg);
    background-color: rgba(251, 192, 45, 0.05);
}

/* Footer Section */
footer {
    background-color: var(--color-accent);
    color: #fff;
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}

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

.footer-col h4 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Print Styling */
@media print {
    body {
        background-color: #fff;
    }
    header, footer, .btn, .no-print {
        display: none !important;
    }
    .cert-container {
        padding: 0;
        background: #fff;
    }
    #certificate-area {
        box-shadow: none;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-width: 15px;
        -webkit-print-color-adjust: exact; /* Preserve colors */
        print-color-adjust: exact;
    }
}

/* Responsive queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .details-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .sidebar {
        padding: 1.5rem;
        flex-direction: row;
        overflow-x: auto;
        height: auto;
        overflow-y: visible;
    }
    .sidebar-menu {
        flex-direction: row;
    }
    .dashboard-content {
        height: auto;
        overflow-y: visible;
        padding: 1.5rem;
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .form-container {
        padding: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================
   Phase 2: Hero Slider, Testimonials & FAQs
   ========================================== */

/* Hero Slider */
.slider-container {
    position: relative;
    width: 100%;
    min-height: 620px;
    overflow: hidden;
    background-color: var(--color-card);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(27, 77, 36, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.25rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.slider-arrow-prev {
    left: 2rem;
}

.slider-arrow-next {
    right: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    background: radial-gradient(circle at 10% 20%, rgba(27, 77, 36, 0.03) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(251, 192, 45, 0.03) 0%, transparent 60%),
                var(--color-background);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--color-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 77, 36, 0.1);
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: rgba(27, 77, 36, 0.05);
    font-family: serif;
    line-height: 1;
}

.testimonial-rating {
    color: var(--color-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.testimonial-details h4 {
    font-size: 0.95rem;
    color: var(--color-accent);
    margin-bottom: 0.15rem;
}

.testimonial-details span {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* FAQ Accordion */
.faq-section {
    background-color: var(--color-card);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: #fafbfa;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: rgba(27, 77, 36, 0.2);
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-accent);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Slide Responsive Overrides */
@media (max-width: 992px) {
    .slider-container {
        min-height: 800px;
    }
    .hero-slide {
        display: block;
        padding-top: 3rem;
    }
    .slider-arrow {
        top: auto;
        bottom: 1.5rem;
        transform: none;
    }
    .slider-arrow-prev {
        left: calc(50% - 70px);
    }
    .slider-arrow-next {
        right: calc(50% - 70px);
    }
    .slider-controls {
        bottom: 2.25rem;
    }
}

/* Background image overrides for hero slides */
.slider-hero-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.slider-glass-card {
    max-width: 620px;
    padding: 3rem;
    background: rgba(15, 43, 20, 0.75); /* Rich Dark Green translucent overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.8s ease-out;
}

.slider-glass-card h1.hero-title {
    color: #ffffff !important;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slider-glass-card h1.hero-title span {
    color: var(--color-secondary) !important;
}

.slider-glass-card h1.hero-title span::after {
    background-color: rgba(251, 192, 45, 0.2);
}

.slider-glass-card p.hero-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
    .slider-glass-card {
        padding: 2rem 1.5rem;
    }
    .slider-glass-card h1.hero-title {
        font-size: 2.2rem;
    }
}

/* Authentication Page Wrapper Styles */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 43, 20, 0.88) 0%, rgba(27, 77, 36, 0.75) 100%),
                url('../images/auth-bg.png') no-repeat center center;
    background-size: cover;
    padding: 2rem 0;
}

.auth-back-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: var(--transition);
    text-decoration: none;
}

.auth-back-link:hover {
    color: var(--color-secondary) !important;
    padding-left: 5px;
}

.auth-logo-link {
    display: inline-block;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.auth-logo-link:hover {
    transform: scale(1.03);
}

.auth-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    background: #fff;
    padding: 4px;
}



