/* Base Styles */
:root {
    --primary-color: #004488;
    --secondary-color: white;
    --accent-color: #f59e0b;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
    --text-color: #374151;
    --light-gray: #e5e7eb;
    --medium-gray: #9ca3af;
    --dark-gray: #4b5563;
    --danger-color: #ef4444;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f3f4f6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #FFAD00;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #00336a;
    color: white;
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--medium-gray);
    color: var(--dark-color);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 70vh;
    min-height: 500px;
    background-image: url('./image.png');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Blog Brief Section */
.blog-brief {
    padding: 80px 0;
    background-color: white;
}

.brief-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.brief-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.brief-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.brief-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    min-width: 300px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: calc(33.333% - 20px);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Blog Filter Section */
.blog-filter {
    padding: 30px 0;
    background-color: #f9fafb;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-box {
    display: flex;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    padding: 12px 15px;
    border: none;
    flex: 1;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: #00336a;
}

.tag-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    background-color: #e5e7eb;
    color: var(--dark-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover, .tag.active {
    background-color: var(--primary-color);
    color: white;
}

/* Blog Cards Section */
.blogs-section {
    padding: 60px 0;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    background-color: #e5e7eb;
    color: var(--dark-gray);
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    color: var(--text-color);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--medium-gray);
    font-size: 0.8rem;
}

.card-author {
    display: flex;
    align-items: center;
}

.card-author i {
    margin-right: 5px;
}

.card-date-time {
    display: flex;
    align-items: center;
}

.card-date-time i {
    margin-right: 5px;
}

.load-more-container {
    text-align: center;
}

/* Skeleton loading styles */
.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton-img {
    background-color: #e5e7eb;
    height: 200px;
}

.skeleton-title {
    height: 25px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 80%;
}

.skeleton-text {
    height: 15px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-meta {
    height: 15px;
    background-color: #e5e7eb;
    border-radius: 4px;
    width: 60%;
    margin-top: 15px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Footer */
.footer {
    background-color: #2859b8;
    color: #f9fafb;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    background: white;
    border-radius: 10px;
    height: 50px;
    margin-bottom: 10px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #FFAD00;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: #FFAD00;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog detail page styles */
.blog-container {
    padding: 40px 0 80px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.back-button i {
    margin-right: 8px;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 68, 136, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
    padding: 60px 0;
}

.error-container i {
    font-size: 3rem;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.error-container h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-container p {
    margin-bottom: 25px;
    color: var(--dark-gray);
}

.blog-post {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.blog-cover-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin: -40px -40px 30px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.blog-date, .blog-read-time, .blog-views {
    display: flex;
    align-items: center;
}

.blog-date::before {
    content: '\f133';
    font-family: 'Font Awesome 5 Free';
    margin-right: 5px;
}

.blog-read-time::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    margin-right: 5px;
}

.blog-views::before {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    margin-right: 5px;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

.blog-author {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.author-avatar {
    margin-right: 10px;
    font-size: 1.5rem;
}

.blog-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 30px;
}

.blog-section {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-content {
    line-height: 1.7;
    margin-bottom: 25px;
}

.section-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin: 20px 0 30px;
}

.blog-conclusion {
    background-color: #f9fafb;
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 40px 0 30px;
    border-left: 4px solid var(--primary-color);
}

.blog-conclusion h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.blog-tags {
    margin: 30px 0;
}

.blog-tags h4 {
    margin-bottom: 10px;
}

.blog-share {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.blog-share h4 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.email {
    background-color: #dd4b39;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    color: white;
}

.related-blogs h2 {
    margin-bottom: 30px;
    font-size: 1.75rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .brief-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .blog-post {
        padding: 25px;
    }
    
    .blog-cover-image {
        height: 250px;
        margin: -25px -25px 20px;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .blog-meta {
        gap: 10px;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .blog-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-avatar {
        margin-bottom: 5px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}