:root {
    --primary-color: #0f62fe;
    /* IBM Blue - Modern & Trustworthy */
    --primary-dark: #0043ce;
    --primary-light: #4589ff;
    --accent-color: #f1c21b;
    /* Warning Yellow for accents */
    --accent-hover: #d2a106;

    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-footer: #1e293b;
    --text-footer: #ffffff;

    --text-main: #161616;
    --text-dark: #161616;
    --text-muted: #374151;
    --text-light: #ffffff;

    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 19px;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- Top Bar --- */
.top-bar {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d50 50%, #0f3460 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    padding: 8px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 40px;
}

.top-bar.hidden {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-greeting,
.top-bar-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-greeting i {
    color: #f1c21b;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: none;
    position: relative;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 0 rgba(15, 98, 254, 0.06);
}

header .header-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(15, 98, 254, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(15, 98, 254, 0.1);
    background: rgba(255, 255, 255, 0.97);
}

header.scrolled .header-container {
    height: 58px;
}

header.scrolled .logo img {
    height: 34px;
}

header.scrolled .site-tagline {
    display: none;
}

/* --- Header Bottom Animated Line --- */
.header-bottom-line {
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--primary-light) 25%,
            #a855f7 50%,
            var(--primary-light) 75%,
            var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: shimmer-line 4s ease-in-out infinite;
}

@keyframes shimmer-line {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
    position: relative;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.15), rgba(69, 137, 255, 0.08));
    z-index: -1;
    transition: all 0.3s ease;
}

.logo:hover .logo-wrapper::after {
    inset: -6px;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.25), rgba(69, 137, 255, 0.15));
}

.logo img {
    height: 42px;
    width: auto;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
    white-space: nowrap;
    line-height: 1.3;
}

.site-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.7;
    transition: opacity 0.3s;
    line-height: 1;
}

.logo:hover .site-tagline {
    opacity: 1;
}

/* --- Nav --- */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-categories {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-categories::-webkit-scrollbar {
    display: none;
}

.header-cat-item {
    padding: 7px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
    border: 1.5px solid transparent;
}

.header-cat-item i {
    font-size: 0.85em;
    color: var(--primary-light);
    transition: all 0.25s;
}

.header-cat-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cat-item:hover {
    color: var(--primary-color);
    background: rgba(15, 98, 254, 0.06);
}

.header-cat-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.header-cat-item:hover i {
    transform: translateY(-1px);
    color: var(--primary-color);
}

.header-cat-item.active {
    color: var(--primary-color);
    background: rgba(15, 98, 254, 0.08);
    font-weight: 700;
}

.header-cat-item.active::after {
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), var(--primary-light));
}

/* --- Blog Link Special --- */
.header-cat-item.blog-link {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white !important;
    border-color: transparent;
    border-radius: 25px;
    padding: 7px 20px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(15, 98, 254, 0.2);
}

.header-cat-item.blog-link i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.header-cat-item.blog-link::after {
    display: none;
}

