/* theme/css/new-theme.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* These are defaults, they will be overridden by the dynamic-styles.php */
    --primary-color: #000080; /* Dark Blue */
    --primary-text-color: #ffffff; /* White */
    --secondary-color: #F8D400; /* Bright Yellow */
    --secondary-text-color: #1F2937; /* Dark */
    
    --text-dark: #1F2937; /* Dark Gray */
    --text-light: #ffffff;
    --bg-dark: #1F2937;
    --bg-light-gray: #f9fafb;
    --font-main: 'Inter', sans-serif;
}

/* --- General & Reset --- */
body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-top: 1.5em;
    margin-bottom: 1rem;
}
h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2.5rem; margin-top: 1em; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; line-height: 1.7; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem; /* Slightly smaller for nav */
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem; /* Slightly smaller for nav */
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent; /* Added for hover consistency */
    cursor: pointer;
    text-decoration: none !important;
}
/* Yellow Button (Primary) */
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--secondary-text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    filter: brightness(95%);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}
/* White Outline Button (Secondary) */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-size: 1rem; /* Reset for carousel */
    padding: 0.75rem 1.75rem; /* Reset for carousel */
}
.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}
/* Blue Button (Primary Dark) */
.btn-primary-dark {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    border-color: var(--primary-color); /* Match background */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* === THIS IS THE FIX === */
.btn-primary-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
    background-color: var(--primary-color); /* Background STAYS dark blue */
    color: #F8D400; /* Text turns YELLOW. Period. */
}
/* === END FIX === */

/* Set font-size for non-nav buttons */
.section-grid .btn, .form-window .btn {
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
}


/* --- Header & Nav --- */
.nbp-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 1rem 0; /* Reduced padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nbp-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nbp-logo {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
}
.nbp-logo img {
    height: 35px;
    margin-right: 0.75rem;
}
.nbp-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem; /* Reduced gap for buttons */
    align-items: center;
}
/* Remove default link styling from nav */
.nbp-nav-links a {
    color: var(--primary-text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: none;
    padding: 0.6rem 1.25rem; /* Use button padding */
}
/* Make the "Join" button (primary) stand out */
.nbp-nav-links a.btn-primary {
    color: var(--secondary-text-color);
}
/* Active state for nav buttons */
.nbp-nav-links a.active {
    /* Use a yellow border to show active state */
    border-color: var(--secondary-color);
    color: var(--secondary-color); /* Text also yellow */
    box-shadow: none;
}
/* Make the "Join" button (primary) look active */
.nbp-nav-links a.btn-primary.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--secondary-color);
}


.mobile-nav-toggle { display: none; }

/* --- Carousel --- */
.carousel {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--bg-dark);
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
}
.slide-content {
    position: relative;
    z-index: 4;
    color: var(--text-light);
    text-align: center;
    padding: 0 1.5rem;
    max-width: 800px;
}
.slide-content h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.slide-buttons .btn {
    margin: 0 0.5rem;
}
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.carousel-dot.active {
    background-color: var(--text-light);
}

/* --- Content Sections --- */
.section {
    padding: 5rem 0;
}
.section-gray {
    background-color: var(--bg-light-gray);
}
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.section-grid.grid-reverse {
    grid-template-columns: 1fr 1fr;
}
.section-grid.grid-reverse div:first-child { order: 2; }
.section-grid.grid-reverse div:last-child { order: 1; }

.section-grid img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.article-description {
    font-size: 1.25rem;
    color: #555;
    font-weight: 400;
}
.article-content {
    font-size: 1.1rem;
}
.article-content h3 {
    margin-top: 2em;
}

/* --- FORM STYLING (Contact/Join) --- */
.form-window {
    max-width: 700px;
    margin: 5rem auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.form-titlebar {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    padding: 1.25rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}
.form-content {
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    box-sizing: border-box; /* Important */
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,128,0.1);
}
.form-group textarea {
    min-height: 120px;
}
.form-message-success {
    color: #006400;
    background: #e6ffed;
    border: 1px solid #a3f7b5;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
}
.form-message-error {
    color: #a00000;
    background: #ffeeee;
    border: 1px solid #ffc0c0;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Footer --- */
.nbp-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}
.nbp-footer p {
    margin: 0;
    opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    /* Hide desktop nav, show hamburger */
    .nbp-nav-links { display: none; } 
    .mobile-nav-toggle { display: block; } 
    
    .section-grid { grid-template-columns: 1fr; }
    .section-grid.grid-reverse div:first-child { order: 1; }
    .section-grid img { 
        order: -1; 
        margin-bottom: 2rem; 
    }
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content p { font-size: 1.1rem; }
    .form-window {
        margin: 2rem auto;
    }
    .form-content {
        padding: 1.5rem;
    }
}
