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

/* Hero section */
.hero {
    position: relative;
    height: 90vh;
    background: url('../img/WORK.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
}

.hero-2 {
    position: relative;
    height: 90vh;
    background: url('../img/STUDY.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    max-width: 600px;
}

.category {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #f1f1f1;
}

.description {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #f1f1f1;

}

.btn-read {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #fff;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-read:hover {
    background: #fff;
    color: #800000;
}

/* Work Section */
.work {
    padding: 60px 10%;
    background: #fdfdfd;
    color: #941515;
}

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

.work-title {
    font-size: 2rem;
    font-weight: bold;
}

/* Grid for blog cards (4 per row, max 2 rows per page) */
.section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

.blog-info {
    padding: 15px;
}

.blog-info p {
    font-size: 0.85rem;
    color: #941515;
    margin-bottom: 5px;
}

.blog-info a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
}

.blog-info a:hover {
  color: #941515;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination a, 
.pagination span {
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #000;
    font-weight: bold;
    transition: background 0.3s ease;
}

.pagination a:hover {
    background: #800000;
    color: #fff;
}

.pagination .active {
    background: #800000;
    color: #fff;
    border-color: #000;
}

/* Optional: make it responsive */
@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
    }
}

@media (max-width: 640px) {
    .section-grid {
        grid-template-columns: 1fr; /* 1 card per row on mobile */
    }
}

/* Study Section */
.study {
    padding: 60px 10%;
    background: #ffffff;
    color: #941515;
}

.study-title {
    font-size: 2rem;
    font-weight: bold;
}