/* Root Colors */
:root {
    --primary-green: #12a352;
    --primary-blue: #215387;
    --cream: #e6e1c5;
    --dark: #1a281f;
    --light-gray: #f8f9fa;
}

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

body {
    font-family: 'Lora', serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #222;
}

/* Navigation */
.navbar {
    background-color: var(--cream) !important;
    border-bottom: 3px solid var(--primary-green);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    border-bottom: 2px solid var(--primary-green);
}

/* Dropdown menu styling */
.dropdown-menu {
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--cream);
    color: var(--primary-green);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-green) !important;
    color: white !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: heroGradient 15s ease infinite;
    background-size: 200% 200%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    animation: slideInDown 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    animation: slideInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    background-color: white;
    color: var(--primary-green);
    border: 2px solid white;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.hero-btn:hover {
    background-color: #f8f9fa;
    color: #0e8a40;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--cream);
    border-bottom: 3px solid var(--primary-green);
    color: #333;
    font-weight: 600;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    padding: 10px 24px;
    text-decoration: none !important;
}

.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    background-color: #0e8a40;
    border-color: #0e8a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 163, 82, 0.3);
    color: white !important;
    text-decoration: none !important;
}

.btn-primary:active,
.btn-primary:focus {
    background-color: #0a6a30 !important;
    border-color: #0a6a30 !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-green) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.btn-secondary:hover {
    background-color: white;
    border-color: white;
    color: #0e8a40 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.btn-secondary:active,
.btn-secondary:focus {
    background-color: #f0f0f0 !important;
    border-color: #f0f0f0 !important;
    color: #0a6a30 !important;
    text-decoration: none !important;
}

/* Outline Primary (Green) */
.btn-outline-primary {
    color: var(--primary-green) !important;
    border: 2px solid var(--primary-green);
    text-decoration: none !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 163, 82, 0.3);
    text-decoration: none !important;
}

.btn-outline-primary:focus {
    color: var(--primary-green) !important;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(18, 163, 82, 0.25);
    text-decoration: none !important;
}

.btn-outline-primary:active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white !important;
    text-decoration: none !important;
}

/* Outline Light */
.btn-outline-light {
    color: white !important;
    border: 2px solid white;
    text-decoration: none !important;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    color: white !important;
    text-decoration: none !important;
}

.btn-outline-light:focus {
    color: white !important;
    border-color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    text-decoration: none !important;
}

/* Light Button */
.btn-light {
    background-color: white;
    border-color: white;
    color: var(--primary-green) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #0e8a40 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.btn-light:active,
.btn-light:focus {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #0a6a30 !important;
    text-decoration: none !important;
}

/* Sections */
.section {
    padding: 60px 20px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-green);
    font-weight: 700;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Statistics */
.stat-box {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background-color: var(--cream);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

/* Features/Benefits */
.feature-box {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.feature-box h5 {
    margin-bottom: 15px;
    color: #222;
}

.feature-box p {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Events */
.event-card {
    border-left: 5px solid var(--primary-green);
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 8px 20px rgba(18, 163, 82, 0.2);
}

.event-date {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.event-location {
    color: var(--primary-blue);
    font-weight: 500;
}

/* Membership Cards */
.membership-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(18, 163, 82, 0.15);
}

.badge-featured {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.badge-text {
    background: linear-gradient(135deg, var(--primary-green), #0e8a40);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(18, 163, 82, 0.3);
}

.membership-header {
    text-align: center;
    margin-bottom: 25px;
}

.membership-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

.membership-card h4 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 8px;
    font-weight: 700;
}

.membership-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.membership-price {
    text-align: center;
    margin-bottom: 20px;
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.price-duration {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-top: 5px;
}

.membership-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    margin: 20px 0;
}

.membership-benefits {
    flex-grow: 1;
    margin-bottom: 25px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.benefit-item i {
    color: var(--primary-green);
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.benefit-item span {
    line-height: 1.4;
}

.btn-membership {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-green), #0e8a40);
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(18, 163, 82, 0.25);
    letter-spacing: 0.5px;
}

.btn-membership:hover {
    background: linear-gradient(135deg, #0e8a40, #086a33);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 163, 82, 0.4);
    color: #ffffff !important;
}

.btn-membership i {
    transition: transform 0.3s ease;
}

.btn-membership:hover i {
    transform: translateX(4px);
}

/* Form Steps */
.form-step {
    padding: 30px;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: all 0.3s ease;
}

.form-step:last-of-type {
    border-bottom: none;
}

.form-step:hover {
    background-color: rgba(18, 163, 82, 0.02);
}

.step-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), #0e8a40);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(18, 163, 82, 0.3);
}

.step-title {
    flex-grow: 1;
}

.step-title h5 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #222;
}

.step-description {
    font-size: 0.95rem;
    color: #999;
    margin: 0;
}

.step-content {
    margin-left: 70px;
}

.step-content .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.step-content .form-control,
.step-content .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1rem;
    color: #333;
    background-color: white;
    transition: all 0.3s ease;
}

.step-content .form-control:focus,
.step-content .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(18, 163, 82, 0.15);
    color: #333;
}

.step-content .form-control-lg,
.step-content .form-select-lg {
    padding: 12px 15px;
    font-size: 1.05rem;
}

.step-content textarea {
    resize: vertical;
    font-family: 'Lora', serif;
}

.form-step:nth-child(4) .step-number {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.terms-box .form-check-input {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-green);
    border-radius: 4px;
    cursor: pointer;
    margin-top: 4px;
}

.terms-box .form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.terms-box .form-check-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(18, 163, 82, 0.25);
}

.terms-box .form-check-label {
    margin-left: 10px;
    cursor: pointer;
    margin-bottom: 0;
}

/* Form Navigation */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 30px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.form-navigation .btn {
    flex: 1;
    max-width: calc(50% - 7.5px);
}

.form-navigation #nextBtn {
    margin-left: auto;
    max-width: none;
    flex: 0 1 auto;
}

