:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --secondary-color: #0891b2; /* Tech Cyan */
 --accent-color: #4a5568; /* Steel Gray */
 --text-dark: #1a202c;
 --text-light: #4a5568;
 --bg-light: #f7fafc;
 --bg-white: #ffffff;
 --border-color: #e2e8f0;
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

 --font-main: 'Inter', sans-serif;
 --font-display: 'Playfair Display', serif;
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-main);
 font-size: 16px;
 line-height: 1.7;
 color: var(--text-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-display);
 font-weight: 700;
 color: var(--text-dark);
 line-height: 1.3;
}

h1 { font-size: clamp(3rem, 10vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

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

a:hover {
 color: var(--secondary-color);
}

img {
 max-width: 100%;
 height: auto;
 display: block;
}

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

.section {
 padding: 80px 0;
}
.section-light {
 background-color: var(--bg-light);
}

.section-header {
 margin-bottom: 48px;
}

.section-header.centered {
 text-align: center;
 max-width: 750px;
 margin-left: auto;
 margin-right: auto;
}

.section-label {
 display: inline-block;
 font-family: var(--font-main);
 font-size: 0.8rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1px;
 color: var(--primary-color);
 margin-bottom: 16px;
}

.section-title {
 margin-bottom: 16px;
}

.section-subtitle {
 font-size: 1.1rem;
 max-width: 600px;
 margin: 0 auto;
}

/* Editorial Layout Header */
.header {
 width: 100%;
 background: var(--bg-white);
 border-bottom: 1px solid var(--border-color);
 position: sticky;
 top: 0;
 z-index: 1000;
}

.top-bar {
 background: var(--text-dark);
 color: white;
 padding: 8px 0;
 font-size: 0.8rem;
}

.top-bar-inner {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}

.main-header {
 display: flex;
 flex-direction: column;
 align-items: center;
 padding: 24px;
}

.nav-logo {
 font-family: var(--font-display);
 font-size: 2.5rem;
 font-weight: 900;
 color: var(--text-dark);
 margin-bottom: 16px;
 letter-spacing: 1px;
}
.nav-logo:hover {
 color: var(--primary-color);
}

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
 font-family: var(--font-main);
 font-weight: 500;
}
.nav-links a {
 color: var(--text-light);
 padding: 8px 4px;
 position: relative;
 text-transform: uppercase;
 font-size: 0.9rem;
 letter-spacing: 0.5px;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--primary-color);
 transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
 width: 100%;
}
.nav-links a.active {
 color: var(--text-dark);
 font-weight: 700;
}

.nav-toggle { display: none; }

/* Editorial Hero */
.hero-editorial {
 background: var(--bg-white);
 padding: 100px 0;
 position: relative;
 overflow: hidden;
}

.hero-content {
 max-width: 800px;
 margin: 0 auto;
 text-align: center;
}

.hero-byline {
 font-family: var(--font-main);
 font-size: 0.9rem;
 color: var(--accent-color);
 text-transform: uppercase;
 letter-spacing: 1px;
 margin-bottom: 24px;
}

.hero-editorial h1 {
 font-weight: 900;
 line-height: 1.1;
 margin-bottom: 24px;
}

.drop-cap {
 font-size: 1.2em;
 float: left;
 line-height: 0.8;
 margin-right: 0.05em;
 color: var(--primary-color);
}

.hero-subtitle {
 font-size: 1.2rem;
 line-height: 1.8;
 max-width: 650px;
 margin: 0 auto 32px;
}

.hero-actions {
 display: flex;
 justify-content: center;
 gap: 16px;
 margin-top: 32px;
}

.hero-accent-image {
 position: absolute;
 bottom: 20px;
 right: 20px;
 width: 150px;
 height: 100px;
 object-fit: cover;
 border: 4px solid white;
 box-shadow: var(--shadow-lg);
 display: block;
}

@media(max-width: 768px){
 .hero-accent-image { display: none; }
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 12px 28px;
 font-family: var(--font-main);
 font-weight: 700;
 font-size: 0.9rem;
 border-radius: 4px;
 cursor: pointer;
 transition: var(--transition);
 text-align: center;
 border: 2px solid transparent;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
 border-color: var(--primary-color);
}
.btn-primary:hover {
 background-color: var(--secondary-color);
 border-color: var(--secondary-color);
 color: var(--bg-white);
 transform: translateY(-2px);
}

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

