/* Components Styles */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5em;
    color: #003366;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #C82333;
    border-radius: 2px;
}

/* Search Bar Icon (Font Awesome) */
.search-bar button i {
    font-size: 1.2em;
}

/* Social Icons (Font Awesome) */
.social-icons a i {
    font-size: 1.5em;
}

/* Analysis & Opinions Card */
.analysis-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #003366; /* Blue accent */
}

.analysis-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #000000;
}

.analysis-card .author {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

.analysis-card p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
}

/* International Section - Flag Icon */
.article-card.international .flag-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 20px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 2;
}

.article-card.international h3 {
    text-transform: uppercase;
}

/* Economy & Business - Data Bubbles */
.data-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #C82333; /* Red */
    color: #FFFFFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 10px;
    flex-shrink: 0;
}

.data-bubble.blue {
    background-color: #003366; /* Blue */
}

.economy-article-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.economy-article-header h3 {
    margin: 0;
}

/* Video Player */
.video-player-container {
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.video-player-container iframe {
    width: 100%;
    height: 450px; /* Aspect ratio 16:9 for 800px width */
    display: block;
}

.video-info {
    padding: 25px;
    color: #FFFFFF;
}

.video-info h3 {
    color: #FFFFFF;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.video-info p {
    font-size: 1em;
    color: #bbb;
    margin-bottom: 10px;
}

.video-info .meta {
    font-size: 0.85em;
    color: #888;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #FFFFFF;
    padding: 15px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay h4 {
    margin: 0;
    font-size: 1.1em;
    color: #FFFFFF;
}

.photo-overlay p {
    margin: 5px 0 0 0;
    font-size: 0.85em;
    color: #ccc;
}

/* Long Form Investigation */
.long-form-investigation {
    position: relative;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.long-form-investigation img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: -1;
}

.long-form-content {
    z-index: 1;
    max-width: 900px;
    padding: 30px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 10px;
}

.long-form-content h2 {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.long-form-content p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.quote-box {
    background-color: rgba(255,255,255,0.9);
    color: #000000;
    padding: 25px;
    border-left: 5px solid #C82333;
    margin: 30px auto;
    font-style: italic;
    font-size: 1.2em;
    max-width: 70%;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.quote-box span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    text-align: right;
}

/* Portraits & Stories */
.portrait-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.portrait-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.portrait-card h3 {
    font-size: 1.4em;
    margin: 15px 10px 5px 10px;
    color: #000000;
}

.portrait-card p {
    font-size: 0.9em;
    color: #555;
    padding: 0 15px;
    margin-bottom: 15px;
}

/* Data & Graphics */
.infographic-module {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.infographic-module h3 {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
}

.infographic-module .chart-placeholder {
    width: 100%;
    height: 150px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9em;
}

.infographic-module p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.filter-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons .btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Politics Section */
.politics-list .article-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.politics-list .article-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; /* Circular image for politicians */
    margin-right: 20px;
    flex-shrink: 0;
}

.politics-list .article-card-content {
    padding: 0;
}

.politics-list .article-card h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.politics-list .article-card .meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.politics-list .article-card p {
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Comments Section */
.comments-section {
    background-color: #F5F5F5;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.comment-box {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-box .pseudo {
    font-weight: bold;
    color: #003366;
    margin-bottom: 5px;
}

.comment-box p {
    font-size: 0.95em;
    color: #333;
    line-height: 1.5;
}

.comment-form {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 100px;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box; /* Include padding in width */
}

.comment-form .btn {
    width: auto;
    padding: 10px 25px;
}

/* General Utility Classes */
.text-center {
    text-align: center;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}