/* Reset and Base Styles */
:root {
    /* JGF Company Brand Colors - Backgrounds */
    --jgf-green-primary: #28bd39;        /* For backgrounds only */
    --jgf-green-light: #5dd166;
    --jgf-green-lighter: #7de085;
    
    /* JGF Company Brand Colors - Text (WCAG AA Compliant) */
    --jgf-green-text: #1b8427;           /* 4.80:1 contrast - for links, navigation */
    --jgf-green-dark: #1b7d25;           /* 5.24:1 contrast - for headings */
    
    /* JGF Educational Platform Colors - Backgrounds */
    --jgf-teal-primary: #1bc6ad;         /* For backgrounds only */
    --jgf-teal-light: #4dd4bf;
    --jgf-teal-lighter: #7de2d0;
    
    /* JGF Educational Platform Colors - Text (WCAG AA Compliant) */
    --jgf-teal-text: #107667;            /* 5.51:1 contrast - for educational text */
    --jgf-teal-dark: #107b69;            /* 5.17:1 contrast - for educational headings */
    
    /* Neutral Colors */
    --jgf-white: #ffffff;
    --jgf-text-gray: #666666;
    --jgf-dark-text-gray: #444444;
    --jgf-charcoal: #333333;
    
    /* Light Theme Colors (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-hero: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-primary: #333333;
    --text-secondary: #444444;
    --text-tertiary: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --card-border: #f0f0f0;
    --footer-gradient: linear-gradient(135deg, #1b7d25 0%, #28bd39 100%);
    --input-bg: #ffffff;
    --input-border: #ccc;
    --placeholder-color: #5a5a5a;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    /* Dark backgrounds */
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --bg-hero: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    
    /* Dark text colors */
    --text-primary: #e8e8e8;
    --text-secondary: #d0d0d0;
    --text-tertiary: #a0a0a0;
    
    /* Dark borders and shadows */
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    /* Dark navbar */
    --navbar-bg: rgba(26, 26, 26, 0.95);
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    
    /* Dark cards */
    --card-bg: #242424;
    --card-border: rgba(255, 255, 255, 0.1);
    
    /* Dark footer - keep green but darker */
    --footer-gradient: linear-gradient(135deg, #1a5a21 0%, #1b7d25 100%);
    
    /* Dark form inputs */
    --input-bg: #2d2d2d;
    --input-border: rgba(255, 255, 255, 0.2);
    --placeholder-color: #a0a0a0;
    
    /* Adjust green colors for dark theme (lighter for better contrast) */
    --jgf-green-primary: #3cd84f;
    --jgf-green-light: #6ee87a;
    --jgf-green-text: #4de05f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent zoom on orientation change */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8; /* Increased from 1.6 for better readability */
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Improve touch interactions */
button, a, .btn {
    -webkit-tap-highlight-color: rgba(45, 110, 53, 0.2);
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.company-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b7d25;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: #1b8427;
    outline: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #28bd39;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-hero);
    padding: 100px 20px 50px; /* Reduced top padding since breadcrumb is removed */
    position: relative;
    overflow: visible;
    transition: background 0.3s ease;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #1b7d25;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #1b8427;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.125rem;  /* 18px - meets WCAG large text requirement */
}

.btn:focus {
    outline: 3px solid #7dd87d;
    outline-offset: 3px;
}

.btn-primary {
    background: var(--jgf-green-dark);    /* Use darker green for better contrast */
    color: white;
}

.btn-primary:hover {
    background: #145a1a;    /* Even darker for hover state */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 110, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--jgf-green-text);      /* Use accessible text color */
    border-color: var(--jgf-green-text);
}

.btn-secondary:hover {
    background: var(--jgf-green-text);    /* Use accessible color for backgrounds */
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--jgf-green-primary);
    color: white;
    border-color: var(--jgf-green-primary);
}

.btn-accent:hover {
    background: var(--jgf-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 189, 57, 0.4);
}

.btn-linkedin {
    background: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

/* Tech Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: #1b8427;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.floating-icon:hover {
    opacity: 1;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 3s;
}

.floating-icon:nth-child(4) {
    bottom: 15%;
    right: 20%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1b7d25;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid var(--card-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28bd39, #1b7d25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1b7d25;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1b8427;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    color: #1b7d25;
    margin-bottom: 1rem;
    text-align: center;
}

.founder-intro {
    font-size: 1.3rem;
    color: #1b8427;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.founder-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}


.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.detail-item i {
    font-size: 2.5rem;
    color: #1b8427;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(45, 110, 53, 0.1);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item h4 {
    font-size: 1.3rem;
    color: #1b7d25;
    margin-bottom: 1rem;
}

.detail-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

/* Founders Section */
.founders-section {
    margin-bottom: 3rem;
}

.founders-section h3 {
    font-size: 2rem;
    color: #1b7d25;
    margin-bottom: 2rem;
    text-align: center;
}

.founder-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--card-border);
    transition: background 0.3s ease;
}