.btn.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* Newspaper Column Layout */
.column-layout {
 max-width: 900px;
}
.newspaper-columns {
 column-count: 2;
 column-gap: 40px;
 text-align: justify;
}
.newspaper-columns p { margin-bottom: 1em; }

@media (max-width: 768px) {
 .newspaper-columns {
 column-count: 1;
 }
}

/* Masonry Grid */
.masonry-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 gap: 24px;
}

.masonry-item {
 background: var(--bg-white);
 border: 1px solid var(--border-color);
 break-inside: avoid;
 transition: var(--transition);
}
.masonry-item:hover {
 box-shadow: var(--shadow-md);
 transform: translateY(-5px);
}
.masonry-item.tall {
 grid-row: span 2;
}
.masonry-img {
 width: 100%;
 height: 200px;
 object-fit: cover;
}
.masonry-item.tall .masonry-img {
 height: 100%;
 object-fit: cover;
}

.masonry-content {
 padding: 24px;
}
.masonry-content h3 {
 margin-bottom: 12px;
 font-size: 1.25rem;
}
.card-link {
 display: inline-block;
 margin-top: 16px;
 font-weight: 700;
 text-transform: uppercase;
 font-size: 0.8rem;
}

/* In-Depth/Long-Form Section */
.in-depth-section .long-form-content {
 max-width: 800px;
 margin: 0 auto;
}
.pull-quote {
 margin: 40px auto;
 padding-left: 20px;
 border-left: 4px solid var(--primary-color);
}
.pull-quote blockquote {
 font-family: var(--font-display);
 font-size: 1.5rem;
 font-weight: 700;
 line-height: 1.4;
 color: var(--text-dark);
}

/* Testimonial Callouts */
.testimonial-callouts {
 display: grid;
 gap: 40px;
 max-width: 900px;
 margin: 0 auto;
}
.testimonial-item {
 position: relative;
 padding: 20px;
}
.testimonial-item::before {
 content: '“';
 position: absolute;
 top: -10px;
 left: 0;
 font-family: var(--font-display);
 font-size: 5rem;
 color: var(--primary-color);
 opacity: 0.1;
 z-index: -1;
}
.testimonial-text {
 font-size: 1.1rem;
 font-style: italic;
 margin-bottom: 16px;
 color: var(--text-dark);
}
.testimonial-author {
 font-weight: 700;
 color: var(--text-dark);
}

/* Archive Grid */
.archive-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 24px;
}
.archive-card {
 display: block;
 color: var(--text-dark);
 border: 1px solid var(--border-color);
 transition: var(--transition);
}
.archive-card:hover {
 box-shadow: var(--shadow-lg);
 border-color: var(--primary-color);
}
.archive-img {
 width: 100%;
 height: 180px;
 object-fit: cover;
}
.archive-content {
 padding: 20px;
}
.archive-category {
 display: inline-block;
 font-size: 0.75rem;
 text-transform: uppercase;
 font-weight: 700;
 color: var(--accent-color);
 margin-bottom: 8px;
}
.archive-content h4 {
 font-size: 1.1rem;
}
.centered-cta { text-align: center; margin-top: 48px; }

/* Subscription Section */
.subscription-section {
 background-color: var(--text-dark);
 color: white;
 padding: 60px 0;
}
.subscription-section .section-title, 
.subscription-section .section-subtitle,
.subscription-section .section-label {
 color: white;
}
.subscription-form {
 display: flex;
 max-width: 500px;
 margin: 32px auto 0;
 gap: 10px;
}
.subscription-form input {
 flex-grow: 1;
 padding: 14px 20px;
 border: 1px solid var(--accent-color);
 background: #fff;
 border-radius: 4px;
 font-size: 1rem;
}

