/* Reset & Base Styles */
:root {
    --primary-color: #1a253a;
    /* Deep Navy */
    --secondary-color: #2c3e50;
    --accent-color: #c5a065;
    /* Muted Gold */
    --text-color: #333;
    --light-text: #f4f6f8;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --font-sans: 'Pretendard', 'Noto Sans KR', sans-serif;
    --font-serif: 'Noto Serif KR', serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utility */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #b08d55;
}

.btn-outline {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-gold {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Solid, dark navy background as requested */
    background-color: #1a253a;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle separator */
}

#navbar.scrolled {
    /* Maintain the same solid look, maybe add shadow */
    background-color: #1a253a;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(197, 160, 101, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: #fff;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

/* 왼쪽 - 저울 아이콘 (이미지) */
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* height removed, controlled by image */
}

.logo-img-custom {
    height: 68px;
    /* Matched to the total height of text block */
    width: auto;
    transition: var(--transition);
}

/* 오른쪽 - 텍스트 컨테이너 */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Increased gap spacing */
    justify-content: center;
    /* Center vertically against the logo image */
}

/* 상단 - 전문분야 (골드) */
.logo-specialty {
    font-size: 1.25rem;
    /* ~55% of bottom text size (2.3rem) */
    font-weight: 500;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: -0.5px;
    color: #c5a065;
    /* Gold accent color */
    line-height: 1.1;
    margin-left: 2px;
    transition: opacity 0.5s ease-in-out;
    /* For fade effect */
    opacity: 1;
    width: 320px;
    /* Fixed width to prevent layout shift */
    white-space: nowrap;
}

.logo-specialty.fade-out {
    opacity: 0;
}

/* 하단 - 이름 (화이트, 상단의 2배 크기) */
.logo-main {
    font-size: 2.3rem;
    /* Increased size to balance total height */
    font-weight: 400;
    font-family: 'Black Han Sans', sans-serif;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 3px 3px 0px #000000;
    -webkit-text-stroke: 1px #000000;
    margin-top: 0;
    /* Reset margin */
}

