/* Content View Styles - Main Navigation & Layout */

/* Content Wrapper - Flexbox container for sticky footer */
.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 150px; /* Space for navbar (top section + bottom section) */
    transition: padding-top 0.3s ease-in-out;
}

/* Adjust padding when navbar is scrolled */
body.navbar-scrolled .content-wrapper {
    padding-top: 40px; /* Only space for bottom navbar when scrolled */
}

/* Main Navbar Container */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #F9F8F6 0%, #EFE9E3 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Top Section - Large Logo */
.navbar-top {
    padding: 5px 0 10px 0;
    text-align: center;
    border-bottom: 2px solid #D9CFC7;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease-in-out, border-bottom-width 0.3s ease-in-out;
    max-height: 200px;
    overflow: hidden;
    opacity: 1;
}

.navbar-logo {
    display: inline-block;
    height: 120px;
    max-width: 600px;
    transition: all 0.3s ease;
}

.navbar-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Bottom Section - Sub Navigation */
.navbar-bottom {
    padding: 6px 0;
    background-color: #F9F8F6;
    border-top: 1px solid #D9CFC7;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links li {
    margin: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    background-color: #D9CFC7;
    color: #333;
}

.nav-link.active {
    background-color: #C9B59C;
    color: #fff;
}

/* Scrolled State - Hide Top Section */
.main-navbar.scrolled .navbar-top {
    max-height: 0;
    padding: 0;
    border-bottom-width: 0;
    opacity: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer stays at bottom */
.site-footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-logo {
        height: 120px;
        max-width: 400px;
    }
    
    .navbar-top {
        padding: 4px 0 8px 0;
        max-height: 150px;
    }
    
    .navbar-bottom {
        padding: 5px 0;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 4px 10px;
    }
    
    .content-wrapper {
        padding-top: 150px; /* Adjusted for smaller navbar */
    }
    
    body.navbar-scrolled .content-wrapper {
        padding-top: 35px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 100px;
        max-width: 300px;
    }
    
    .navbar-top {
        padding: 3px 0 6px 0;
        max-height: 130px;
    }
    
    .navbar-bottom {
        padding: 4px 0;
    }
    
    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 3px 8px;
    }
}

/* Landing Page Styles */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F9F8F6 0%, #EFE9E3 50%, #D9CFC7 100%);
    padding: 60px 20px;
    min-height: 100%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #C9B59C;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 30px;
}

.features-section {
    flex-shrink: 0;
    padding: 80px 20px;
    background-color: #F9F8F6;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 4px solid #C9B59C;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card h3 {
    color: #C9B59C;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 40px 30px;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.btn-back-home:hover {
    color: #C9B59C;
    text-decoration: none;
}

.btn-back-home i {
    margin-right: 5px;
}

.login-header h1 {
    margin-bottom: 10px;
    color: #333;
}

.login-header p {
    color: #666;
    margin: 0;
}

.login-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* About Us Page Styles */
.about-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #F9F8F6 0%, #EFE9E3 100%);
    min-height: 100%;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h1 {
    color: #C9B59C;
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: center;
}

.about-content p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .about-content {
        padding: 30px 20px;
    }
    
    .about-content h1 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}

