/* Modern Landing Page Styles */

:root {
    --primary-color: #007c89;
    --secondary-color: #5d2650;
    --dark-color: #2d2d2d;
    --light-color: #f8f9fa;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

/* Transparent background only for landing page navbar, not admin nav */
.navbar:not(.admin-nav) {
    background: transparent !important;
}

.navbar.scrolled {
    background: rgba(0, 124, 137, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Registration page navbar - solid background (no hero/scroll behavior) */
.navbar.register-nav {
    background: rgba(0, 124, 137, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: url('../assets/images/cover-photo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    animation: fadeInUp 1s ease 0.4s both;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
section {
    position: relative;
}

section h2 {
    color: var(--dark-color);
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    z-index: -1;
}

/* Cards */
.card {
    transition: var(--transition);
    border-radius: 10px;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    background-color: white;
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Contact Section */
.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 137, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #005d67;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 124, 137, 0.4);
}

/* Footer - Foresters style */
footer,
footer.foresters-footer,
.foresters-footer {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    border-bottom: 10px solid #5e2750;
    border-top: 1px solid #e0e0e0 !important;
}

.foresters-footer .footer-link {
    color: #007c89 !important;
    text-decoration: none;
    font-size: 0.875rem;
}

.foresters-footer .footer-link:hover {
    text-decoration: underline;
}

.foresters-footer .footer-separator {
    color: #b3b3b3 !important;
    margin: 0 0.5rem;
    font-size: 0.875rem;
}

.foresters-footer .footer-disclaimer {
    color: #6c757d !important;
    font-size: 0.75rem;
    line-height: 1.5;
}

.foresters-footer hr {
    border-color: #e0e0e0 !important;
    opacity: 1;
}

.foresters-footer p,
.foresters-footer span,
.foresters-footer a {
    color: inherit;
}

#backToTop {
    transition: var(--transition);
}

#backToTop:hover {
    transform: translateY(-5px);
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted) !important;
}

.text-muted a {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.text-muted a:hover {
    color: #005d67 !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Registration page styles */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Form loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Registration type cards */
.card.border-primary:hover {
    border-width: 2px;
}

.card.border-success:hover {
    border-width: 2px;
}