.nav-links {
    display: flex;
    gap: 40px;
    /* Increased gap from 30px */
    align-items: center;
    /* Ensure vertical alignment */
    margin-right: -20px;
    /* Align with the hero image's decorative border */
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    /* Slightly brighter */
    font-weight: 500;
    /* Increased weight from 400 */
    transition: var(--transition);
    font-size: 1.15rem;
    /* Increased from 0.95rem */
    letter-spacing: -0.5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

.btn-contact {
    border: 1px solid var(--accent-color);
    padding: 10px 26px;
    /* Increased padding */
    border-radius: 30px;
    /* More rounded */
    color: var(--accent-color) !important;
    font-weight: 600 !important;
    margin-left: 10px;
    /* Add slight separation for the CTA */
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: #fff !important;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #1a253a;
    /* Fallback */
    overflow: hidden;
    color: white;
    margin-top: 80px;
    /* Offset for fixed navbar */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
       Updated Gradient Strategy:
       1. Start with a brighter blue-grey tone overlay (rgba 44, 62, 80, 0.4)
       2. Use linear gradient with very low opacity to let the image pop
       3. Use the image (Original Cityscape with Yellow Lights)
    */
    background:
        linear-gradient(to bottom, rgba(30, 45, 70, 0.4), rgba(20, 30, 50, 0.6)),
        url('images/cityscape_yellow_text_removed.png');
    background-size: cover;
    background-position: center bottom;
    /* Bottom aligned per original */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 60px;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text .eyebrow {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.hero-text h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 4rem;
    line-height: 1.4;
    /* Increased line height */
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-top: -30px;
    /* Move up */
    margin-left: -10px;
    /* Stronger left alignment adjustment */
}

.hero-text p {
    font-size: 1.35rem;
    /* Increased from 1.15rem */
    color: rgba(255, 255, 255, 0.95);
    /* Slightly brighter for better contrast */
    margin-bottom: 45px;
    line-height: 1.8;
    /* Adjusted for larger text */
    font-weight: 400;
    /* Increased from 300 for better legibility */
    word-break: keep-all;
    /* Keep words together */
}

.hero-image {
    flex: 0 0 400px;
    /* Reduced size (was 450px) */
    position: relative;
    margin-top: -40px;
    /* Move image upward */
}

.image-frame {
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: -1;
}

.image-frame img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

/* Trust Section */
/* Trust Section (New Banner Style) */
#trust {
    padding: 80px 0 0 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    border-bottom: none;
}

.trust-badge {
    display: inline-block;
    background: linear-gradient(to right, #b88a44, #e5c585, #b88a44);
    padding: 10px 40px;
    border-radius: 50px;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(184, 138, 68, 0.4);
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.trust-card {
    border: 1px solid #b88a44;
    padding: 25px 30px;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.trust-card p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #e5c585;
    font-weight: 500;
}

.trust-cta {
    margin-bottom: 60px;
}

.trust-cta p {
    font-size: 1.15rem;
    font-weight: 300;
    color: #fff;
}

.trust-cta .highlight-red {
    color: #ff6b6b;
    font-weight: 700;
    margin-left: 5px;
}

.trust-phone-bar {
    background-color: #8c734b;
    padding: 15px 0;
    width: 100%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 768px) {
    .trust-grid {
        flex-direction: column;
        align-items: center;
    }

    .trust-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Philosophy Section */
.philosophy-text h2 {
    font-size: 1.75rem;
    /* Reduced to fit single line */
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
    word-break: keep-all;
    letter-spacing: -1px;
    /* Tighten spacing */
    line-height: 1.3;
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title .subtitle {
    font-size: 1.1rem;
    color: #666;
}

.underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    line-height: 1.4;
    font-family: var(--font-serif);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

.philosophy-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.philosophy-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 4px;
}

.philosophy-list i {
    color: var(--accent-color);
}

/* Career Section */
#career {
    background-color: #f8f9fa;
}

.career-timeline {
    display: flex;
    gap: 60px;
}

.timeline-column {
    flex: 1;
}

.timeline-column h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.timeline-list li {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.timeline-list .year {
    font-weight: 700;
    color: var(--accent-color);
    width: 80px;
    flex-shrink: 0;
}

.timeline-list .desc {
    color: #444;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.expertise-card {
    background: white;
    padding: 30px;
    border: 1px solid #eee;
    transition: var(--transition);
    border-radius: 4px;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.expertise-card:hover .icon-box {
    background-color: var(--primary-color);
    color: white;
}

.expertise-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-family: var(--font-serif);
}

.expertise-card p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
}

/* Contact Section */
#contact {
    background-color: var(--primary-color);
    color: white;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info>p {
    color: #ccc;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.info-item h3 {
    font-size: 1.8rem;
}

.map-area {
    flex: 1;
    background-color: #24344d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.map-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #111;
    color: #666;
    padding: 50px 0;
    text-align: center;
}

.footer-logo {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .logo-icon img {
        height: 40px !important;
        /* Adjust image height for tablet/mobile */
    }

    .logo-specialty {
        font-size: 0.75rem;
        letter-spacing: 0.8px;
    }

    .logo-main {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
    }

    .logo-specialty {
        font-size: 1.05rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger .line {
        width: 25px;
        height: 2px;
        background: white;
        margin: 5px 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .career-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .logo-icon img {
        height: 35px !important;
        /* Adjust image height for small mobile */
    }

    .logo-specialty {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .logo-main {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }

    .logo-specialty {
        font-size: 0.85rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Hero Fixes */
    #hero {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-bottom: 60px;
    }

    .hero-content {
        padding-top: 130px;
        /* Ensure text clears the navbar */
        flex-direction: column-reverse;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
    }

    .hero-image {
        margin-bottom: 40px;
        /* Add spacing between image and text */
    }

    .hero-text h1 {
        font-size: 2.1rem;
        margin-top: 0;
        word-break: keep-all;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

/* =========================================
   New Sections Styling (Philosophy, Why Us)
   ========================================= */

/* Philosophy Section */
#philosophy {
    background-color: #fdfbf7;
    /* Very light warm beige */
    padding: 100px 0;
}

.philosophy-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.philosophy-image {
    flex: 0 0 450px;
    position: relative;
}

.philosophy-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    filter: grayscale(10%);
    /* Slight vintage feel */
}

.philosophy-text {
    flex: 1;
}

.sub-title {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.philosophy-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.philosophy-text .text-content p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.8;
}

.philosophy-text .highlight-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    background: white;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.signature {
    text-align: right;
    margin-top: 30px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Why Us Section */
#why-us {
    background-color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: white;
    padding: 40px 30px;
    border: 1px solid #eee;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.why-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.card-number {
    font-size: 4rem;
    font-weight: 900;
    color: #f0f0f0;
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 0;
    font-family: var(--font-serif);
}

.why-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.why-card p {
    position: relative;
    z-index: 1;
    color: #666;
    line-height: 1.7;
}

/* Updated Contact Form Styling */
.contact-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-form-area {
    background: white;
    padding: 40px;
    border-radius: 4px;
    color: #333;
    flex: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-form-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.form-notice {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

.privacy-notice {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

/* Responsive Updates for New Sections */
@media (max-width: 992px) {
    .philosophy-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .philosophy-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .signature {
        text-align: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Media Spotlight Styling (Scrapbook Layout)
   ========================================= */

#media {
    background-color: #f1f3f5;
    padding: 100px 0;
}

.news-scrap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.news-item {
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

/* First item spans 2 columns for "Headline" effect */
.large-item {
    grid-column: span 2;
    background-color: #fff;
    border-top: 4px solid #ce160d;
    /* Chosun Red */
}

/* Logo Styling (CSS Only) */
.press-logo {
    display: inline-block;
    padding: 4px 12px;
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 20px;
    align-self: flex-start;
}

.chosun {
    font-family: 'Noto Serif KR', serif;
    color: #ce160d;
    /* Chosun Red */
    border: 1px solid #ce160d;
}

.yonhap {
    color: #2e6ab8;
    border: 1px solid #2e6ab8;
    font-family: sans-serif;
}

.lawtimes {
    background-color: #1a253a;
    color: white;
    font-family: 'Noto Serif KR', serif;
}

.sbs-ent,
.sbs-docu {
    background-color: #00468c;
    /* SBS Blue */
    color: white;
    border-radius: 20px;
    padding: 4px 15px;
}

/* Content Styling */
.news-content {
    flex: 1;
}

.news-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.news-item h3 {
    font-family: 'Noto Serif KR', serif;
    /* Newspaper Headline Font */
    font-size: 1.4rem;
    color: #111;
    line-height: 1.35;
    margin-bottom: 15px;
    word-break: keep-all;
}

.large-item h3 {
    font-size: 2rem;
    /* Bigger Headline for Featured News */
    line-height: 1.3;
}

.news-item p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.large-item p {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
}

/* Highlighting */
.highlight-pen {
    background: linear-gradient(120deg, rgba(247, 230, 0, 0.4) 0%, rgba(247, 230, 0, 0.4) 100%);
    box-shadow: inset 0 -4px 0 rgba(247, 230, 0, 0.3);
}

.bold {
    font-weight: 700;
    color: #000;
}

/* Responsive */
@media (max-width: 992px) {
    .news-scrap-grid {
        grid-template-columns: 1fr 1fr;
    }

    .large-item {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .news-scrap-grid {
        grid-template-columns: 1fr;
    }

    .large-item {
        grid-column: span 1;
    }

    .large-item h3 {
        font-size: 1.5rem;
    }
}

/* News Control Button */
.news-controls {
    text-align: center;
    margin-top: 30px;
}

.control-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: #f1f3f5;
    color: #333;
    border-color: #ccc;
}

.control-btn.paused {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* News Image Styling */
.news-image {
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
    border-radius: 4px;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

/* Highlight Styling for Names */
.highlight-pen {
    background-color: #ffeb3b;
    /* Bright yellow */
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}