* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

nav ul li a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero{
    margin-top: 80px;
    background-image: url("../images/blog_banner.png");
    background-size: cover;
    background-position: center;
    min-height: 400px;
    height: clamp(400px, 60vh, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    padding: 2rem;
}

.hero-content {
    background: rgba(255, 255, 255, 0.5); /* semi‑transparent box */
    padding: 25px 40px;
    border-radius: 10px;
    max-width: 700px;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.95;
}
/* Ensure content is not hidden behind fixed header */
.header-spacer {
    height: 80px; /* adjust based on your header height */
}

/* Main blog container */
.blog-main {
    background-color: #f5f7fb;
    min-height: 100vh;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Blog page title */
.blog-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
    color: #0e7490;
}

.blog-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Blog list */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Single blog item (title + summary in one row block) */
.blog-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-item-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #f59e0b;
}

.blog-item-title a {
    text-decoration: none;
    color: inherit;
}

.blog-item-title a:hover {
    color: #0e7490;
}

.blog-item-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.blog-item-summary {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.blog-team {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

.read-more svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.team-label {
    font-size: 0.8rem;
    color: #999;
}

.team-name {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.tag {
    padding: 4px 12px;
    background: #f3f4f6;
    color: #666;
    border-radius: 12px;
    font-size: 0.85rem;
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f7fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-link:hover {
    background: #0e7490;
    color: white;
    border-color: #0e7490;
}

.page-link.active {
    background: #0e7490;
    color: white;
    border-color: #0e7490;
    cursor: default;
}

.page-link.disabled {
    background: #e5e7eb;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-container {
        padding: 1.5rem 1.25rem 3rem;
    }

    .blog-item {
        padding: 1.25rem 1.25rem;
    }
}


/* Footer Styles */
footer {
    background:linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fdc50e;
    /* color: black; */
}

.footer-section p,
.footer-section ul {
    color: white;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: gainsboro;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}