:root {
    --primary-color: #6c3a79;
    --secondary-color: #329dce;
    --accent-color: #a9ca74;
    --text-color: #1f2937;
    --bg-color: #eff6ff;
    --white: #ffffff;
    --border-color: #bfdbfe;
}

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

/* === Advanced Animated Background === */
body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    color: var(--text-color); 
    line-height: 1.6; 
    
    /* Flowing mesh gradient animation */
    background: linear-gradient(270deg, #1102e2, #c91a40, #a623c7, #71cf5a);
    background-size: 600% 600%;
    animation: gradientBG 15s ease infinite;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Shapes Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 155, 224, 0.08) 0%, rgba(0,0,0,0) 70%);
    animation: float 15s infinite ease-in-out alternate;
}
.circle:nth-child(1) { width: 600px; height: 600px; top: -10%; left: -10%; animation-duration: 20s; }
.circle:nth-child(2) { width: 500px; height: 500px; bottom: -10%; right: -5%; animation-duration: 18s; animation-delay: -5s; background: radial-gradient(circle, rgba(32, 53, 94, 0.06) 0%, rgba(0,0,0,0) 70%); }
.circle:nth-child(3) { width: 400px; height: 400px; top: 40%; left: 60%; animation-duration: 22s; animation-delay: -10s; background: radial-gradient(circle, rgba(255, 214, 0, 0.05) 0%, rgba(0,0,0,0) 70%); }

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(40px, 60px) scale(1.1) rotate(10deg); }
    100% { transform: translate(-20px, 30px) scale(0.9) rotate(-5deg); }
}

a { text-decoration: none; color: inherit; }

/* === Header === */
header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }

/* Category Hover Effect in Menu */
.nav-links li a { 
    display: inline-block;
    color: var(--text-color); 
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative;
}
.nav-links li a:hover { 
    color: #009be0; 
    transform: translateY(-2px);
}
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #00a9fd;
    transition: width 0.3s ease;
}
.nav-links li a:hover::after { width: 100%; }

