/* Български Новини - Main Stylesheet */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #003366;
    --secondary-color: #28a745;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --hover-color: #002244;
    --success-color: #28a745;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Header & Navigation */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: #fff;
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* News Ticker */
.news-ticker {
    background-color: #e9ecef;
    padding: 12px 0;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    white-space: nowrap;
    padding-right: 50px;
    font-size: 14px;
    color: var(--text-dark);
}

.ticker-item strong {
    color: var(--primary-color);
    margin-right: 5px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85), rgba(0, 34, 68, 0.7));
    z-index: 1;
}

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

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* News Cards */
.news-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.news-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.news-card h3 a {
    color: var(--text-dark);
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.read-more:hover {
    color: var(--hover-color);
}

.read-more i {
    margin-left: 5px;
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.bg-light-section {
    background-color: var(--bg-light);
}

/* Categories Section */
.category-box {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

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

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-box h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.category-box p {
    color: var(--text-light);
    margin: 0 auto;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: #fff;
    padding: 60px 0;
}

.newsletter-section h2 {
    color: #fff;
}

.newsletter-form {
    max-width: 600px;
    margin: 30px auto 0;
}

.newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 15px 35px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-control {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.15);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer h5 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer a {
    color: #ccc;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Cookies Banner */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.98);
    color: #fff;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-banner p {
    margin: 0;
    max-width: 100%;
}

.cookies-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Disclaimer Section */
.disclaimer-section {
    background-color: #f8f9fa;
    border-top: 3px solid var(--primary-color);
    padding: 40px 0;
    margin-top: 60px;
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.disclaimer-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    max-width: 100%;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--bg-light);
    padding: 20px 0;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* Blog Article */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 15px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    max-width: 100%;
    margin-bottom: 20px;
}

.article-content img {
    margin: 30px 0;
    border-radius: 10px;
}

.share-buttons {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
    text-align: center;
}

.share-buttons h4 {
    margin-bottom: 20px;
}

.share-buttons a {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--border-color);
}

.team-member h4 {
    margin-bottom: 10px;
}

.team-member .position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* FAQ Accordion */
.faq-item {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 450px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 5px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cookies-banner,
    .news-ticker,
    .newsletter-section,
    .share-buttons {
        display: none;
    }
}
