:root { --p: #0f172a; --p-l: #1e293b; --a: #3b82f6; --t: #334155; --tm: #64748b; --bg: #f8fafc; --w: #fff; --s: #22c55e; --d: #ef4444; --fh: "Barlow Condensed",sans-serif; --fb: "Inter",sans-serif; }
.landing-wrapper { font-family: var(--fb); color: var(--t); line-height: 1.5; width: 100%; }
.container { width:80%; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 10; }
.section { padding: 5rem 0; }
.bg-light { background: var(--bg); }
.header-center { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.caption { color: var(--a); font-weight: 600; text-transform: uppercase; font-size: 0.875rem; display: block; margin-bottom: 1rem; }
h1, h2, h3, h4 { font-family: var(--fh); color: var(--p); font-weight: 700; line-height: 1.1; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.desc { color: var(--tm); font-size: 1.125rem; }
.hidden { display: none!important; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 2rem; height: 3.5rem; border-radius: 0.375rem; font-weight: 500; text-decoration: none; transition: 0.2s; cursor: pointer; border: none; font-size: 1.125rem; }
.btn-primary { background: var(--p); color: var(--w); } .btn-primary:hover { background: var(--p-l); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: var(--w); } .btn-outline:hover { background: rgba(255,255,255,0.1); }
.icon-sm { width: 1rem; height: 1rem; } .icon-xs { width: .875rem; height: .875rem; }
.text-center { text-align: center; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--w); overflow: hidden; }
.overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(15,23,42,0.7)); z-index: 1; }
.hero-content { padding-top: 4rem; }
.badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: #f1f5f9; /* Light gray background */
        color: var(--p); /* Dark text */
        border-radius: 99px;
        font-weight: 500;
        font-size: 0.875rem;
        border: 1px solid #e2e8f0;
        margin-bottom: 1.5rem;
        backdrop-filter: none; /* Remove glass effect */
        .icon-sm { color: var(--tm); }
    }
