/* Global Styles */
:root {
    --soft-blush: #F5DADA;
    --charcoal: #1F1F1F;
    --muted-gold: #C9A26A;
    --warm-cream: #FAF8F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--warm-cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Compliance Banner */
.compliance-banner {
    background-color: var(--muted-gold);
    color: var(--charcoal);
    text-align: center;
    padding: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Header */
header {
    background-color: rgba(245, 218, 218, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 106, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-placeholder {
    width: 450px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: left;
    color: var(--muted-gold);
    font-weight: 600;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}


.navbar-nav {
    display: flex;
    flex-direction: row;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--muted-gold);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 5px 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--muted-gold) !important;
}

/* Ensure consistent color on mobile menu tap/active states */
.nav-link:active, .nav-link:focus, .nav-link:visited {
    color: var(--muted-gold) !important;
}

/* Additional fix for Contact link color consistency */
.nav-link:active:focus, .nav-link.active:focus {
    color: var(--muted-gold) !important;
}

/* Ensure all nav-link states have consistent gold color */
.nav-link:active, 
.nav-link:focus, 
.nav-link:visited,
.nav-link:hover,
.nav-link.active {
    color: var(--muted-gold) !important;
    transition: color 0.3s ease;
}

/* Mobile Menu */
.mobile-menu-btn {
    background: none;
    font-size: 1.5rem;
    color: var(--muted-gold);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background-color: var(--muted-gold);
    color: white;
    transform: rotate(90deg);
}

/* Desktop Navigation */
.navbar-collapse {
    display: flex !important;
    flex-grow: inherit;
    align-items: center;
}

/* Desktop Navigation - Show on large screens */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-grow: inherit;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Main Content */
main {
    min-height: 70vh;
    padding: 40px 0;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--charcoal);
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

h2 {
    font-size: 2.2rem;
    color: var(--muted-gold);
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-weight: 300;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(rgba(31, 31, 31, 0.7), rgba(31, 31, 31, 0.7)), url('https://images.unsplash.com/photo-1560066984-138dadb4c035?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 10px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1522338242992-e1a54906a8da?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    background-attachment: fixed;
    filter: blur(2px);
    z-index: -1;
    opacity: 0.3;
}

.hero-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-banner h1:after {
    background-color: var(--muted-gold);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* Section Styling */
.section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--muted-gold);
}

/* Program Cards */
.program-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: none; /* Hide old program cards */
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.program-img {
    height: 200px;
    background-color: var(--soft-blush);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--muted-gold);
    display: none; /* Hide old program images */
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    color: var(--muted-gold);
    margin-bottom: 15px;
}

.program-hours {
    display: inline-block;
    background-color: var(--soft-blush);
    color: var(--charcoal);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* New Program Panel Styles */
.program-panel {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.program-panel:nth-child(even) {
    background-color: var(--soft-blush);
}

.program-panel h3 {
    color: var(--muted-gold);
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.program-panel h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--muted-gold), transparent 60%);
}

.program-panel h4 {
    color: var(--charcoal);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.program-panel ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.program-panel li {
    margin-bottom: 10px;
}

.idfpr-note {
    font-style: italic;
    color: var(--charcoal);
    background-color: rgba(201, 162, 106, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

/* Divider line between programs */
.divider-gold {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--muted-gold), transparent 60%);
    margin: 0 auto;
}

/* Background image for programs section */
.programs-bg {
    background: linear-gradient(rgba(250, 248, 246, 0.9), rgba(250, 248, 246, 0.9)), url('https://images.unsplash.com/photo-1522338242992-e1a54906a8da?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    border-radius: 10px;
    padding: 40px 20px;
    margin-bottom: 40px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    background-color: var(--soft-blush);
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    background: linear-gradient(rgba(245, 218, 218, 0.5), rgba(245, 218, 218, 0.5)), url('/images/about.jpg') no-repeat center center/cover;
    background-blend-mode: overlay;
    opacity: 0.8;
    filter: blur(0.5px);
}

.founder {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 40px;
    text-align: left;
}

.founder h3 {
    color: var(--muted-gold);
    margin-bottom: 15px;
}

/* Form Styling */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--charcoal);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--muted-gold);
}

button {
    background-color: var(--muted-gold);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #b8935f;
    transform: translateY(-3px);
}

/* Contact Info */
.contact-item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 162, 106, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: rgba(201, 162, 106, 0.3);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--muted-gold);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.contact-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: white;
    padding: 60px 0 30px;
}

.footer-about h3 {
    color: var(--muted-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-about p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-text {
    white-space: nowrap;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive adjustments for footer text */
@media (max-width: 768px) {
    .footer-text {
        font-size: 1rem;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .footer-text {
        font-size: 0.9rem;
    }
}

.footer-links h3 {
    color: var(--muted-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--muted-gold);
}

.footer-social h3 {
    color: var(--muted-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--muted-gold);
}

.disclaimer {
    background-color: rgba(201, 162, 106, 0.2);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-weight: 500;
    display: none;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-banner {
        padding: 80px 20px;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-container {
        flex-direction: row;
        align-items: center;
    }
    
    .logo-placeholder {
        margin-bottom: 0;
    }
    
    .navbar-collapse {
        display: none !important;
        position: absolute;
        top: 100px;
        left: 5%;
        right: 5%;
        background-color: rgba(245, 218, 218, 0.95);
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        width: 90%;
        text-align: center;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .nav-link {
        padding: 10px;
        font-size: 1.1rem;
    }
    
    /* Ensure consistent color on mobile menu tap */
    .nav-link:active, .nav-link:focus {
        color: var(--muted-gold) !important;
    }
    
    /* Add more space between Information and Connect With Us on mobile */
    .footer-links {
        margin-bottom: 30px;
    }
    
    /* Ensure mobile menu links have consistent styling */
    .navbar-collapse .nav-link {
        color: var(--charcoal) !important;
        transition: color 0.3s ease;
    }
    
    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:active,
    .navbar-collapse .nav-link:focus,
    .navbar-collapse .nav-link.active {
        color: var(--muted-gold) !important;
    }
    
    /* Fix for Contact link color consistency on mobile */
    .navbar-collapse .nav-link:active:focus,
    .navbar-collapse .nav-link.active:focus {
        color: var(--muted-gold) !important;
    }
    
    /* Additional fix for consistent mobile menu text colors */
    .navbar-collapse .nav-link:visited,
    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:active,
    .navbar-collapse .nav-link:focus,
    .navbar-collapse .nav-link.active {
        color: var(--muted-gold) !important;
        transition: color 0.3s ease;
    }
}

/* Extra space above Information section on mobile for better breathing room */
@media (max-width: 768px) {
    .footer-links {
        margin-top: 30px !important;
    }
    
    .footer-about {
        padding-bottom: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-about p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-text {
    white-space: nowrap;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive adjustments for footer text */
@media (max-width: 768px) {
    .footer-text {
        font-size: 1rem;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .footer-text {
        font-size: 0.9rem;
    }
}