/* Editorial Footer */
.footer-editorial {
 background: var(--bg-light);
 border-top: 1px solid var(--border-color);
 padding: 40px 0;
 text-align: center;
 position: relative;
 margin-top: 80px;
}
.back-to-top {
 position: absolute;
 top: -20px;
 left: 50%;
 transform: translateX(-50%);
 width: 40px;
 height: 40px;
 background: var(--primary-color);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 box-shadow: var(--shadow-md);
}
.back-to-top:hover {
 background: var(--secondary-color);
}
.footer-brand-centered {
 font-family: var(--font-display);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
 margin-bottom: 20px;
}
.footer-horizontal-links {
 display: flex;
 justify-content: center;
 flex-wrap: wrap;
 gap: 10px 15px;
 margin-bottom: 20px;
 font-size: 0.9rem;
}
.footer-horizontal-links a { color: var(--text-light); }
.footer-horizontal-links span { color: var(--border-color); }
.footer-contact-info, .footer-hours {
 font-size: 0.9rem;
 color: var(--text-light);
 margin-bottom: 15px;
}
.footer-contact-info a { color: var(--text-light); }
.footer-contact-info span { margin: 0 5px; }

.footer-copyright {
 font-size: 0.8rem;
 color: var(--accent-color);
 margin-top: 20px;
}

/* Mobile Menu */
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
 position: absolute;
 top: 24px;
 right: 24px;
}
.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background: var(--text-dark);
 margin: 6px 0;
 transition: var(--transition);
}
.mobile-menu {
 position: fixed;
 bottom: 0;
 left: 0;
 width: 100%;
 background: var(--text-dark);
 padding: 60px 30px 30px;
 transform: translateY(100%);
 transition: transform 0.4s ease-in-out;
 z-index: 999;
}
.mobile-menu.active {
 transform: translateY(0);
}
.mobile-menu nav ul {
 list-style: none;
 text-align: center;
}
.mobile-menu nav li {
 margin-bottom: 20px;
}
.mobile-menu nav a {
 color: white;
 font-size: 1.5rem;
 font-weight: 700;
}
.nav-toggle.active span:nth-child(1) {
 transform: rotate(-45deg) translate(-6px, 6px);
}
.nav-toggle.active span:nth-child(2) {
 opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
 transform: rotate(45deg) translate(-6px, -6px);
}

@media (max-width: 768px) {
 .nav-links { display: none; }
 .nav-toggle { display: block; }
 .main-header { padding: 24px 24px 16px; }
 .nav-logo { font-size: 2rem; }
}

/* About Page */
.content-section .image-content-split {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 48px;
 align-items: center;
}
.content-section .image-container img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}
@media (max-width: 768px) {
 .content-section .image-content-split { grid-template-columns: 1fr; }
}
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
}
.team-member-card {
 text-align: center;
}
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 16px;
 border: 4px solid var(--bg-white);
 box-shadow: var(--shadow-md);
}
.team-member-name {
 font-size: 1.2rem;
 margin-bottom: 4px;
}
.team-member-title {
 color: var(--primary-color);
 font-weight: 700;
 margin-bottom: 8px;
 font-size: 0.9rem;
}
.team-member-bio { font-size: 0.95rem; }

