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

/* Base */
body {
    font-family: 'Inter', sans-serif;
    color: #444;
    line-height: 1.8;
    background: #f8f8f8;
    -webkit-font-smoothing: antialiased;
}



#blog-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 0.625rem;
}

@font-face {
    font-family: 'Bogart';
    src: url('font/Bogart-Semibold-trial.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

p, ul, blockquote {
    font-size: 1.1rem;
    color: #363636;
    margin-bottom: 1.5625rem;
    font-weight: 350;
}

/* Layout */
.main-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}
.blog-container { display: block; width: 100%; height: auto; }

/* Video Section */
.video-section {
    width: 50%;
    position: fixed;
    height: 100vh;
    overflow: hidden;
}
.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(80%);
}

#blog-detail {
    padding: 0px 60px;
    padding-bottom: 2.5rem;
}

.blog-content {
    width: 100%;
    margin-left: 0;
    padding: 2rem 2rem 2rem 3.75rem; /* Top: 2rem, Right: 2rem, Bottom: 2rem, Left: 3.75rem */
    height: auto;
}

#blog-content p {
    margin-bottom: 1.75rem;
}

#blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #3c3c3c;
}

#blog-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #3c3c3c;
}
.logo {
    position: absolute;
    left: 2rem;
    top: 1.5rem;
    color: #011c00;
    font-size: 1.7rem;
    font-weight: 850;
    letter-spacing: 0.0625rem;
    font-family: 'Bogart';
}
.blog-logo {
    position: static; /* Changed for header layout */
    color: #002f0a;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    font-family: 'Bogart';
}

/* Blog Header */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Content */
.content {
    width: 50%;
    margin-left: 50%;
    padding-top: 50px;
    padding: 10rem 3rem;
    overflow-y: auto;
    height: auto;
    scroll-behavior: smooth;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.blog-content {
    width: 100%;
    margin-left: 0;
    padding: 2rem 3.75rem;
    height: auto;
}
section {
    margin: 3rem 0;
    padding-bottom: 3rem;
}
h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1.25rem; color: #333; }
h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 1rem; color: #3c3c3c; }

ul { list-style: none; }
ul li:before { content: "   ◦ "; color: #888; font-size: 1.2rem; }

/* Buttons */
.btn {
    background: none;
    border: 2px solid #555;
    color: #444;
    padding: 0.5rem 1.125rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 1.25rem;
    display: inline-block;
    margin-right: 0.625rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover, .btn:focus {
    background: #444; 
    color: #fff; 
    outline: none; 
    transform: scale(1.05);
}

/* Dropdown Menu */
.dropdown {
    position: fixed; /* Fixed position to stay at top-right */
    top: 1rem; /* Distance from the top */
    right: 1rem; /* Distance from the right */
    z-index: 1000; /* Ensure it stays above other content */
}

.dropdown-btn {
    background: #fff;
    color: #1f2937;
    padding: 0.5rem 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* Align dropdown content to the right edge of the button */
    top: 100%; /* Position below the button */
    background: #fff;
    min-width: 11.25rem;
    box-shadow: 0 0.375rem 0.75rem rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.dropdown-content a {
    color: #444;
    padding: 0.625rem 1.125rem;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: background 0.3s ease;
}

.dropdown-content a:hover, .dropdown-content a:focus {
    background: #f2f2f2;
    outline: none;
}

/* Animation */
.fade-in { opacity: 0; transition: opacity 0.5s ease; }
.fade-in.visible { opacity: 1; }

/* Section Images */
.section-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 1rem;
    display: block;
    border-radius: 0.625rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.05);
}

/* Blog Item Image */
.blog-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.625rem;
    margin-bottom: 0.5rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Blog Item */
.blog-item {
    padding: 0.75rem;
    background: #fff;
    border-radius: 0.625rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}
.blog-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.blog-item p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}
.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}
.search-bar .search-btn {
    background: #555;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
}
.search-bar .search-btn:hover {
    background: #444;
}