.header-cat-item.blog-link:hover {
    background: linear-gradient(135deg, var(--primary-dark), #5a67d8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.35);
    color: white !important;
}

/* --- Mobile Menu Toggle (Animated Hamburger) --- */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(15, 98, 254, 0.06);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(15, 98, 254, 0.12);
    flex-shrink: 0;
    flex-direction: column;
    gap: 5px;
    padding: 11px 9px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.mobile-menu-toggle:hover .hamburger-line {
    background: white;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}


/* --- Mobile Sidebar --- */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    /* Hidden */
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.close-menu {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-menu:hover {
    background: #FF4D4D;
    color: white;
    transform: rotate(90deg);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-left: 5px;
    /* Scrollbar space */
    flex: 1;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-section-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 5px 0;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-left: 5px;
    /* Scrollbar space */
}

.sidebar-cat-item {
    padding: 15px 20px;
    border-radius: 12px;
    background-color: var(--bg-body);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sidebar-cat-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.sidebar-cat-item:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter overlay */
    backdrop-filter: blur(4px);
    /* Blur content behind */
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Search Box --- */
.search-box {
    background: white;
    padding: 10px;
    border-radius: 50px;
    /* Fully rounded */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 850px;
    display: flex;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.search-box input,
.search-box select {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    font-size: 1rem;
}

.search-box select {
    border-left: 1px solid var(--border-color);
    max-width: 200px;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 4px;
    box-shadow: 0 4px 15px rgba(15, 98, 254, 0.3);
}


.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 98, 254, 0.3);
}

/* --- Job Cards --- */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.job-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid var(--border-color);
    padding: 5px;
    background: #fff;
}

.job-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.job-info span {
    font-size: 1.05rem;
    color: #374151;
    font-weight: 600;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 1rem;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: var(--bg-body);
    color: #374151;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.job-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.job-date {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 600;
}

.apply-link {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
}

.apply-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Job Details Page --- */
.job-details-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.job-details-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.job-details-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.job-description-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.btn-apply-block {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(15, 98, 254, 0.4);
    transition: transform 0.2s;
}

.btn-apply-block:hover {
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-footer);
    color: var(--text-footer);
    padding: 50px 0;
    margin-top: 60px;
    font-size: 1.1rem;
}

.footer-content {
    text-align: center;
}