.timeline-editorial {
 max-width: 800px;
 margin: 0 auto;
 position: relative;
 padding: 20px 0;
}
.timeline-editorial::before {
 content: '';
 position: absolute;
 left: 25px;
 top: 0;
 bottom: 0;
 width: 2px;
 background: var(--border-color);
}
.timeline-item {
 padding-left: 70px;
 position: relative;
 margin-bottom: 40px;
}
.timeline-number {
 position: absolute;
 left: 0;
 top: 0;
 width: 50px;
 height: 50px;
 background: var(--bg-white);
 border: 2px solid var(--border-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-family: var(--font-display);
 font-weight: 700;
 font-size: 1.2rem;
 color: var(--primary-color);
}
.timeline-content h3 { margin-bottom: 8px; }

/* Services Page */
.service-detail {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 48px;
 align-items: center;
}
.service-detail.reverse {
 grid-template-columns: 1fr 1fr;
}
.service-detail.reverse .service-media { order: 2; }
.service-media img {
 width: 100%;
 box-shadow: var(--shadow-lg);
}
.service-content ul {
 list-style: none;
 padding-left: 20px;
 margin-top: 20px;
}
.service-content li {
 position: relative;
 margin-bottom: 12px;
}
.service-content li::before {
 content: '';
 position: absolute;
 left: -20px;
 color: var(--primary-color);
 font-weight: 700;
}
.cta-section-inner {
 background-color: var(--bg-light);
 padding: 60px;
 text-align: center;
}
@media (max-width: 992px) {
 .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
 .service-detail.reverse .service-media { order: 1; }
}

/* Resources Page */
.resources-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
 gap: 30px;
}
.resource-card {
 border: 1px solid var(--border-color);
 transition: var(--transition);
}
.resource-card:hover {
 box-shadow: var(--shadow-lg);
 transform: translateY(-5px);
}
.resource-card img {
 height: 220px;
 width: 100%;
 object-fit: cover;
}
.resource-card-content { padding: 24px; }
.resource-category {
 font-size: 0.8rem;
 font-weight: 700;
 color: var(--primary-color);
 text-transform: uppercase;
 margin-bottom: 8px;
}
.resource-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.resource-meta {
 font-size: 0.8rem;
 color: var(--text-light);
 margin-top: 16px;
 display: block;
}
.case-study-list { max-width: 900px; margin: 0 auto; }
.case-study-item {
 padding: 30px;
 border: 1px solid var(--border-color);
}
.case-study-item strong { color: var(--text-dark); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
 border-bottom: 1px solid var(--border-color);
}
.faq-question {
 width: 100%;
 background: none;
 border: none;
 text-align: left;
 padding: 20px 0;
 font-size: 1.2rem;
 font-weight: 700;
 color: var(--text-dark);
 cursor: pointer;
 position: relative;
 padding-right: 30px;
}
.faq-question::after {
 content: '+';
 position: absolute;
 right: 0;
 top: 50%;
 transform: translateY(-50%);
 font-size: 1.5rem;
 color: var(--primary-color);
}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease;
}
.faq-answer p { padding: 0 0 20px; }
.faq-item.active .faq-answer { max-height: 300px; }

/* Contact Page */
.contact-page-layout {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 48px;
}
@media (max-width: 992px) {
 .contact-page-layout { grid-template-columns: 1fr; }
}
.contact-form-container h3, .contact-info-container h3 {
 margin-bottom: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 700;
 color: var(--text-dark);
}
.form-group input, .form-group textarea {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--border-color);
 border-radius: 4px;
 font-size: 1rem;
 font-family: var(--font-main);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 2px rgba(13, 79, 139, 0.2);
}
textarea { resize: vertical; }

.contact-details { margin-top: 24px; }
.contact-detail-item {
 display: flex;
 align-items: flex-start;
 gap: 16px;
 margin-bottom: 24px;
}
.contact-detail-item svg {
 width: 24px;
 height: 24px;
 color: var(--primary-color);
 flex-shrink: 0;
 margin-top: 4px;
}
.contact-detail-item strong {
 color: var(--text-dark);
 display: block;
 margin-bottom: 4px;
}
.section-map { padding: 0; }

/* Legal & Thank You Pages */
.legal-page, .thank-you-section {
 padding: 80px 0;
}
.legal-page .container {
 max-width: 800px;
}
.legal-page h1 { margin-bottom: 24px; }
.legal-page h3 { margin-top: 40px; margin-bottom: 16px; }
.legal-page p, .legal-page ul { margin-bottom: 16px; }
.legal-page ul { padding-left: 20px; }
.thank-you-content { text-align: center; padding: 60px 0; }
.thank-you-content h1 { font-size: 4rem; margin-bottom: 16px; }
.thank-you-content p { font-size: 1.2rem; margin-bottom: 32px; }

.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin-top: 20px;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
 font-weight: 700;
}

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--text-dark);
 color: white;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 1001;
}
#cookie-banner P {
 margin: 0;
 font-size: 0.9rem;
}
#cookie-banner a {
 color: var(--secondary-color);
 text-decoration: underline;
}
#cookie-banner > div {
 display: flex;
 gap: 10px;
}
@media (max-width: 768px) {
 #cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}