/* Loganix SEO Agency - Custom Styles */

/* Universal CSS System */
html {
    font-size: 87.5%; /* 14px base for rem calculations */
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Verdana', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Fluid Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Verdana', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(0.9rem, 1.8vw, 1.1rem); }

p {
    margin: 0 0 1rem 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
}

/* Color Variables */
:root {
    --primary-accent: #0153C8;
    --navbar-bg: #FFFFFF;
    --hero-bg: #E3F2FD;
    --text-color: #1E293B;
    --body-bg: #F8FAFC;
    --button-hover: #092D57;
    --footer-bg: #F1F5F9;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: calc(100% - 200px) 100%;
    background-position: right center;
    background-repeat: no-repeat;
    box-shadow: 0 0.14rem 0.71rem var(--shadow);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    background-color: white;
    z-index: 0;
}

.navbar .container {
    position: relative;
    z-index: 1;
}

/* Navbar decorative patterns */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 200px;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 100px 100px;
    background-position: 0 0, 50px 50px, 25px 25px;
    background-repeat: repeat;
    z-index: 0;
    opacity: 0.6;
    animation: navbarPattern 20s ease-in-out infinite;
}

@keyframes navbarPattern {
    0%, 100% {
        background-position: 0 0, 50px 50px, 25px 25px;
    }
    50% {
        background-position: 10px 10px, 60px 60px, 35px 35px;
    }
}

.navbar-brand {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    letter-spacing: 0.036rem;
    text-transform: uppercase;
    color: white !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #FFD700 !important;
}

.navbar-brand {
    color: var(--primary-accent) !important;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    z-index: 2;
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 8px;
    background-color: white;
}

.dropdown-item:hover {
    background-color: var(--hero-bg);
    color: var(--primary-accent);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0153C8 0%, #092D57 100%);
    color: white;
    padding: clamp(8rem, 15vh, 10rem) 0 clamp(4rem, 10vh, 6rem);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    background-size: clamp(3rem, 8vw, 4rem) clamp(3rem, 8vw, 4rem);
    z-index: 1;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.hero-section h1 {
    font-weight: 900;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    line-height: 1.3;
    font-family: 'Verdana', sans-serif;
    margin-left: 0;
}

.hero-section p {
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #092D57;
    padding: clamp(0.75rem, 2vh, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.036rem;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.btn-primary:hover {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #092D57;
    transform: translateY(-0.14rem);
    box-shadow: 0 0.29rem 1.07rem rgba(255, 215, 0, 0.3);
}

.btn-light {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary-accent);
    padding: clamp(0.75rem, 2vh, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.036rem;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.btn-light:hover {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: #fff;
    transform: translateY(-0.14rem);
    box-shadow: 0 0.29rem 1.07rem rgba(1, 83, 200, 0.3);
}

/* Sections */
.py-5 {
    padding: clamp(3rem, 8vh, 5rem) 0;
}

.bg-light {
    background-color: var(--hero-bg) !important;
}

/* Service Highlights Section */
.service-highlights {
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 50%, #f8fafc 100%);
    padding: clamp(4rem, 10vh, 6rem) 0;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: clamp(0.8rem, 2vh, 1.2rem);
    box-shadow: 0 0.36rem 1.79rem var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    border: 0.071rem solid #e9ecef;
    min-height: clamp(12rem, 15vh, 14rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 83, 200, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-0.71rem) scale(1.02);
    box-shadow: 0 1.07rem 2.5rem rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    margin-bottom: clamp(0.5rem, 1.5vh, 0.75rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon {
    width: clamp(4rem, 10vw, 6rem);
    height: clamp(4rem, 10vw, 6rem);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-accent);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    border-color: #FFD700;
}

/* Tool Cards - Smaller size for tools page */
.tool-card {
    min-height: clamp(12rem, 15vh, 14rem) !important;
    padding: clamp(0.8rem, 2vh, 1.2rem) !important;
}

.tool-card .icon {
    margin-bottom: clamp(0.3rem, 1vh, 0.5rem);
}

.tool-card h4 {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
    margin-bottom: clamp(0.3rem, 1vh, 0.5rem) !important;
}

.tool-card p {
    font-size: clamp(0.85rem, 2vw, 1rem) !important;
    margin-bottom: clamp(0.5rem, 1.5vh, 0.75rem) !important;
}

.tool-card ul {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem) !important;
}

/* Modern Tool Cards */
.tool-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.36rem 1.79rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 0.071rem solid #e9ecef;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.tool-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 83, 200, 0.03) 0%, rgba(255, 215, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tool-card-modern > * {
    position: relative;
    z-index: 2;
}

.tool-card-modern:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: 0 1.07rem 2.5rem rgba(0, 0, 0, 0.12);
}

.tool-card-modern:hover::before {
    opacity: 1;
}

.tool-card-modern .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-card-modern h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.tool-card-modern p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-card-modern .btn {
    margin-top: auto;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 0.36rem 1.79rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 0.071rem solid #e9ecef;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.07rem 2.5rem rgba(0, 0, 0, 0.12);
}

.feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-accent);
}

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    flex-grow: 1;
}

