/* --- Global --- */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f6f8; margin: 0; color: #333; }

/* --- Navigation (Clean White Style) --- */
.navbar {
    background: #ffffff; 
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container { 
    max-width: 1100px; 
    margin: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
}

.logo-img { height: 60px; width: auto; }

.nav-links a {
    color: #1b5fbf !important; /* Forces Blue text on White background */
    text-decoration: none;
    margin-left: 20px;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover {
    color: #2d89ef;
}

.lang-switch {
    border: 1px solid #1b5fbf;
    color: #1b5fbf !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- Hero (Gradient Style) --- */

.hero {
    background: linear-gradient(135deg, #1b5fbf 0%, #2d89ef 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

/* --- Web Card Gallery (2x2) --- */
.main-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.intro-box { text-align: center; margin-bottom: 40px; }

.card-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.web-card {
    background: white;
    flex: 1 1 300px; /* Allow cards to grow/shrink, but start at 300px */
    min-width: 280px; /* Prevents cards from getting too tiny */
    max-width: 350px; /* CRITICAL: Prevents cards from taking over the whole screen */
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps buttons aligned at the bottom */
}

.web-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.card-icon { font-size: 45px; color: #1b5fbf; margin-bottom: 15px; }
.web-card h3 { color: #1b5fbf; margin: 10px 0; }
.web-card p { font-size: 14px; color: #666; line-height: 1.6; min-height: 80px; }

.open-btn {
    background: #1b5fbf;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

/* --- 3D Modals --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: popUp 0.3s ease;
}
@keyframes popUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.close-modal { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #999; }

/* --- Forms Inside Modals --- */
label { display: block; margin-top: 15px; font-weight: bold; font-size: 14px; text-align: left; }
input, select { width: 100%; padding: 12px; margin-top: 5px; border-radius: 8px; border: 1px solid #ddd; }
.modal-btns { display: flex; gap: 10px; margin-top: 25px; }
.modal-btns button { flex: 2; padding: 15px; background: #1b5fbf; color: white; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; }
.modal-btns .btn-clear { flex: 1; background: #6c757d; }

#result, .ai-result-display { margin-top: 20px; padding: 15px; background: #f8fbff; border-radius: 10px; text-align: center; border: 1px dashed #1b5fbf; }

/* --- Blog Academy (Centered Alignment) --- */
.blog-section { margin-top: 80px; }

.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
    justify-content: center; /* Centers the 3 cards perfectly */
}

.blog-card {
    background: white;
    flex: 1;
    min-width: 300px;
    max-width: 340px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #1b5fbf;
}

.blog-card h3 { margin-top: 0; color: #1b5fbf; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.blog-card ul { list-style: none; padding: 0; }
.blog-card li { margin: 10px 0; }
.blog-card a { text-decoration: none; color: #333; font-weight: bold; font-size: 14px; transition: 0.2s; }
.blog-card a:hover { color: #1b5fbf; padding-left: 5px; }

footer { text-align: center; padding: 50px 0; color: #777; background: #fff; margin-top: 60px; }
.footer-links a { margin: 0 10px; color: #1b5fbf; text-decoration: none; font-size: 14px; }

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .web-card { min-width: 100%; }
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .nav-links a { margin: 0; }
}
/* --- Home Page Banner Styling --- */
.banner-container {
    max-width: 1100px; /* Matches your site's main-container width */
    margin: 20px auto 0 auto; /* Centers the banner and adds spacing */
    padding: 0 20px; /* Prevents touching screen edges on mobile */
    text-align: center;
}

.banner-img {
    width: 100%;
    max-width: 1200px; /* Maximum allowed width for your image */
    height: auto;
    aspect-ratio: 1200 / 250; /* Maintains your specific image proportions */
    object-fit: cover; /* Ensures the image fills the space neatly */
    border-radius: 20px; /* Matches your dashboard cards' rounded corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Professional 3D depth */
    display: block;
    margin: 0 auto;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .banner-container {
        margin-top: 10px;
        padding: 0 15px;
    }
    .banner-img {
        border-radius: 12px; /* Slightly smaller curves for mobile */
    }
}