/* Featured Blog */
.featured-blog {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 0.9375rem;
    margin-bottom: 2rem;
}
.featured-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}
.featured-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.featured-item .blog-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
}
.featured-item h3 {
    font-size: 1.5rem;
    color: #333;
}
.featured-item p {
    font-size: 1.1rem;
    color: #666;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.filter-btn.active {
    background: #555;
    color: #fff;
    border-color: #555;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}
.page-info {
    font-size: 1rem;
    color: #666;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA Banner */
.cta-banner {
    background: #f2f2f2;
    padding: 1.5rem;
    border-radius: 0.9375rem;
    text-align: center;
    margin: 1.5rem 0;
}
.cta-banner h3 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
}
.cta-banner p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.875rem;
    max-width: 75rem;
    margin: 2rem auto;
    padding: 0 2rem;
}
.feature-item {
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.9375rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
}
.feature-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 0.625rem;
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 0.5rem;
}
.feature-item p {
    font-size: 1rem;
    color: #666;
}

/* Blog Images Container */
#blog-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

/* Blog Footer Image */
.blog-footer-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 2.5rem auto 0;
    display: block;
    border-radius: 0.9375rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.05);
}

/* Testimonials */
.testimonials { display: flex; flex-direction: column; gap: 1.5625rem; }
.testimonial {
    display: flex;
    align-items: flex-start;
    gap: 0.9375rem;
}
.testimonial img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.testimonial blockquote {
    margin: 0;
    font-style: italic;
    color: #777;
}

/* Form */
form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 28.125rem; margin: 1.25rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
input, textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
}
input:focus, textarea:focus { border-color: #555; }

/* Footer */
footer { padding: 1.875rem 0; text-align: center; font-size: 0.9rem; color: #888; }

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .video-section {
        width: 100%;
        height: 35vh;
        position: relative;
    }
    .content {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
    }
    .blog-header {
        padding: 1rem;
    }
    .featured-item {
        flex-direction: column;
        text-align: center;
    }
    .featured-item .blog-image {
        width: 100%;
        max-width: 300px;
    }
    .search-bar {
        flex-direction: column;
        padding: 0;
    }
    .category-filter {
        gap: 0.25rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    p, ul, blockquote {
        font-size: 1rem;
    }
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .blog-item {
        padding: 0.75rem;
    }
    .blog-footer-img {
        max-width: 100%;
    }
    .logo {
        font-size: 1.2rem;
        left: 1.5rem;
        top: 1rem;
        color: #ffffff;
    }
    .blog-logo {
        font-size: 1.2rem;
        color: #002f0a;
    }
    .dropdown {
        right: 1.5rem;
        top: 1rem;
    }
    .dropdown-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    .blog-title {
        font-size: 2rem;
    }
    #blog-content {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {

    #blog-detail {
        padding: 0px 18px;
        padding-bottom: 2.5rem;
    }
    section {
        margin: 2rem 0;
        padding-bottom: 2rem;
    }
    .logo {
        font-size: 1.2rem;
        left: 1rem;
        top: 0.75rem;
        color: #ffffff;
    }
    .blog-logo {
        font-size: 1.2rem;
        color: #002f0a;
    }
    .dropdown {
        right: 1rem;
        top: 0.75rem;
    }
    .dropdown-btn {
        font-size: 1rem;
        padding: 0.4rem 0.55rem;
    }
    h1 {
        font-size: 1.5rem;
        font-weight: 600;
    }
    h2 {
        font-size: 1.25rem;
        font-weight: 600;
    }
    p {
        font-weight: 250;
    }
    .btn {
        font-size: 0.8rem;
    }
}

/* Intro and Blog Title */
.intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #666;
}
.blog-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.0rem;
    color: #333;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.image-container .section-img {
    margin: 0;
}

/* Small Image */
.small-img {
    width: 40%;
    height: auto;
    object-fit: cover;
}

/* Large Image */
.large-img {
    width: 60%;
    height: auto;
}

/* Adjustments for responsiveness */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ensure images are larger */
    gap: 1rem; /* Reduce gap for less empty space */
    margin-top: 1.5rem; /* Add some margin for spacing */
}

@media (max-width: 768px) {
    .intelligence-container {
        padding: 2rem 1rem; /* Reduce padding for smaller screens */
    }
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .intelligence-hero h1 {
        font-size: 1.8rem; /* Adjust heading size */
    }
    .intelligence-hero .subtitle {
        font-size: 1.2rem; /* Adjust subtitle size */
    }
    .grid-image {
        width: 100%; /* Ensure images take full width */
        height: auto; /* Maintain aspect ratio */
    }
}