/* Popular Tool Cards */
.popular-tool-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.36rem 1.79rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 0.071rem solid var(--primary-accent);
    position: relative;
}

.popular-tool-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.07rem 2.5rem rgba(0, 0, 0, 0.12);
}

.popular-tool-card .popular-icon {
    font-size: 3rem;
    color: var(--primary-accent);
}

/* Hero Decoration */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Tab Navigation */
.nav-pills .nav-link {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: rgba(1, 83, 200, 0.1);
    color: var(--primary-accent);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--button-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 83, 200, 0.3);
}

/* Search Results */
.search-result-item {
    color: #333 !important;
}

.search-result-item .fw-bold {
    color: #1a1a1a !important;
}

.search-result-item .text-muted {
    color: #6c757d !important;
}

.search-result-item:hover {
    background-color: #f8f9fa !important;
}

.service-card h3, .service-card h4 {
    margin-bottom: clamp(0.3rem, 1vh, 0.5rem);
    color: var(--text-color);
    line-height: 1.3;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.service-card p {
    color: #64748b;
    margin-bottom: clamp(0.5rem, 1.5vh, 0.75rem);
    line-height: 1.4;
    flex-grow: 1;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3rem);
}

.section-title h2, .section-title h3 {
    color: var(--text-color);
    margin-bottom: clamp(0.75rem, 2vh, 1rem);
}

.section-title p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.feature-item .icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-item h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-item p {
    color: #64748b;
    margin-bottom: 0;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px var(--shadow);
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.testimonial-card .quote {
    font-size: 1.5rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #64748b;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .client-image {
    text-align: center;
    margin-bottom: 1rem;
}

.client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-accent);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .client-photo {
    transform: scale(1.1);
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--button-hover) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: clamp(0.75rem, 2vh, 1rem);
}

.cta-section p {
    margin-bottom: clamp(1.5rem, 4vh, 2rem);
    opacity: 0.9;
}