.form-navigation #submitBtn {
    width: 100%;
}

/* Error message styling */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Publications */
.publication-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item:hover {
    background-color: var(--light-gray);
    padding-left: 30px;
}

.publication-type {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Forms */
.form-control {
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(18, 163, 82, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: var(--dark) !important;
    margin-top: auto;
    padding: 40px 0 20px;
    color: #e0e0e0;
}

footer h5, footer h6 {
    color: white;
    font-weight: 600;
}

footer p {
    color: #d0d0d0;
}

footer .small {
    color: #d0d0d0;
}

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

footer a:hover {
    color: var(--primary-green);
}

/* Custom Hyperlinks - Global Styling */
a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #0e8a40;
    text-decoration: underline;
}

a:visited {
    color: var(--primary-blue);
}

a:visited:hover {
    color: #1a3f66;
}

a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Links in text content */
.lead a,
.card-text a,
p a {
    color: var(--primary-green);
    border-bottom: 1px solid rgba(18, 163, 82, 0.3);
}

.lead a:hover,
.card-text a:hover,
p a:hover {
    border-bottom-color: var(--primary-green);
    color: #0e8a40;
}

/* Links in modals */
.modal a {
    color: var(--primary-green);
}

.modal a:hover {
    color: #0e8a40;
}

/* Email and phone links styling */
a[href^="mailto:"],
a[href^="tel:"] {
    color: var(--primary-green);
    font-weight: 600;
}

a[href^="mailto:"]:hover,
a[href^="tel:"]:hover {
    color: #0e8a40;
    text-decoration: underline;
}

/* Navigation links override (already styled, but ensuring consistency) */
.navbar-nav a {
    color: #333 !important;
}

.navbar-nav a:hover {
    color: var(--primary-green) !important;
    text-decoration: none;
}

.navbar-nav a:visited {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

    .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 10px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }
}

/* Utilities */
.text-primary-green {
    color: var(--primary-green) !important;
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

.border-primary-green {
    border-color: var(--primary-green) !important;
}

.shadow-sm-hover:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(18, 163, 82, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(18, 163, 82, 0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Apply animations to cards */
.card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-box {
    animation: zoomIn 0.6s ease-out;
}

.stat-box {
    animation: bounceIn 0.8s ease-out;
}

/* Section animations */
.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animations for multiple items */
.event-card {
    animation: slideInUp 0.5s ease-out;
}

.publication-item {
    animation: fadeInUp 0.5s ease-out;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    animation: pulse 1s infinite;
    color: var(--primary-green);
}

/* Typography */
p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.text-muted-custom {
    color: #888;
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--cream);
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: var(--primary-green);
    font-weight: 600;
}