/* Font Size Controls */
.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.description-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.font-controls {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.font-btn {
    background: white;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Professional Job Description Styling */
.job-content {
    font-size: 100%;
    /* Default starting size */
    transition: font-size 0.2s ease;
}

.job-content h2,
.job-content h3,
.job-content h4 {
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
    display: inline-block;
    width: 100%;
    position: relative;
    font-weight: 700;
}

.job-content h2::after,
.job-content h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.job-content ul,
.job-content ol {
    padding-right: 20px;
    margin-bottom: 20px;
}

.job-content li {
    margin-bottom: 8px;
    position: relative;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.95;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {

    /* Top bar smaller on mobile */
    .top-bar {
        font-size: 0.72rem;
        padding: 5px 0;
    }

    .top-bar-container {
        padding: 0 15px;
    }

    /* Header */
    header {
        position: relative;
    }

    .header-glow {
        display: none;
    }

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px 15px 0;
        gap: 0;
        align-items: stretch;
    }

    /* Top row: logo + toggle side by side */
    .logo {
        justify-content: flex-start;
        order: 1;
    }

    .logo-wrapper {
        display: flex;
    }

    .logo-wrapper::after {
        inset: -2px;
        border-radius: 8px;
    }

    .logo img {
        height: 30px;
        border-radius: 6px;
    }

    .logo-text {
        gap: 0;
    }

    .site-name {
        font-size: 0.95rem;
    }

    .site-tagline {
        font-size: 0.6rem;
    }

    /* Hide hamburger - nav is always visible */
    .mobile-menu-toggle {
        display: none;
    }

    /* Nav scrolls horizontally */
    .main-nav {
        display: flex;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 6px 0 8px;
        border-top: 1px solid rgba(15, 98, 254, 0.06);
        margin-top: 8px;
        order: 3;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .header-categories {
        flex-wrap: nowrap;
        gap: 3px;
        padding-bottom: 2px;
    }

    .header-cat-item {
        font-size: 0.78rem;
        padding: 5px 10px;
        border-radius: 8px;
        white-space: nowrap;
        flex-shrink: 0;
        gap: 4px;
    }

    .header-cat-item::after {
        height: 2px;
        bottom: -1px;
    }

    .header-cat-item i {
        font-size: 0.75em;
    }

    .header-cat-item.blog-link {
        padding: 5px 12px;
        border-radius: 20px;
        box-shadow: 0 1px 6px rgba(15, 98, 254, 0.15);
    }

    /* Bottom line thinner on mobile */
    .header-bottom-line {
        height: 2px;
    }

    .search-box {
        flex-direction: column;
    }

    .job-details-header {
        padding: 20px;
    }

    .job-details-title {
        font-size: 1.5rem;
    }
}

/* =========================================
   Blog Page Styles
   ========================================= */

/* Blog Header with Animated Gradient */
.blog-header {
    background: linear-gradient(-45deg, #1E90FF, #1565C0, #42A5F5, #0D47A1);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
    box-shadow: 0 15px 50px rgba(30, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.blog-header h1 {
    margin: 0;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.blog-header p {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

/* Article Cards */
.article-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E90FF, #1565C0);
    opacity: 0;
    transition: 0.3s;
}

.article-card:hover {
    border-color: #1E90FF;
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(30, 144, 255, 0.2);
}

.article-card:hover::before {
    opacity: 1;
}

/* Image with Overlay Effect */
.image-wrapper {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .image-wrapper::after {
    opacity: 1;
}

.article-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

/* Content Area */
.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: all 0.4s ease;
    letter-spacing: -0.3px;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.article-meta {
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #4b5563;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.article-card:hover .read-more {
    gap: 8px;
}

/* Mobile Optimizations for Blog */
@media (max-width: 768px) {
    .blog-header {
        padding: 60px 20px;
        border-radius: 0 0 30px 30px;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }

    .blog-header p {
        font-size: 1.1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FAQ Section Styles
   ========================================= */
.faq-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    background: var(--bg-light);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
    padding-bottom: 20px;
    padding-top: 10px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Back to Top Button --- */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* =========================================
   Welcome Section & Random Message
   ========================================= */
.welcome-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 30px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 98, 254, 0.05);
    /* Fixed Beautiful Border */
    border: 3px solid rgba(15, 98, 254, 0.15);
    /* Substantial fixed border */
    outline: 2px solid rgba(255, 255, 255, 0.8);
    /* Inner light outline for depth */
    outline-offset: -5px;
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.welcome-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    will-change: transform, opacity;
}

.random-message-box {
    background: white;
    padding: 25px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Stylish Fixed Border */
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

.random-message-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(15, 98, 254, 0.2);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.message-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.8rem;
    }

    .welcome-section {
        padding: 40px 20px;
        border-radius: 20px;
        border-width: 2px;
        /* Slightly thinner on mobile */
    }

    .random-message-box {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-radius: 20px;
    }

}

/* --- Footer Grid Layout --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: right;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-desc {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
}

.footer-list a:hover {
    color: white;
    transform: translateX(-5px);
    text-decoration: none;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center !important;
    }
}

/* --- Global Form Styles --- */
.form-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.form-control,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 98, 254, 0.2);
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success::before {
    content: '✓';
    background: #065f46;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* --- Tool Pages Styles --- */
/* Common Variables for Tools */
:root {
    --gradient-main: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.tool-card {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto 50px auto;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-main);
}

.tool-card h1 {
    color: var(--primary-dark);
    margin: 0 0 15px 0;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
}

.tool-card .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Grid for Tools */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group.full-width {
    grid-column: span 2;
}

/* Tool Buttons */
.calc-btn,
.convert-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
    grid-column: span 2;
    box-shadow: 0 10px 20px rgba(30, 144, 255, 0.3);
    text-align: center;
}

.calc-btn:hover,
.convert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.4);
}

/* Result Box */
.result-box {
    margin-top: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #bae6fd;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
}

.result-row:last-child {
    border-bottom: none;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.result-label {
    color: var(--text-muted);
}

.result-value {
    font-weight: 700;
    direction: ltr;
    color: var(--text-main);
}

/* Result Styles for End of Service */
.result-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.result-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 10px 0;
    direction: ltr;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.result-note {
    font-size: 1rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    text-align: center;
}

/* SEO Section */
.seo-section {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-top: 50px;
}

.seo-section h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.seo-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
}

.seo-section h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.seo-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-card {
    background: #f8fafc;
    border-right: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.info-card ul {
    margin: 0;
    padding-right: 20px;
}

.info-card li {
    margin-bottom: 10px;
}

/* Tool Mobile Responsive */
@media (max-width: 768px) {
    .tool-card {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .date-inputs {
        flex-direction: column;
    }
}