.founder-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.founder-headshot {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-headshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.founder-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #28bd39;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1b8427;
    text-align: center;
}

.founder-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #1b8427;
}

.founder-placeholder p {
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

.founder-bio {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.founder-bio h4 {
    font-size: 1.5rem;
    color: #1b7d25;
    margin-bottom: 1rem;
    font-weight: 700;
}

.founder-bio p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.founder-contact {
    margin-top: 1.5rem;
}

.founder-contact .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Form group improvements */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    order: 2; /* Ensure input comes before help text */
    margin-bottom: 0.25rem; /* Add space between input and help text */
}

.form-group label {
    order: 1; /* Ensure label is at the top */
    margin-bottom: 0.5rem;
}

.form-help {
    order: 3; /* Ensure help text comes after the input */
    display: block; /* Make sure it's on its own line */
    margin-top: 0.25rem; /* Space between input and help text */
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.4; /* Better line height for small text */
}

/* Specific adjustment for the education signup form */
.signup-form .form-group {
    display: flex;
    flex-direction: column;
}

.signup-form .form-help {
    margin-top: 0.25rem;
}

/* Ensure all forms follow the same pattern */
.contact-form .form-help,
.signup-form .form-help {
    display: block;
    clear: both;
    margin-top: 0.25rem;
}

/* Enhanced About Section Styles */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.about-text {
    width: 100%;
}

.company-logo-section {
    width: 100%;
    text-align: center;
    position: sticky;
    top: 100px; /* Adjust based on navbar height */
}

.headshot,
.company-logo-large {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(45, 110, 53, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid #f8f9fa;
}

.company-logo-large {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Accessibility Improvements */

/* Improved base text styles for better readability */
body {
    /* ...existing code... */
    line-height: 1.8; /* Increased from 1.6 for better readability */
    color: var(--text-primary);
}

/* Increased contrast for text content */
.hero-description,
.section-subtitle,
.service-card li,
.founder-bio p,
.detail-item p,
p {
    color: var(--text-secondary);
}

/* Improved focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #28bd39;
    outline-offset: 3px;
    text-decoration: none;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    background: #28bd39;
    color: white;
    padding: 15px;
    border-radius: 0 0 5px 0;
}

.skip-to-content:focus {
    left: 0;
    width: auto;
    height: auto;
    outline: none;
}

/* Improved form accessibility */
.form-group label {
    /* ...existing code... */
    font-weight: 700; /* Make labels more prominent */
}

/* Increase contrast for form placeholders */
::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

/* Better focus indicators for form elements */
.btn:focus {
    outline: 3px solid #7dd87d;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(45, 110, 53, 0.3);
}

/* Improved contrast for footer text */
.footer-tagline,
.footer-section ul li a,
.footer-meta {
    color: #e0e0e0; /* Lighter color for better contrast on dark background */
}

/* Improved text spacing for readability */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em; /* Consistent spacing after headings */
    line-height: 1.3; /* Improved line height for headings */
}

p {
    margin-bottom: 1.2em; /* Consistent paragraph spacing */
}

/* Ensure sufficient text spacing for lists */
ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* Improved link styling for better visibility */
a {
    text-decoration: underline; /* Always underline links for better identification */
    text-underline-offset: 0.2em; /* Space between text and underline */
}

.nav-link {
    text-decoration: none; /* Exception for navigation */
}

.nav-link:hover,
.nav-link:focus {
    text-decoration: underline;
}

/* Improve readability for .form-help text */
.form-help {
    /* ...existing code... */
    color: #444444; /* Darker color for better contrast */
    line-height: 1.4; /* Better line height for small text */
}

/* Style for each feature to be in its own rounded square */
.feature {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 15px; /* Rounded corners */
    padding: 1.5rem; /* Inner spacing */
    margin-bottom: 1.5rem; /* Outer spacing between features */
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--card-border);
    transition: background 0.3s ease;
}

/* Container for the icon and heading */
.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem; /* Space between the header and the paragraph */
}

/* Style for the icon */
.feature i {
    font-size: 1.5rem;
    color: #1b8427;
}

/* Style for the heading */
.feature h4 {
    margin: 0;
    color: #1b7d25; /* Heading color */
}

/* Style for the paragraph */
.feature p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6; /* Line height for readability */
}

/* Grid layout for the features to ensure proper spacing */
.education-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem; /* Space between grid items */
}

/* Container and Layout */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
.contact header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: #1b7d25;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Contact Information Styling */
.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: background 0.3s ease;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #1b7d25;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #1b8427;
    margin-right: 1rem;
}

.contact-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1b7d25;
}

.contact-item p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
}

.contact-services {
    margin-top: 2rem;
}

.contact-services h4 {
    font-size: 1.1rem;
    color: #1b7d25;
}

.contact-services ul {
    list-style: none;
    padding: 0;
}

.contact-services li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Form Styling */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: background 0.3s ease;
}