.hero h1 { font-size: 3.5rem; color: var(--w); margin-bottom: 1.5rem; }
.txt-gradient { background: linear-gradient(135deg, #b91c1c, #ef4444); -webkit-background-clip: text; color: transparent; }
.subtitle { color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; font-size: 1.25rem; }
.cta-group { display: flex; gap: 1rem; margin-bottom: 4rem; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat .val { font-family: var(--fh); font-size: 2.25rem; font-weight: 700; }
.stat .lbl { color: rgba(255,255,255,0.6); font-size: .875rem; }
.fade-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 8rem; background: linear-gradient(to top, var(--w), transparent); z-index: 2; }

/* Services */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.cat-card { background: var(--w); padding: 2rem; border-radius: .75rem; border: 2px solid transparent; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); position: relative; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.cat-card.active .chev { transform: rotate(180deg); }
.icon-box { width: 4rem; height: 4rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center; color: var(--w); margin-bottom: 1.5rem; }
.card-ft { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: #ffffff; margin-top: 1rem; }
.badge-pop { position: absolute; top: 1.5rem; right: 1.5rem; background: linear-gradient(160deg, #4b6cb7, #182848);; color: var(--w); font-size: .75rem; padding: .25rem .75rem; border-radius: 99px; font-weight: 700; text-transform: uppercase; }
/* Mods */
/* --- Devenire (Active/Future) - Vibrant Blue --- */
.mod-devenire {
    background-color: #778899; /* Very light gray (almost white) */
    color: #ffffff; /* Dark gray text */
    border-color: #334155;
}

.mod-devenire .icon-box {
    background: linear-gradient(160deg, #4b6cb7, #182848); /* Standard Silver */
    /* Alternative: #A9A9A9 (Darker Gray/Silver) */
    color: #ffffff; 
}

.mod-devenire.active {
    border-color: #3b82f6; /* Matching Royal Blue */
    background-color: #5D8AA8; /* Very light blue/white */
    color: #1e3a8a; /* Dark blue text for contrast */
}

/* --- Blocati (Blocked) - Slate Gray & White --- */
.mod-blocati {
    background-color:#B0C4DE; /* Very light gray (almost white) */
    color: #ffffff; /* Dark gray text */
    border-color: #334155;
}

.mod-blocati .icon-box {
    background: linear-gradient(160deg, #4b6cb7, #182848);/* Bright Royal Blue*/
    color: #ffffff; /* White icon inside */
}

.mod-blocati.active {
   border-color: #3b82f6; /* Matching Royal Blue */
    background-color: #5D8AA8; /* Very light blue/white */
    color: #1e3a8a; /* Dark blue text for contrast */
}
.mod-scalare { background: #f0fdf4; } .mod-scalare .icon-box { background: #22c55e; } .mod-scalare.active { border-color: #22c55e; }

/* Details */
.det-wrap { animation: up .4s ease; margin-bottom: 2rem; }
.det-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 1.5rem; }
.srv-card { background: var(--w); border: 4px solid #e2e8f0; border-radius: .5rem; padding: 1.5rem; }
.srv-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.srv-head h4 { font-size: 1.25rem; }
.icon-sq { width: 2.5rem; height: 2.5rem; background: #f1f5f9; display: flex; align-items: center; justify-content: center; border-radius: .5rem; color: var(--t); }
.prob-sol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; background: #f8fafc; padding: 1rem; border-radius: .5rem; margin: 1rem 0; font-size: .875rem; }
.prob-sol ul { list-style: none; padding: 0; margin: 0; }
.prob-sol li { margin-bottom: .5rem; display: flex; gap: .5rem; }
.lbl-prob { color: var(--d); font-weight: 700; font-size: 1.25rem; display: block; margin-bottom: .5rem;  }
.lbl-sol { color: var(--s); font-weight: 700; font-size: 1.25rem; display: block; margin-bottom: .5rem; text-transform: uppercase; }
.btn-block { display: block; width: 100%; padding: .75rem; background: #303C82; color: var(--w); text-align: center; border-radius: .375rem; text-decoration: none; font-weight: 500; }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.tool-card { background: var(--w); padding: 1.5rem; border-radius: .5rem; cursor: pointer; transition: .3s; border: 1px solid transparent; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.tool-card:hover { transform: translateY(-4px); border-color: var(--a); }
.tool-icon { width: 3rem; height: 3rem; background: #eff6ff; color: var(--a); border-radius: .5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.tool-ft { border-top: 1px solid #e2e8f0; margin-top: 1rem; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.usage { font-size: .75rem; color: var(--tm); display: flex; gap: .3rem; align-items: center; }
.btn-sm { padding: .25rem .75rem; background: var(--p); color: var(--w); border: none; border-radius: .25rem; font-size: .875rem; cursor: pointer; display: flex; gap: .3rem; align-items: center;}
.tool-view { background: var(--w); padding: 2rem; border-radius: .5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); margin-bottom: 2rem; animation: slide .3s ease; }
.tool-head { display: flex; justify-content: space-between; border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.tool-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.inputs label { display: block; margin-bottom: .5rem; font-size: .875rem; font-weight: 500; }
.inputs input { width: 100%; padding: .5rem; border: 1px solid #e2e8f0; border-radius: .25rem; margin-bottom: .5rem; }
.results { background: #f8fafc; padding: 1.5rem; border-radius: .5rem; }
.results .row { display: flex; justify-content: space-between; border-bottom: 1px solid #e2e8f0; padding: .5rem 0; font-size: .875rem; }
.results .final { background: #f0fdf4; padding: .75rem .5rem; font-weight: 700; margin-top: .5rem; border-radius: .25rem; }
.btn-exp { width: 100%; padding: .75rem; background: var(--p); color: var(--w); border: none; margin-top: 1rem; border-radius: .375rem; cursor: pointer; display: flex; justify-content: center; gap: .5rem; }

/* Blog */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.btn-txt { color: var(--a); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.feat-card { background: var(--w); border-radius: .75rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.img-wrap { height: 20rem; position: relative; } .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-badge { position: absolute; top: 1rem; left: 1rem; background: var(--p); color: var(--w); padding: .25rem .75rem; border-radius: 99px; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.feat-card .content { padding: 2rem; }
.meta { display: flex; gap: 1rem; font-size: .875rem; color: var(--tm); margin-top: 1rem; }
.meta span { display: flex; align-items: center; gap: .3rem; }
.list-col { display: flex; flex-direction: column; gap: 1.5rem; }
.reg-card { display: flex; background: var(--w); border-radius: .75rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.img-sm { width: 12rem; height: 10rem; flex-shrink: 0; } .img-sm img { width: 100%; height: 100%; object-fit: cover; }
.reg-card .content { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; }
.cat-txt { color: var(--a); font-size: .75rem; font-weight: 600; text-transform: uppercase; }

.newsletter {
    background-color: #7f1d1d; /* Deep Red/Maroon */
    /* Optional: Subtle gradient to match the richness of the image */
    background-image: linear-gradient(to bottom, #991b1b, #7f1d1d);
    color: #ffffff;
    padding: 3.5rem 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Typography */
.newsletter h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.newsletter .subtitle {
    color: rgba(255, 255, 255, 0.8); /* Light gray/white text */
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Layout */
.newsletter form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 32rem;
    margin: 0 auto;
}

/* The Input Field - Dark transparent red look */
.newsletter input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border-radius: 0.375rem;
    /* This creates the dark-on-red effect from the image */
    background-color: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter input:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* The Button - Navy Blue Contrast */
.newsletter button {
    padding: 0.875rem 2rem;
    background-color: #1e3a8a; /* Dark Navy Blue */
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s;
    white-space: nowrap; /* Keeps text on one line */
}

.newsletter button:hover {
    background-color: #172554; /* Darker blue on hover */
    transform: translateY(-1px);
}



/* Contact */
.cta-sec {
    padding: 6rem 0;
    background: var(--w); /* White background for the section */
    overflow: hidden;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Form is slightly wider */
    gap: 6rem; /* Increased gap */
    align-items: start;
}

.txt-p { color: var(--a); } .txt-s { color: var(--s); }
.links a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    color: var(--p);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: 0.2s;
    .icon-sm { color: var(--a); } /* Blue icons */
    &:hover {
        background: #e2e8f0;
    }
}
.trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;

    div {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--tm);
        font-weight: 500;
        .icon-sm { color: var(--s); } /* Green checkmarks */
    }
}
.grp { margin-bottom: 1rem; } .grp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grp label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.grp input, .grp select, .grp textarea { width: 100%; padding: .75rem; border: 1px solid #e2e8f0; border-radius: .375rem; }
#sub-btn { width: 100%; padding: 1rem; background: var(--p); color: var(--w); border: none; border-radius: .375rem; cursor: pointer; display: flex; justify-content: center; gap: .5rem; }
.icon-suc { width: 4rem; height: 4rem; background: #dcfce7; color: var(--s); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* Keyframes */
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: up .6s ease forwards; } .animate-up { opacity: 0; animation: up .8s ease forwards; }
.delay-1 { animation-delay: .1s; } .delay-2 { animation-delay: .2s; } .delay-3 { animation-delay: .3s; }
@media(max-width: 768px) { .stats { grid-template-columns: 1fr; } .blog-grid, .cta-grid, .tool-body { grid-template-columns: 1fr; } .reg-card { flex-direction: column; } .img-sm { width: 100%; } .grid-3 { grid-template-columns: 1fr; } }


/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1.2fr 1fr; /* Featured gets slightly more space */
        gap: 3rem;
    }
}

/* 1. Featured Card Styles */
.feat-card {
    background: var(--w);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Animation Base */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Featured Hover Effect */
.feat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.img-wrap {
    height: 18rem;
    position: relative;
    overflow: hidden; /* Important for zoom effect */
    display: block;
}
@media(min-width: 1024px) { .img-wrap { height: 22rem; } }

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth easing */
}

/* Zoom Image on Card Hover */
.feat-card:hover .img-wrap img {
    transform: scale(1.05);
}

.cat-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.9); /* Dark background */
    color: var(--w);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.feat-card .content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feat-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.feat-card h3 a {
    color: var(--p);
    text-decoration: none;
    background-image: linear-gradient(var(--a), var(--a));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.feat-card:hover h3 a {
    background-size: 100% 2px;
    color: var(--p-l);
}

.feat-card p {
    color: var(--tm);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 2. Regular List Styles */
.list-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reg-card {
    display: flex;
    align-items: center;
    background: var(--w);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid transparent; /* Invisible border for hover */
    transition: all 0.3s ease;
    padding: 0.5rem; /* Inner spacing */
}

/* Regular Card Hover */
.reg-card:hover {
    background: var(--w);
    transform: translateX(5px); /* Slide right slightly */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.img-sm {
    width: 8rem;
    height: 6rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.img-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reg-card:hover .img-sm img {
    transform: scale(1.1);
}

.reg-card .content {
    padding: 0.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-txt {
    color: var(--a);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.reg-card h4 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.reg-card h4 a {
    color: var(--p);
    text-decoration: none;
    transition: color 0.2s ease;
}

.reg-card:hover h4 a {
    color: var(--a);
}

/* Meta Data Styling */
.meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
    align-items: center;
    font-weight: 500;
}

.meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta .dot {
    font-size: 1.5rem;
    line-height: 0;
    color: #cbd5e1;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .reg-card {
        flex-direction: row; /* Keep row on small screens if possible, or column if too tight */
        align-items: flex-start;
    }
    .img-sm {
        width: 6rem;
        height: 6rem;
    }
    .feat-card h3 { font-size: 1.5rem; }
    .det-grid {
    /* Changed from 400px to 280px to fit small phones, or simply 1fr */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
}


.landing-wrapper {
    overflow-x: hidden; /* Contains animations within viewport */
}

/* Fix for the Service Detail Grid which was too wide (400px) for mobile */


/* =========================================
   MEDIA QUERIES (Max-width: 991px - Tablets & Mobile)
   ========================================= */
@media (max-width: 991px) {
    /* Typography Scaling */
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.75rem; }
    
    /* Structure */
    .section { padding: 3rem 0; }
    .header-center { margin-bottom: 2.5rem; }
    
    /* Hero Adjustments */
    .hero {
        min-height: auto;
        padding: 8rem 0 5rem; /* More padding top for nav, less bottom */
        text-align: center;
    }
    
    .hero-content { padding-top: 0; }
    
    .cta-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .hero .btn { width: 100%; }
    
    /* Stats */
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .stat .val { font-size: 1.75rem; }
    
    /* Contact Section Stacking */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Calculator Tools Grid */
    .tool-body, 
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =========================================
   MEDIA QUERIES (Max-width: 768px - Smartphones)
   ========================================= */
@media (max-width: 768px) {
    
    /* Tighter container padding */
    .container { padding: 0 1.25rem; }

    /* Hero Typography */
    .hero h1 { font-size: 2.25rem; line-height: 1.2; }
    .subtitle { font-size: 1.125rem; margin-bottom: 2rem; }
    
    /* Stack Stats vertically on very small screens */
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Categories */
    .cat-grid {
        grid-template-columns: 1fr; /* Force single column */
    }
    
    /* Service Cards (Problems/Solutions) */
    .srv-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .prob-sol {
        grid-template-columns: 1fr; /* Stack Problem/Solution */
        gap: 2rem;
    }
    
    /* Tools & Calculators */
    .tool-view { padding: 1.25rem; }
    
    .results .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .results .row span:last-child {
        font-weight: 700;
        font-size: 1rem;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Featured Blog Card */
    .img-wrap { height: 14rem; }
    .feat-card .content { padding: 1.5rem; }
    .feat-card h3 { font-size: 1.5rem; }
    
    /* Regular Blog List */
    .reg-card {
        flex-direction: column;
    }
    .img-sm {
        width: 100%;
        height: 12rem;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .reg-card .content { padding: 1rem 0.5rem; }
    
    /* Contact Form Trust badges */
    .trust {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .newsletter {
        padding: 2.5rem 1.5rem;
    }
    
    .newsletter h3 {
        font-size: 1.5rem;
    }

    .newsletter form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter input, 
    .newsletter button {
        width: 100%;
    }
    
    /* iOS Input Zoom Fix: Inputs must be 16px to prevent auto-zoom */
    input, select, textarea {
        font-size: 16px !important;
    }
}


/* Enhanced Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card Container */
.tool-card-enhanced {
    background: var(--w);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--a);
}

/* Make the whole card clickable */
.tool-link-wrap {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Media Area (Image or Icon) */
.tool-media {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-media.has-bg {
    background: var(--p);
}

/* Image Handling */
.media-img {
    width: 100%;
    height: 100%;
}

.media-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom Effect on Hover */
.tool-card-enhanced:hover .media-img img {
    transform: scale(1.08);
}

/* Fallback Icon Area */
.tool-icon-lg {
    width: 4rem;
    height: 4rem;
    background: var(--w);
    color: var(--a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* Content Area */
.tool-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tool-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--p);
}

.tool-content p {
    color: var(--tm);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes button down */
}

/* Footer Link Area */
.tool-ft-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    color: var(--a);
    font-weight: 600;
    font-size: 0.9rem;
}

.icon-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.tool-card-enhanced:hover .icon-arrow {
    background: var(--a);
    color: var(--w);
    transform: translateX(5px);
}

/* 1. INCREASE TITLE SIZE */
    #servicii .header-center h2 {
        font-size: 3rem; /* Increased from default (usually around 2rem) */
        font-weight: 700;
        line-height: 1.1;
    }

    /* 2. DEFINE COLORS FOR SECTIONS */

    /* --- Problems (Red/Orange) --- */
    .col-prob .lbl-prob {
        color: #dc2626; /* Strong Red */
        font-weight: 600;
    }
    /* Color the bullet point span inside problems list */
    .col-prob ul li span {
         color: #dc2626;
         font-weight: bold;
    }

    /* --- Benefits (Blue) --- */
    .col-ben .lbl-ben {
        color: #2563eb; /* Bright Blue */
        font-weight: 600;
        display: block;
        margin-bottom: 0.5rem;
        font-size:1.25rem;
    }
    /* Color the plus sign span inside benefits list */
    .col-ben ul li span {
         color: #2563eb;
         font-weight: bold;
    }

    /* --- Solutions (Green) --- */
    .col-sol .lbl-sol {
        color: #16a34a; /* Green */
        font-weight: 600;
    }
    /* Color the checkmark span inside solutions list */
    .col-sol ul li span {
         color: #16a34a;
         font-weight: bold;
    }

.cat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Left content */
.cat-content {
    flex: 1;
    z-index: 2;
}

/* Right image */
.cat-image {
    width: clamp(140px, 30%, 320px);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    position: relative;
}

.cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;

    image-rendering: auto;
    transform: translateZ(0);
    backface-visibility: hidden;

    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Hover effect */
.cat-card:hover .cat-image img {
    transform: scale(1.05);
    opacity: 1;
}

/* Background and Container */
.hiw-section {
    background-color: #fff9f2; /* Light beige background */
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
}

.hiw-container {
    width:80%;
    margin: 0 auto;
}

/* Header Styling */
.hiw-header {
    margin-bottom: 50px;
}

.hiw-badge {
    display: inline-block;
    background-color: #303C82; /* Pale orange bg */
    color: #fff; /* Strong orange text */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hiw-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.hiw-subtitle {
    color: #777;
    font-size: 1.1rem;
    margin: 0;
}

/* Steps Wrapper & Line */
.hiw-steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative; /* For positioning the line */
    gap: 20px;
}

/* The connecting orange line */
.hiw-line {
    position: absolute;
    top: 45px; /* Adjust to hit center of icon box */
    left: 50px; /* Start inside first box */
    right: 50px; /* End inside last box */
    height: 1px;
    background-color: #303C82;
    z-index: 0;
}

/* Individual Step Item */
.hiw-step-item {
    flex: 1;
    position: relative;
    z-index: 1; /* Sit above the line */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icon Box Styling */
.hiw-icon-box-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
}

.hiw-icon-box {
    width: 100%;
    height: 100%;
    background-color: #303C82;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Soft shadow */
}

.hiw-svg {
    width: 32px;
    height: 32px;
    color: #fff; /* Orange icon color */
}

/* Number Badge (1, 2, 3...) */
.hiw-step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background-color: #303C82;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #fff; /* White ring around number */
}

/* Content Styling */
.hiw-content h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
}

.hiw-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    padding: 0 10px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .hiw-steps-wrapper {
        flex-direction: column;
    }

    .hiw-line {
        /* Turn horizontal line into vertical line for mobile, or hide it */
        display: none; 
    }
    
    .hiw-step-item {
        margin-bottom: 40px;
    }
}

.form-card {
  background: var(--w);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  max-width: 720px;
  margin: auto;
}

.cf7-card {
  background: transparent;
  padding: 0;
}

.cf7-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
  color: #1e3a8a;
  font-weight: 700;
}

.cf7-subtitle {
  margin-bottom: 32px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.cf7-row {
  margin-bottom: 20px;
}

/* Style all CF7 form elements */
.cf7-row input[type="text"],
.cf7-row input[type="email"],
.cf7-row input[type="tel"],
.cf7-row select,
.cf7-row textarea {
  width: 100%;
  padding: 14px 16px;
  border-color: #3b82f6;
  border-style: solid;
  border-width: 2px;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #ffffff;
  font-family: inherit;
}

.cf7-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* Focus states */
.cf7-row input[type="text"]:focus,
.cf7-row input[type="email"]:focus,
.cf7-row input[type="tel"]:focus,
.cf7-row select:focus,
.cf7-row textarea:focus {
  outline: none;
  border-color: #3b82f6;
  border-style: solid;
  border-width: 5px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hover states */
.cf7-row input[type="text"]:hover,
.cf7-row input[type="email"]:hover,
.cf7-row input[type="tel"]:hover,
.cf7-row select:hover,
.cf7-row textarea:hover {
  border-color: #cbd5e1;
}

/* Placeholder styling */
.cf7-row input::placeholder,
.cf7-row textarea::placeholder {
  color: #94a3b8;
}

/* Select dropdown styling */
.cf7-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%233b82f6' viewBox='0 0 20 20'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
  cursor: pointer;
}

/* Submit button */
.cf7-row input[type="submit"],
.cf7-row .cf7-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  width: 100%;
}

.cf7-row input[type="submit"]:hover,
.cf7-row .cf7-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.cf7-row input[type="submit"]:active,
.cf7-row .cf7-btn:active {
  transform: translateY(0);
}

/* Two columns layout */
.cf7-row > .cf7-col {
  width: 46%;
  display: inline-block;
  vertical-align: top;
}

.cf7-row > .cf7-col:first-child {
  margin-right: 4%;
}

/* CF7 validation errors */
.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.wpcf7-not-valid {
  border-color: #ef4444 !important;
}

/* CF7 response output */
.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.wpcf7-mail-sent-ok {
  background: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: #fee2e2;
  border: 2px solid #ef4444;
  color: #991b1b;
}

/* CF7 spinner */
.wpcf7 form.submitting .wpcf7-submit {
  opacity: 0.7;
  cursor: not-allowed;
}

.wpcf7-spinner {
  margin-left: 12px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .form-card {
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
  }

  .cf7-card h2 {
    font-size: 24px;
  }

  .cf7-subtitle {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .cf7-row > .cf7-col {
    width: 100%;
    display: block;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .cf7-row > .cf7-col:last-child {
    margin-bottom: 0;
  }

  .cf7-row input[type="submit"],
  .cf7-row .cf7-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}

