/* =========================================
   IEISAT Formal & Professional Theme
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    /* Clean light background */
    color: #212529;
    /* Standard dark text */
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar - Official Formal Style */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #003366;
    /* Official Deep Blue */
    border-bottom: 4px solid #ff9900;
    /* Accent Orange border */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff9900;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.blog-header h2 {
    font-size: 2.2rem;
    color: #003366;
    font-weight: 700;
}

.blog-header p {
    color: #6c757d;
    margin-top: 5px;
    font-size: 1.1rem;
}

/* Search Bar - Clean & Functional */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box:focus-within {
    border-color: #003366;
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

#searchInput {
    flex-grow: 1;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    color: #495057;
    outline: none;
}

#searchBtn {
    padding: 0 25px;
    background: #003366;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

#searchBtn:hover {
    background: #002244;
}

/* Blog Cards - Structured Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.blog-card-link {
    text-decoration: none;
    display: block;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-card-link:hover .blog-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #003366;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #003366;
    font-weight: 600;
}

.card-date {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-excerpt {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #d32f2f;
    /* Action Red */
    font-weight: 600;
    font-size: 0.9rem;
}

/* Single Blog / About Section */
.single-blog {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #212529;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-btn:hover {
    background: #e2e6ea;
    border-color: #dae0e5;
    text-decoration: none;
}

.single-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #003366;
    font-weight: 700;
}

/* Blog Specific Elements */
.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.blog-media {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.blog-content p {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.blog-content h3 {
    color: #003366;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

/* Content Links Styling */
.blog-content a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.blog-content a:hover {
    color: #003366;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        text-align: center;
    }

    .single-blog {
        padding: 25px 20px;
    }

    .single-title {
        font-size: 1.8rem;
    }

    .search-box {
        flex-direction: column;
    }

    #searchBtn {
        padding: 12px;
    }
}



/* =========================================
   Footer Section - Official Style
========================================= */
.site-footer {
    background: #002244;
    /* Darker shade of official blue */
    color: #ffffff;
    padding: 40px 0 0 0;
    margin-top: 60px;
    border-top: 4px solid #ff9900;
    /* Accent Orange border */
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    background: #00152b;
    /* Deepest blue for the very bottom */
    text-align: center;
    padding: 15px 20px;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Mobile Responsive adjustment for footer */
@media (max-width: 768px) {
    .footer-container {
        text-align: center;
    }
}
