:root {
    /* Base Variables (Can be overridden by PHP inline styles) */
    --primary: #2563eb;
    --secondary: #1e40af;
    --topbar-bg: #1e3a8a;
    --orange: #ea580c;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Layout */
    --container-width: 1300px;
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --topbar-bg: #020617;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================== Top Bar (Ticker Style) ================== */
.top-bar {
    background-color: var(--topbar-bg);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 0.6rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
    padding: 0;
    display: flex;
    align-items: center;
}
.top-bar-ticker {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    padding-left: 3rem;
    animation: ticker 35s linear infinite;
}
.top-bar-ticker:hover {
    animation-play-state: paused;
}
.top-bar-ticker span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.top-bar-ticker .highlight-text {
    color: #fde047; /* Yellow highlight for announcements */
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* ================== Navbar ================== */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links a.nav-item {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.nav-links a.nav-item.active {
    color: var(--primary);
}
.nav-links a.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.nav-links a.nav-item:hover {
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}
/* Bridge the gap so hover doesn't break when mouse moves down */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 10px;
}
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: rotate(45deg);
}
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}
.dropdown-content a {
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-icon {
    background: var(--bg-main);
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: var(--text-main);
}
.btn-icon:hover {
    background: var(--border);
}

/* ================== Buttons ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-size: 0.9rem;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary);
    color: white !important;
}
.btn-primary:hover {
    background-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
body.dark-mode .btn-primary {
    color: #0f172a !important; /* Ensure dark text on bright buttons */
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main) !important;
}
.btn-outline:hover {
    background: var(--border);
}
.btn-orange {
    background-color: var(--orange);
    color: white !important;
}
.btn-orange:hover {
    background-color: #c2410c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}
.btn-pill {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
}

/* ================== Hero Redesign ================== */
.hero-wrapper {
    background-color: var(--bg-card); /* White bg */
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 5rem 0;
    align-items: center;
}
.hero-content {
    padding-right: 2rem;
}

/* ================== Hero Premium Immersive Layout ================== */
.hero-premium {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
}
.hero-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}
.hero-premium .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.hero-premium-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-premium-content h1 .highlight {
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-premium-content p.lead {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.hero-premium .hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}
.hero-premium .stat-item h3 {
    color: white;
    font-size: 2.5rem;
}
.hero-premium .stat-item p {
    color: #cbd5e1;
    font-size: 1rem;
}

/* ================== Hero Corporate (Left-Aligned) Layout ================== */
.hero-corporate {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
}
.hero-corporate::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0) 100%);
    z-index: 1;
}
.hero-corporate .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-corporate-content {
    max-width: 700px;
}
.hero-corporate-content h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-corporate-content h1 .highlight {
    color: #fde047;
}
.hero-corporate-content p.lead {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-corporate .hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.hero-corporate .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
}
.hero-corporate .stat-item h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}
.hero-corporate .stat-item p {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Left Content */
.badge-soft {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-content h1 .highlight {
    color: var(--primary);
}
.hero-content p.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Right Image (Glassmorphism) */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
body.dark-mode .glass-badge {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}
.glass-badge.top-left {
    top: 2rem;
    left: -1rem;
}
.glass-badge.bottom-right {
    bottom: 2rem;
    right: -1rem;
}
.glass-icon {
    width: 40px;
    height: 40px;
    background: #fef08a; /* Goldish */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.glass-icon.orange {
    background: #fed7aa;
}
.glass-text h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}
.glass-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================== Quick Services ================== */
.quick-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: -3rem; /* Overlap hero */
    position: relative;
    z-index: 20;
    padding-bottom: 4rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.service-card:hover h4 {
    color: var(--primary) !important;
}
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.service-icon.blue { background: #dbeafe; color: #2563eb; }
.service-icon.green { background: #dcfce7; color: #16a34a; }
.service-icon.orange { background: #ffedd5; color: #ea580c; }
.service-icon.purple { background: #f3e8ff; color: #9333ea; }

.service-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.service-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================== General Sections ================== */
.section-title {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    font-weight: 800;
    color: var(--text-main);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ================== Contact Section ================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 2rem;
    margin-top: 2rem;
}
.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-item-icon {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.2rem;
}
.contact-item-text h5 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.contact-item-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Admin/Forms keep using existing CSS */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-content { padding-right: 0; }
    .quick-services { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-actions { display: none; } /* Simplified mobile for now */
    .card[style*="grid-template-columns: 1fr 3fr;"] { grid-template-columns: 1fr !important; text-align: center; padding: 2rem !important; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .quick-services { grid-template-columns: 1fr; }
    .top-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Article Content HTML Formatting */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}
