/*=============================Blog=============================*/

.blog {
    padding: 2rem;
    background-color: #fff;
    text-align: center;
}

.blog-text small {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    color: #777;
}

.blog-text h2 {
    font-family: 'Satisfy', cursive;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.blog-posts {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-post {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    text-align: left;
}

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

.blog-details {
    padding: 1rem;
}

.blog-details h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin: 0.5rem 0;
}

.blog-details p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.blog-details a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #ffcc00; /* Bright yellow */
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.blog-details a:hover {
    background-color: #f1b800; /* Slightly darker yellow */
}


.blog-post img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}


/* Footer */
footer {
    background-color: #ffdd57;
    text-align: center;
    padding: 1rem;
}

footer p {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
}


/* Navigation Bar Styles */

.nav-bar {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    height: 90px;
    background: linear-gradient(to right, #1a2980, #26d0ce);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  
  .logo {
    flex: 1;
    font-size: 40px;
    padding: 20px;
    margin-left: 50px;
    font-family: Satisfy;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  ul.menu {
    flex: 1;
    display: flex;
    flex-flow: row wrap;
  }
  
  .menu li {
    flex: 1;
    list-style-type: none;
    font-size: 16px;
    font-family: "Barlow Condensed";
    text-align: center;
  }
  
  .menu li a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .menu li a:hover {
    color: #fde02f;
    text-decoration: none;
  }
  
/* Blog Page Styles */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Satisfy&family=Roboto:wght@300;400;500&display=swap");

/* Blog Header */
.blog-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-image: url('./image/blog-header.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-bottom: 50px;
}

.blog-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 31, 63, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.blog-header-content {
    max-width: 800px;
}

.blog-header-content h1 {
    font-family: 'Satisfy', cursive;
    font-size: 4rem;
    margin-bottom: 15px;
    color: #ffaa00;
}

.blog-header-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.blog-search button {
    background-color: #ffaa00;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-search button:hover {
    background-color: #f99700;
}

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

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    color: #191d34;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ffaa00;
    margin: 15px auto 0;
}

/* Featured Post */
.featured-post {
    margin-bottom: 60px;
}

.featured-post-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.featured-post-img {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.featured-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-post-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #ffaa00;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.featured-post-text {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.post-category {
    color: #007BFF;
    font-weight: 600;
}

.post-date {
    color: #777;
}

.featured-post-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #191d34;
    font-family: 'Barlow Condensed', sans-serif;
}

.featured-post-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background-color: #0c3e71;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #0a2e53;
    transform: translateY(-3px);
}

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

/* Blog Categories */
.blog-categories {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

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

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f0f7ff;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.category-icon i {
    font-size: 1.5rem;
    color: #007BFF;
}

.category-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.category-card p {
    color: #777;
    font-size: 0.9rem;
}

/* Latest Articles */
.latest-articles {
    margin-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.article-img {
    position: relative;
    height: 200px;
}

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

.article-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: #ffaa00;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.article-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #191d34;
}

.article-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    color: #007BFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.read-more:hover i {
    transform: translateX(5px);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background-color: transparent;
    border: 2px solid #0c3e71;
    color: #0c3e71;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #0c3e71;
    color: #fff;
}

/* Trending Topics */
.trending-topics {
    margin-bottom: 60px;
}

.topics-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.topic-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background-color: #ffaa00;
    color: #fff;
    transform: translateY(-3px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin-bottom: 60px;
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #191d34;
}

.newsletter-text p {
    color: #555;
    line-height: 1.6;
}

.newsletter-form-large {
    flex: 1;
    min-width: 300px;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.form-group button {
    background-color: #ffaa00;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #f99700;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check label {
    color: #666;
    font-size: 0.9rem;
}

/* User Reviews Section */
.user-reviews {
    margin-bottom: 60px;
}

.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.reviews-left, .reviews-right {
    flex: 1;
    min-width: 300px;
}

.reviews-left h3, .reviews-right h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #191d34;
}

.reviews-left p {
    color: #555;
    margin-bottom: 20px;
}

.review-form .form-group {
    display: block;
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.5rem;
    margin-right: 5px;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffaa00;
}

.review-submit-btn {
    background-color: #0c3e71;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.review-submit-btn:hover {
    background-color: #0a2e53;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin-bottom: 3px;
    font-weight: 600;
}

.reviewer-info p {
    margin: 0;
    color: #777;
    font-size: 0.85rem;
}

.review-rating {
    color: #ffaa00;
    font-size: 0.9rem;
}

.review-text {
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.review-date {
    color: #999;
    font-size: 0.85rem;
    text-align: right;
    margin: 0;
}

.view-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: transparent;
    border: 1px solid #0c3e71;
    color: #0c3e71;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #0c3e71;
    color: #fff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 2.5rem;
    }
    
    .featured-post-text {
        padding: 25px;
    }
    
    .featured-post-text h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .form-group button {
        border-radius: 4px;
        padding: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: linear-gradient(to right, #1a2980, #26d0ce);
        padding: 20px 0;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 10px 0;
    }
}

/* For tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-menu-btn {
        display: none;
    }
}
  