/* Footer */
footer {
    background-image: url('../images/footer image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    padding: clamp(2rem, 4vh, 3rem) 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

footer * {
    position: relative;
    z-index: 2;
    color: white !important;
}

footer h5, footer h6 {
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFD700 !important;
}

.social-icons svg {
    transition: transform 0.3s ease;
}

.social-icons a:hover svg {
    transform: scale(1.1);
}

/* Back to Top Button */
#backToTop {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    border-radius: 50%;
    width: clamp(3rem, 8vw, 3.5rem);
    height: clamp(3rem, 8vw, 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    bottom: clamp(1.5rem, 4vh, 2rem);
    right: clamp(1.5rem, 4vh, 2rem);
}

#backToTop:hover {
    background-color: var(--button-hover);
    transform: scale(1.1);
}


/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-section {
        padding: clamp(3rem, 10vh, 5rem) 0 clamp(2rem, 6vh, 4rem);
        min-height: 40vh;
    }

    .hero-section h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .hero-section p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    .section-title {
        margin-bottom: clamp(1.5rem, 4vh, 2rem);
    }

    .service-card {
        padding: clamp(0.8rem, 2.5vh, 1.2rem);
        min-height: clamp(12rem, 15vh, 14rem);
        margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
    }

    .tool-card-modern {
        padding: 1rem;
        min-height: 180px;
    }

    .tool-card-modern .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .tool-card-modern h5 {
        font-size: 1rem;
    }

    .tool-card-modern p {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }

    .feature-card .feature-icon {
        font-size: 2.5rem;
    }

    .popular-tool-card {
        padding: 1.5rem;
    }

    .nav-pills {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-pills .nav-link {
        margin: 0;
        text-align: center;
    }

    .cta-section h2, .section-title h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .navbar-brand {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .navbar-nav .nav-link {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        margin: 0 0.25rem;
    }

    /* Mobile navbar - full white background */
    .navbar {
        background: white !important;
        background-size: 100% 100% !important;
    }

    .navbar::before {
        display: none;
    }

    .navbar-nav .nav-link {
        color: #64748b !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--primary-accent) !important;
    }

    .navbar-brand {
        color: var(--primary-accent) !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-section {
        padding: clamp(4rem, 12vh, 6rem) 0 clamp(3rem, 8vh, 5rem);
    }

    .service-card {
        min-height: clamp(14rem, 18vh, 16rem);
    }
}

@media (min-width: 1201px) {
    .hero-section {
        padding: clamp(5rem, 15vh, 8rem) 0 clamp(4rem, 10vh, 6rem);
    }

    .service-card {
        min-height: clamp(16rem, 20vh, 18rem);
    }
}

/* Magazine Style Components */
.magazine-hero {
    position: relative;
    min-height: 70vh;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text-section {
    padding-left: 2rem;
}

.hero-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    margin-bottom: 1rem;
}

.badge-modern {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: left;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    text-align: left;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-container {
    position: relative;
    display: inline-block;
}

.hero-main-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.hero-main-image:hover {
    transform: rotate(-2deg) scale(1.05);
}

.hero-image-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FFD700;
    color: #092D57;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.magazine-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.decoration-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
    background-size: 60px 60px;
}

/* Featured Article */
.featured-article {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.magazine-featured-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.featured-header {
    padding: 2rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-badge {
    flex-shrink: 0;
}

.badge-featured {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
}

.featured-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e293b;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2rem;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-magazine-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-magazine-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.3);
    color: white;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Magazine Articles Grid */
.magazine-articles {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title-magazine {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0 auto;
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.magazine-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.magazine-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.magazine-article-card:hover .article-thumb {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 12px;
    left: 12px;
}

.article-category span {
    background: rgba(102,126,234,0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.article-read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

.article-stats {
    font-size: 0.85rem;
    color: #64748b;
}

/* Coming Soon Card */
.coming-soon-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px dashed #e2e8f0;
}

.coming-soon-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
    color: white;
}

.coming-soon-content .coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.coming-soon-content p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Load More Button */
.btn-magazine-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-magazine-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Magazine Responsive Styles */
@media (max-width: 768px) {
    .magazine-hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-text-section {
        padding-left: 0;
        text-align: left;
        order: 2; /* Text comes after image on mobile */
    }

    .hero-image-section {
        order: 1; /* Image comes first on mobile */
    }

    .hero-title {
        text-align: left !important;
    }

    .hero-subtitle {
        text-align: left !important;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    .hero-main-image {
        max-width: 280px;
    }

    .featured-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .featured-text {
        padding: 2rem;
        text-align: center;
    }

    .featured-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .magazine-article-card {
        margin-bottom: 1rem;
    }
}