/* FPBC Main Stylesheet */

:root {
    --primary-color: #221A4A;
    --secondary-color: #B3B2B2;
    --text-black: #000000;
    --bg-white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-gray: #E0E0E0;
    --text-gray: #666666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #1a1439;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-black);
}

.logo-image {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text span {
    color: var(--primary-color);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 26px;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 24px;
    background-color: var(--text-black);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-black);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--light-gray);
}

.nav-menu a.btn:hover {
    background: var(--secondary-color);
}

.nav-menu a.btn-secondary:hover {
    background: #1a1439;
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1a1439;
    color: white !important;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #9a9999;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white !important;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #9a9999;
    color: white !important;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Business Cards */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.business-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.business-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.business-card-image,
.business-card-image-placeholder {
    width: 100%;
    height: 200px;
    position: relative;
}

.business-card-image {
    overflow: hidden;
}

.business-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card-image-placeholder {
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 48px;
}

.business-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.business-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.business-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 5px;
}

.business-card-title a {
    color: var(--text-black);
}

.featured-badge {
    background: var(--secondary-color) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Featured business buttons - only apply black to specific buttons */
.featured-business .btn-outline {
    background: var(--text-black) !important;
    color: white !important;
    border-color: var(--text-black) !important;
}

.featured-business .btn-outline:hover {
    background: #333 !important;
    color: white !important;
    border-color: #333 !important;
}

.section-featured {
    background: var(--secondary-color) !important;
}

/* Override for news featured badge */
.featured-article .featured-badge,
.article-card .featured-badge {
    background: var(--secondary-color) !important;
    background-color: var(--secondary-color) !important;
}

.business-category {
    display: inline-block;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    border: 2px solid var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.business-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.business-categories .business-category {
    font-size: 12px;
    padding: 4px 8px;
}

.business-category:hover {
    background: #1a1439 !important;
    color: white !important;
    border-color: #1a1439 !important;
    transform: translateY(-2px);
}

.rating-stars {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.business-card .business-description {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.business-card-content .btn {
    margin-top: auto;
}

.business-profile .business-description {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.business-profile .business-description p {
    margin-bottom: 16px;
}

.business-profile .business-description p:last-child {
    margin-bottom: 0;
}

.business-profile .business-description ul,
.business-profile .business-description ol {
    margin-bottom: 16px;
    margin-left: 20px;
}

.business-profile .business-description li {
    margin-bottom: 4px;
}

.business-profile .business-description h1,
.business-profile .business-description h2,
.business-profile .business-description h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-black);
}

.business-profile .business-description h1:first-child,
.business-profile .business-description h2:first-child,
.business-profile .business-description h3:first-child {
    margin-top: 0;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-black);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Search Bar */
.search-section {
    background: var(--primary-color);
    padding: 40px 0;
}

.search-form {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 15px 30px;
    background: var(--text-black);
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn i {
    display: inline-block;
}

.search-btn:hover {
    background: #333;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--text-black);
    transform: translateY(-2px);
}

.category-card:hover .category-icon {
    color: var(--primary-color);
}

.category-card:hover .category-name,
.category-card:hover .category-count {
    color: var(--text-black);
}

.category-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-name {
    color: var(--text-black);
    margin-bottom: 5px;
}

.category-count {
    color: var(--text-black);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background-color: #000000 !important;
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #000000 !important;
    background: #000000 !important;
    color: var(--bg-white);
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h2 {
    color: var(--bg-white);
    margin-bottom: 10px;
}

.newsletter-text p {
    color: var(--bg-white);
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 5px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

/* Page Hero Section */
.page-hero {
    background: var(--primary-color);
    padding: 80px 0;
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero-content h1,
.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    max-width: 960px;
    margin: 30px auto 0;
    position: relative;
    z-index: 10;
    display: block;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .hero-banner {
        max-width: 90%;
        margin: -30px auto 30px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-banner {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: -20px auto 20px;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .hero-banner img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* News Header */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-gray);
}

.news-header h2 {
    font-size: 28px;
    margin: 0;
}

.category-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--light-gray);
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.article-image,
.article-image-placeholder {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image-placeholder {
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-gray);
}

.article-category-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-gray);
}

.article-author {
    color: var(--text-gray);
    font-size: 14px;
}

.article-author i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Results Header */
.results-header {
    padding-top: 40px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-gray);
}

.results-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.results-info {
    color: var(--text-gray);
    font-size: 16px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--primary-color);
    color: white;
}

.cta-section .btn-primary:hover {
    background: #1a1439;
    color: white;
}

/* Special Offers */
.offer-badge {
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--light-gray);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--text-black);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-gray);
    color: var(--text-gray);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-gray);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 20px;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