/* === Search Banner === */
.search-banner {
    background: linear-gradient(135deg, #016299 0%, #009be0 50%, #017db5 100%);
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.07" d="M0,192L60,181.3C120,171,240,149,360,149.3C480,149,600,171,720,192C840,213,960,235,1080,218.7C1200,203,1320,149,1380,122.7L1440,96L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z"></path><path fill="%23ffffff" fill-opacity="0.03" d="M0,64L80,85.3C160,107,320,149,480,160C640,171,800,149,960,122.7C1120,96,1280,64,1360,48L1440,32L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"></path></svg>'),
        linear-gradient(135deg, #016299 0%, #009be0 50%, #017db5 100%);
    background-size: cover;
    background-position: center;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-form { display: flex; width: 100%; max-width: 800px; border-radius: 3px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.search-input { flex-grow: 1; padding: 0 25px; height: 55px; border: none; outline: none; font-size: 1.05rem; color: #333; }
.search-input::placeholder { color: #b0b0b0; font-weight: 500; }
.search-button { background-color: #ffcd00; border: none; width: 75px; height: 55px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; }
.search-button:hover { background-color: #e6b800; }
.search-button svg { width: 22px; height: 22px; fill: #ffffff; }

/* === Main Layout === */
main { max-width: 1200px; margin: 3rem auto; padding: 0 2rem; min-height: 50vh; }
.page-title { text-align: center; font-size: 2rem; font-weight: normal; margin-bottom: 0.2rem; color: #000; }
.page-title-divider { text-align: center; font-size: 1.2rem; line-height: 0.5; margin-bottom: 3rem; color: #555; letter-spacing: 2px; }

/* === Blog Grid === */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@keyframes popIn {
    0% { opacity: 0; transform: translateY(60px) scale(0.9); }
    50% { opacity: 1; transform: translateY(-5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.blog-card {
    background-color: var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    position: relative;
    z-index: 10;
}
.blog-card:hover { 
    transform: translateY(-12px) scale(1.03); 
    box-shadow: 0 25px 40px rgba(0,0,0,0.3); 
    background-color: #016299; /* Colors merge/blend on hover */
}
.blog-card .img-link { display: block; overflow: hidden; }
.blog-card img { width: 100%; height: 150px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); display: block; }
.blog-card:hover img { transform: scale(1.15) rotate(2deg); }

.blog-content { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }

/* Category Tag Hover inside Cards */
.category-tag { 
    display: flex; 
    align-items: center; 
    width: max-content;
    font-size: 0.75rem; 
    color: #e4c1c1; 
    margin-bottom: 0.75rem; 
    text-transform: capitalize; 
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-tag svg { width: 12px; height: 12px; margin-right: 6px; fill: currentColor; transition: transform 0.3s ease; }
.category-tag:hover { color: var(--accent-color); transform: translateX(4px); }
.category-tag:hover svg { transform: scale(1.2); }

.blog-title { font-size: 1.05rem; font-weight: bold; margin-bottom: 0.75rem; line-height: 1.4; }
.blog-title a { transition: color 0.2s ease; }
.blog-title a:hover { color: var(--accent-color); }
.blog-excerpt { font-size: 0.8rem; color: #cbd5e1; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.read-more {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    text-align: center;
    width: max-content;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.read-more:hover { background-color: #e5c312; transform: scale(1.05); }

/* === Advanced Details Page (Article Look) === */
.single-post, .page-content {
    max-width: 900px;
    margin: -2rem auto 4rem auto;
    background: #ffffff;
    padding: 4rem 5rem;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    text-align: left;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.single-post h1, .page-content h1 {
    font-size: 2.2rem;
    color: #222;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', serif;
    font-weight: normal;
}

.single-post-img-container {
    width: 100%;
    margin-bottom: 2rem;
}

.single-post-img-container img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 4px;
}

.single-post .content, .page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.single-post .content .intro-text {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2rem;
}

.single-post .content h2, .page-content h2 {
    color: #222;
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.single-post .content p, .page-content p {
    margin-bottom: 1.5rem;
}

.single-post .content a {
    color: #c0392b; /* Reddish link color matching the image */
    text-decoration: underline;
    font-size: 0.95em;
}

.single-post .content a:hover {
    color: #e74c3c;
}

.author-disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
}

.author-disclaimer p {
    margin-bottom: 0.8rem;
}

.author-disclaimer strong {
    color: #333;
}

/* === About and Contact Pages (Based on Image) === */

/* Global Hero Section for Pages */
.page-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 380px;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 5rem;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(32, 53, 94, 0.85), rgba(15, 25, 50, 0.9));
}
.page-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.page-hero .breadcrumb {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    gap: 8px;
    align-items: center;
}
.page-hero .breadcrumb a {
    color: #fff;
    transition: color 0.3s;
}
.page-hero .breadcrumb a:hover {
    color: #ffcd00;
}
.page-hero .breadcrumb span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* About Layout */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}
.about-main {
    display: flex;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}
.about-text {
    flex: 1.1;
    padding-right: 2rem;
}
.about-text h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: bold;
}
.about-text p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}
.about-images {
    flex: 1.3;
    position: relative;
    height: 480px;
}
.img-back {
    position: absolute;
    right: 0;
    top: 0;
    width: 80%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.img-front {
    position: absolute;
    left: -40px;
    bottom: -20px;
    width: 55%;
    height: 320px;
    object-fit: cover;
    border: 12px solid var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 2;
}
.orange-btn {
    position: absolute;
    right: 30px;
    bottom: 50px;
    background-color: #f37021;
    color: white;
    padding: 14px 35px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.3);
}
.orange-btn:hover {
    background-color: #d65d18;
}

/* Features Grid */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    border-top: 1px solid #eee;
    padding-top: 4rem;
}
.feature {
    display: flex;
    flex-direction: column;
}
.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
}
.feature-header svg {
    width: 32px;
    height: 32px;
    fill: #333;
}
.feature-header h3 {
    font-size: 1.3rem;
    color: #222;
    font-weight: bold;
}
.feature p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* Contact Grid */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 4rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    overflow: hidden;
}
.contact-info {
    background: linear-gradient(135deg, #016299 0%, #009be0 100%);
    color: white;
    padding: 4rem;
}
.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.contact-info > p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.contact-info ul {
    list-style: none;
}
.contact-info li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.contact-info li svg {
    width: 24px;
    height: 24px;
    fill: #ffcd00;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-form-wrapper {
    padding: 4rem;
}
.contact-form-wrapper h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #222;
}
.contact-form-wrapper > p {
    color: #666;
    margin-bottom: 2rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row {
    display: flex;
    gap: 1.5rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fdfdfd;
    transition: all 0.3s ease;
}
.contact-form textarea {
    height: 150px;
    resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #009be0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,155,224,0.1);
}
.submit-btn {
    background-color: #f37021;
    color: white;
    padding: 16px 30px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    margin-top: 1rem;
}
.submit-btn:hover {
    background-color: #d65d18;
}

@media (max-width: 900px) {
    .about-main { flex-direction: column; }
    .about-text { padding-right: 0; }
    .img-front { position: relative; left: 0; bottom: 0; width: 100%; border: none; margin-top: -100px;}
    .img-back { position: relative; width: 100%; }
    .about-features { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 1.5rem; }
    .contact-info, .contact-form-wrapper { padding: 2.5rem; }
}

/* === Footer === */
footer { background-color: var(--primary-color); color: var(--white); padding: 2.5rem 0; font-size: 0.8rem; position: relative; z-index: 10; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { color: var(--white); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-color); text-decoration: none; }

@media (max-width: 1024px) { 
    .blog-grid { grid-template-columns: repeat(3, 1fr); } 
}
@media (max-width: 768px) { 
    .blog-grid { grid-template-columns: repeat(2, 1fr); } 
    .footer-container { flex-direction: column; align-items: center; text-align: center; } 
    .footer-links-grid { gap: 1.5rem; } 
    .single-post-header h1 { font-size: 2rem; }
    .single-post, .page-content { padding: 2rem 1.5rem; margin: -2rem 1rem 3rem 1rem; }
    .single-post h1, .page-content h1 { font-size: 1.8rem; margin-bottom: 1rem; }
    .single-post-img-container img { max-height: 250px; }
}
@media (max-width: 480px) { 
    .blog-grid { grid-template-columns: 1fr; } 
    .footer-links-grid { grid-template-columns: 1fr; } 
    .single-post, .page-content { padding: 1.5rem 1.2rem; margin: -1rem 0.5rem 2rem 0.5rem; }
    .single-post h1, .page-content h1 { font-size: 1.5rem; }
    .single-post .content h2, .page-content h2 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; }
    .page-hero h1 { font-size: 2.5rem; }
}