.contact-form h3 {
    font-size: 1.5rem;
    color: #1b7d25;
    margin-bottom: 1rem;
}

.contact-form p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Form Group Styling */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1b7d25;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.125rem;  /* 18px - meets WCAG large text requirement */
    background: var(--jgf-green-dark);    /* Use darker green for better contrast */
    color: white;
}

.btn:hover {
    background: var(--jgf-green-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 110, 53, 0.4);
}

.form-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}


/* JGFMaths Signup Message Styling */
.signup-message {
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

.signup-message-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.signup-message-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.signup-message-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.message-content i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    line-height: 1.5;
}

.message-text p {
    margin: 0 0 0.5rem 0;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.message-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

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

/* Footer Section */
.footer {
    background: var(--footer-gradient);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4,
.footer-section h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #7dd87d;
    border-radius: 2px;
}

.footer-section h5 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: #7dd87d;
    text-decoration: underline;
}

.footer-section ul li a i {
    font-size: 1.1rem;
    width: 20px;
}

.footer-tagline {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo .company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact strong {
    color: #7dd87d;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: underline;
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: #7dd87d;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover,
.social-link:focus {
    background: #7dd87d;
    color: #1b7d25;
    transform: translateY(-3px);
}

.footer-quick-links {
    margin-top: 2rem;
}

.footer-quick-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.footer-quick-links a {
    padding: 0.5rem 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-quick-links a:hover {
    padding-left: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-meta span {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.footer-meta a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta a:hover,
.footer-meta a:focus {
    color: #7dd87d;
    text-decoration: underline;
}

.footer-certifications {
    margin-top: 1rem;
    text-align: center;
}

.footer-certifications p {
    color: #e0e0e0;
    font-size: 0.85rem;
    margin: 0;
}

/* Newsletter Signup in Footer */
.newsletter-signup {
    margin-top: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: #7dd87d;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: #7dd87d;
    color: #1b7d25;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #6bc76b;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .company-logo-large {
        max-width: 300px;
    }
    
    .founder-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 0.9rem;
    }

    .services-grid, .education-features {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background-color: var(--navbar-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow-color);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Mobile layout adjustments */
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .education-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-btn {
        align-self: center;
        width: fit-content;
    }

    .social-links {
        justify-content: center;
    }

    .footer-quick-links ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .education .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .education-signup {
        padding: 1.25rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Education Section */
.education {
    padding: 100px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.education-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas: 
        "text visual"
        "signup signup";
    gap: 2rem;
}

.education-text {
    grid-area: text;
}

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

.education-visual {
    grid-area: visual;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.education-signup {
    grid-area: signup;
    margin: 2rem 0 0 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 2px solid var(--card-border);
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* Ensure form inputs don't overflow */
.signup-form {
    width: 100%;
    max-width: 100%;
}

.signup-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

/* General styling for form inputs, selects, and textareas */
.signup-form .form-group,
.signup-form input,
.signup-form select,
.signup-form textarea {
    width: 100%;
    padding: 12px 15px; /* Increase padding to make the input boxes larger */
    font-size: 1rem; /* Increase font size for better readability */
    border: 1px solid var(--input-border);
    border-radius: 8px; /* Rounded corners */
    margin-bottom: 1rem; /* Space below each input */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

/* Hover and focus states for better user interaction */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1b8427; /* Change border color on hover/focus */
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px rgba(45, 110, 53, 0.2); /* Add a subtle shadow on focus */
}

/* Specific styling for textarea to ensure it's large enough */
.form-group textarea {
    min-height: 120px; /* Set a minimum height for textareas */
    resize: vertical; /* Allow vertical resizing */
}


.signup-form .form-group,
.signup-form input,
.signup-form select,
.signup-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .signup-form .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .education-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "text"
            "visual"
            "signup";
        gap: 1.5rem;
    }
    
    .signup-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .education-signup {
        padding: 1.5rem;
        margin: 1.5rem 0 0 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .education-signup h3 {
        font-size: 1.3rem;
        margin-top: 0;
    }
    
    .education-signup p {
        font-size: 0.95rem;
    }
    
    .signup-btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Prevent text overflow */
    .education-signup h3,
    .education-signup p,
    .signup-form label,
    .signup-note,
    .form-help {
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .education .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .education-signup {
        padding: 1.25rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Theme Toggle Button Styles */
.theme-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--jgf-green-primary);
    color: white;
    border-color: var(--jgf-green-primary);
    transform: rotate(20deg);
}

.theme-toggle-btn:focus {
    outline: 3px solid var(--jgf-green-light);
    outline-offset: 3px;
}

/* Mobile theme toggle */
@media (max-width: 768px) {
    .theme-controls {
        position: fixed;
        bottom: 20px;
        right: 80px;
        z-index: 1001;
    }
    
    .theme-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        background: var(--navbar-bg);
        box-shadow: 0 4px 12px var(--shadow-color);
    }
}
