/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header Area */
header {
    background: linear-gradient(rgba(0, 20, 30, 0.7), rgba(0, 20, 30, 0.7)), 
                url('../images/about-us.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-bottom: 60px;
}

.top-bar {
    background: rgba(0, 15, 25, 0.85);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo, .footer-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ddd;
}

.logo-text h2, .logo-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text span {
    font-size: 0.55rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.contact-info i {
    margin-right: 5px;
}

.btn-primary {
    background: #2e7d32;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1b5e20;
}

/* Hero Content */
.hero-content {
    padding-top: 60px;
    text-align: left;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: #fdd835; /* Yellowish italics */
    margin-bottom: 15px;
}

.hero-desc {
    max-width: 600px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Features Strip */
.features-strip {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    padding: 30px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item i {
    font-size: 1.8rem;
    color: #1a237e;
    margin-top: 5px;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.feature-item p {
    font-size: 0.8rem;
    color: #666;
}

/* Search Section */
.search-section {
    margin: 30px auto;
}

.search-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    gap: 15px;
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
}

.search-icon {
    color: #999;
}

.search-dropdown select {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background: #fff;
    color: #333;
    outline: none;
}

.btn-green {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.btn-green:hover {
    background: #1b5e20;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.4rem;
}

.text-blue { color: #1a237e; }
.text-yellow { color: #fdd835; }

.section-header a {
    color: #1a237e;
    font-weight: 600;
    font-size: 0.9rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.blue { background: #1a237e; }
.badge.green { background: #2e7d32; }
.badge.orange { background: #e65100; }

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-body p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.latest-articles {
    flex: 2;
}

.sidebar {
    flex: 1;
}

.latest-articles h2 {
    margin-bottom: 20px;
}

/* List Items */
.list-item {
    display: flex;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-img {
    width: 220px;
    flex-shrink: 0;
}

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

.list-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-tag {
    background: #e3f2fd;
    color: #0d47a1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.list-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.list-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.list-meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    gap: 15px;
}

.btn-blue {
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.btn-blue:hover {
    background: #0d1555;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-size: 0.95rem;
}

.sidebar-widget ul li a i {
    margin-right: 10px;
    color: #1a237e;
    width: 20px;
}

.sidebar-widget ul li a span {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #666;
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.newsletter-widget input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.newsletter-widget button {
    width: 100%;
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-widget button:hover {
    background: #1b5e20;
}

/* Footer */
footer {
    background: #0b1a2a;
    color: #fff;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding-bottom: 40px;
}

.brand-col .logo-area {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: #1a237e;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #b0bec5;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #b0bec5;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.contact-list li i {
    margin-top: 4px;
}

.footer-bottom {
    background: #07121d;
    padding: 15px 0;
    font-size: 0.8rem;
    color: #90a4ae;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 15px;
    color: #90a4ae;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .main-layout { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-item { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
    .feature-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .top-flex { flex-direction: column; gap: 15px; text-align: center; }
    .contact-info { flex-direction: column; gap: 5px; }
    .hero-content h1 { font-size: 2rem; }
    .search-container { flex-wrap: wrap; }
    .search-container input { width: 100%; }
    .search-container button { width: 100%; margin-top: 10px; }
    .articles-grid { grid-template-columns: 1fr; }
    .list-item { flex-direction: column; }
    .list-img { width: 100%; height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    .flex-between { flex-direction: column; gap: 10px; }
}