/* Base Styles */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --dark-color: #14213d;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #38b000;
    --warning-color: #ffbe0b;
    --danger-color: #dc2f02;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --font-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-shadow: var(--font-shadow);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

html {
  scroll-behavior: smooth;
}

/* Header & Navigation */
.header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
    transition: var(--transition);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    color: var(--dark-color);
    transition: var(--transition);
}

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

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #2a75e8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background-color: #7028d7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    background: none;
    padding: 0.5rem 0;
    color: var(--primary-color);
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.btn-text:hover::after {
    width: 100%;
}

.arrow {
    display: inline-block;
    transition: var(--transition);
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

/* Hero Section */
.hero {
    padding: 12rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.animated-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: titleGradient 8s ease infinite;
    text-shadow: none;
    background-size: 200% auto;
}

@keyframes titleGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-animation {
    width: 100%;
    height: 100%;
    background-image: url('faces.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.circuit-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(58, 134, 255, 0.1),
        rgba(131, 56, 236, 0.1),
        rgba(255, 0, 110, 0.1)
    );
    transform: rotate(30deg);
    animation: circuitGlow 8s linear infinite;
}

@keyframes circuitGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-card.featured .article-image {
    height: 100%;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.tag.sponsored {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.article-card:hover .article-content h3 {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-color);
    margin: 1rem 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* Ad Banners */
/* Ad Banner Section */
.ad-banner {
    padding: 60px 0;
    background-color: var(--background-alt);
}

.ad-label {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start; /* This ensures grid items align at the top */
}

.ad-item {
    background-color: var(--background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Fill the grid cell height */
}

.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.ad-link {
    display: block;
    text-decoration: none;
}

.ad-image-wrapper {
    width: 100%;
    padding: 10px; /* Creates some space around the image */
}

.ad-image {
    width: 100%;
    height: auto; /* This preserves the original aspect ratio */
    display: block;
    border-radius: 5px; /* Slightly rounded corners for the image */
}
/* Ad Banner Styles */
.ad-banner-large {
    margin: 2rem 0;
    width: 100%;
}

.ad-content {
    position: relative;
}

.ad-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 1;
}

.ad-space {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.ad-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    min-height: 90px;
    padding: 1rem;
    text-align: center;
}

/* Default placeholder (no sponsor) */
.ad-placeholder.no-sponsor {
    flex-direction: column;
    gap: 0.5rem;
}

.ad-placeholder.no-sponsor span {
    color: #666;
    font-size: 1rem;
}

.ad-placeholder .btn-outline {
    padding: 0.4rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.ad-placeholder .btn-outline:hover {
    background-color: #333;
    color: #fff;
}

/* Sponsor image placeholder */
.ad-placeholder.with-sponsor {
    padding: 0;
    position: relative;
    display: block;
}

.sponsor-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.sponsor-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ad Grid for multiple sponsors */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.ad-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ad-link {
    display: block;
    text-decoration: none;
}

.ad-image-wrapper {
    width: 100%;
    padding: 10px;
}

.ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ad-placeholder {
        min-height: 70px;
    }
    
    .sponsor-image {
        max-height: 90px;
    }
}

@media (max-width: 576px) {
    .ad-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-placeholder.no-sponsor span {
        font-size: 0.85rem;
    }
    
    .ad-placeholder .btn-outline {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .sponsor-image {
        max-height: 70px;
    }
}

/* News Section */
.news-section {
    background-color: var(--light-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-content h3 {
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.news-card:hover .news-content h3 {
    color: var(--primary-color);
}

.news-meta {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-top: 1rem;
}

/* Industry Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insight-image {
    height: 200px;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.insight-card:hover .insight-image img {
    transform: scale(1.05);
}

.insight-content {
    padding: 1.5rem;
}

.insight-content h3 {
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.insight-card:hover .insight-content h3 {
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--dark-color);
    color: white;
}

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

.newsletter-content h2 {
    color: white;
}

.newsletter-form {
    margin-top: 2rem;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-consent input {
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-about span {
    color: var(--primary-color);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-nav ul, .footer-categories ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a, .footer-categories a, .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-nav a:hover, .footer-categories a:hover, .footer-contact a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .article-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}