/* Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0066cc;
    --primary-dark: #003d7a;
    --primary-light: #e6f3ff;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #fff;
    --border: #e5e5e5;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font: 400 16px/1.6 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font: 700 1.8rem/1 'Inter';
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero & Sections */
.hero, .contact-hero, .services-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1, .contact-hero h1, .services-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p, .contact-hero p, .services-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-button, .service-cta, .submit-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button {
    background: var(--white);
    color: var(--primary);
}

.cta-button:hover, .service-cta:hover, .submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cta-button:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.1;
    overflow: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Sections */
.latest-updates, .services, .process-section {
    padding: 4rem 0;
    background: var(--bg);
}

.spotlight, .about, .additional-services, .contact-content {
    padding: 4rem 0;
    background: var(--white);
}

.mission, .services-cta {
    padding: 4rem 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

section h2, .latest-updates h2, .spotlight h2, .services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text);
}

.mission h2, .services-cta h2 {
    color: var(--white);
}

/* Grids */
.updates-grid, .services-grid, .spotlight-grid, .about-grid,
.services-featured, .services-grid-additional, .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.services-featured {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Update Cards */
.update-card, .service-card, .service-featured {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.service-featured {
    padding: 2.5rem;
    text-align: center;
    border-radius: 12px;
}

.update-card:hover, .service-card:hover, .service-featured:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-featured:hover {
    transform: translateY(-8px);
}

/* CMS-specific styles */
.update-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.update-category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.update-date {
    color: var(--text-light);
    font-weight: 500;
}

.update-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.read-time {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.spotlight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.publish-date {
    color: var(--text-light);
    font-size: 0.8rem;
}

.spotlight-item.featured {
    border: 2px solid var(--primary);
    background: var(--primary-light);
}

.spotlight-item.featured .spotlight-type {
    background: var(--primary);
    color: var(--white);
}

/* Loading states */
.content-loading {
    opacity: 0.6;
    pointer-events: none;
}

.content-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.service-card {
    text-align: center;
}

.service-icon, .service-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.update-card h3, .service-card h3, .service-featured h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.service-featured h2 {
    font-size: 1.8rem;
}

.update-card p, .service-card p, .service-featured > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Spotlight */
.spotlight-item {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.spotlight-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.spotlight-type {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font: 600 0.8rem/1 'Inter';
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.spotlight-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.spotlight-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.spotlight-link, .read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.spotlight-link:hover, .read-more:hover {
    color: var(--primary-dark);
}

/* Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 5px;
    font: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card, .additional-contact, .quick-contact {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.additional-contact, .quick-contact {
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-card h3, .additional-contact h3, .quick-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1rem 20px;
    border-top: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    .nav-menu { flex-direction: column; gap: 1rem; }
    .hero h1, .contact-hero h1, .services-hero h1 { font-size: 2.5rem; }
    .hero p, .contact-hero p, .services-hero p { font-size: 1.1rem; }
    .updates-grid, .services-grid, .spotlight-grid, .services-featured,
    .services-grid-additional, .process-grid { grid-template-columns: 1fr; }
    .contact-grid, .form-row, .contact-info-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}