:root {
    --obs-red: #B22234;    /* Official American flag red */
    --obs-blue: #3C3B6E;   /* Official American flag blue */
    --obs-white: #FFFFFF;
    --obs-light-gray: #f8f9fa;
    --obs-text: var(--obs-blue);
    --commercial-dark-blue: #1a2b47;
    --commercial-accent: #2d4b80;
    --commercial-light: #e8edf7;
    --commercial-text: #ffffff;
    --commercial-highlight: #ff6b6b;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--obs-text);
    background-color: var(--obs-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--obs-blue) 0%, var(--obs-red) 100%);
    color: var(--obs-white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    height: 50px;
    width: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

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

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.logo-link {
    color: var(--obs-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .nav-logo {
        height: 40px;
    }
    
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-brand {
        margin-bottom: 10px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 5px 0;
    }
}

/* Hero Section with Full-Height Logo */
.hero {
    background: linear-gradient(135deg, var(--obs-blue) 0%, var(--obs-red) 100%);
    color: var(--obs-white);
    padding: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
}

.hero .section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    min-height: 300px;
    margin-bottom: 0;  /* Reduced from default spacing */
    padding-bottom: 0;
}

.hero .section-logo {
    height: 300px;
    width: auto;
    margin: 0;
    object-fit: contain;
}

.hero-content {
    padding: 40px;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin: 0;
    flex: 1;
}

/* Hero Content and CTA Buttons */
.hero-content {
    padding: 40px;
    text-align: center;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--obs-red);
    color: var(--obs-white);
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #8B1A28;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero .section-header {
        min-height: 250px;
    }
    
    .hero .section-logo {
        height: 250px;
    }
}

@media (max-width: 968px) {
    .hero .section-header {
        min-height: 200px;
    }
    
    .hero .section-logo {
        height: 200px;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .hero .section-header {
        flex-direction: column;
        min-height: auto;
        padding: 20px;
        text-align: center;
    }
    
    .hero .section-logo {
        height: 180px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero .section-logo {
        height: 150px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .hero .section-header {
        padding: 15px;
    }
}

/* Channel Heroes */
.channel-hero.laffin-hero {
    background: var(--obs-red);
}

.channel-hero.commercial-hero {
    background: var(--commercial-dark-blue);
}

.channel-hero.commercial-hero .tagline {
    margin-top: 1rem;
    color: var(--commercial-light);
    font-size: 1.5em;
    text-align: center;
    width: 100%;
}

/* Channel Cards */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.channel-card {
    background: var(--obs-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--obs-light-gray);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--obs-blue);
}

.channel-tagline {
    color: var(--obs-red);
    font-weight: 500;
    margin: 10px 0;
    font-size: 1.1em;
}

/* Cast Grid Layout */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* Guest Cast Grid */
.guest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.cast-member {
    background: var(--obs-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--obs-light-gray);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.cast-member:hover {
    transform: translateY(-5px);
    border-color: var(--obs-red);
}

.cast-member h3 {
    width: 100%;
    margin: 15px 0 10px;
    color: var(--obs-blue);
}

.cast-member p {
    width: 100%;
    margin: 5px 0;
}

.cast-role {
    color: var(--obs-red);
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cast-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--obs-blue);
    background-color: var(--obs-white);
    position: relative;
    flex-shrink: 0;
}

.cast-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cast-member:hover .cast-photo {
    transform: translate(-50%, -50%) scale(1.1);
}

.cast-member.historical .cast-photo {
    filter: sepia(0.3);
}

.cast-member.ai .cast-photo {
    filter: hue-rotate(180deg) opacity(0.9);
}

.special-guests-heading {
    text-align: center;
    margin: 60px 0 20px;
    color: var(--obs-blue);
    width: 100%;
}

.special-guests-heading::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--obs-red), var(--obs-blue));
    margin: 15px auto;
}

.cast-member.guest {
    background: linear-gradient(135deg, rgba(60, 59, 110, 0.05) 0%, rgba(178, 34, 52, 0.05) 100%);
}

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

@media (max-width: 768px) {
    .cast-grid, .guest-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cast-image {
        width: 150px;
        height: 150px;
    }
}

/* Section spacing */
.section {
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Channel Info */
.channel-info {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    background: none;
}

.channel-info > div {
    background: var(--commercial-accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.channel-info p {
    color: var(--commercial-dark-blue);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dark-mode .channel-info p {
    color: var(--commercial-light);
    background-color: var(--commercial-accent);
}

.mission-statement {
    color: var(--obs-red);
    font-size: 1.2em;
    font-weight: 500;
    margin: 20px 0;
    padding: 20px;
    border-top: 2px solid var(--obs-light-gray);
    border-bottom: 2px solid var(--obs-light-gray);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.video-placeholder {
    background: var(--obs-light-gray);
    padding: 56.25% 0 0 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--obs-light-gray);
}

.video-placeholder:hover {
    border-color: var(--obs-red);
}

.video-placeholder p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: var(--obs-blue);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-card {
    background: var(--obs-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h3 {
    padding: 15px;
    margin: 0;
    text-align: center;
    color: var(--obs-blue);
    font-size: 1.2em;
}

.cta-container {
    text-align: center;
    margin-top: 30px;
}

/* Responsive adjustments for video grid */
@media (max-width: 968px) {
    .video-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    padding: 10px 20px;
    background-color: var(--obs-light-gray);
    color: var(--obs-blue);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--obs-red);
    color: var(--obs-white);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: var(--obs-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Contact Form */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--obs-light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--obs-blue);
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--obs-blue);
    color: var(--obs-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--obs-red);
}

/* Synergy Section */
.synergy-section {
    background: linear-gradient(135deg, var(--obs-blue) 0%, var(--obs-red) 100%);
    color: var(--obs-white);
    padding: 60px 0;
    margin: 40px 0;
}

.synergy-section h2 {
    color: var(--obs-white);
    text-align: center;
    margin-bottom: 30px;
}

.synergy-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
}

.synergy-content {
    text-align: center;
    padding: 20px;
}

.synergy-section .section-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.synergy-section .section-header h2 {
    text-align: left;
}

.synergy-section .section-header img {
    margin-left: 0;
}

/* Content Types */
.content-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.content-type {
    background: var(--obs-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--obs-light-gray);
}

.content-type:hover {
    transform: translateY(-5px);
    border-color: var(--obs-blue);
}

.content-type h4 {
    color: var(--obs-red);
    margin-bottom: 15px;
}

.feature-box {
    background: linear-gradient(135deg, var(--obs-blue) 0%, var(--obs-red) 100%);
    color: var(--obs-white);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.feature-box h3 {
    color: var(--obs-white);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: var(--obs-blue);
    color: var(--obs-white);
    padding: 20px 0;
    text-align: center;
}

/* Logo Styles */
.main-logo {
    max-width: 400px;
    height: auto;
    margin: 20px auto;
    display: block;
}

.channel-logo {
    max-width: 300px;
    height: auto;
    margin: 20px auto;
    display: block;
    transition: transform 0.3s ease;
}

.channel-logo:hover {
    transform: scale(1.05);
}

/* Header with logo */
.logo-header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(60, 59, 110, 0.1) 0%, rgba(178, 34, 52, 0.1) 100%);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .main-logo {
        max-width: 300px;
    }
    
    .channel-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 250px;
    }
    
    .channel-logo {
        max-width: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Section Headers with Logos */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 25px;
}

.section-header h2 {
    margin: 0;
    flex: 1;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background: var(--obs-red);
}

.section-logo {
    height: 80px;
    width: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.section-logo:hover {
    transform: scale(1.05);
}

.channel-card {
    background: var(--obs-white);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
}

.channel-card .section-logo {
    height: 100px;
    width: auto;
    margin-right: 25px;
}

@media (max-width: 1200px) {
    .hero .section-logo {
        height: 100px;
    }
    
    .channel-card .section-logo {
        height: 80px;
    }
    
    .section-header .section-logo {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .hero .section-logo {
        height: 80px;
    }
    
    .channel-card .section-logo {
        height: 60px;
    }
    
    .section-header .section-logo {
        height: 50px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero .section-logo {
        height: 60px;
    }
    
    .channel-card .section-logo {
        height: 50px;
    }
    
    .section-header .section-logo {
        height: 40px;
    }
}

.channel-card {
    padding: 30px;
}

.channel-card .section-header {
    margin-bottom: 20px;
}

/* Key Description Text */
.about-description {
    font-size: 2em;
    line-height: 1.5;
    margin: 40px auto;
    text-align: center;
    color: var(--obs-blue);
    font-weight: 500;
    max-width: 1000px;
}

/* Responsive adjustments for key description */
@media (max-width: 968px) {
    .about-description {
        font-size: 1.8em;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .about-description {
        font-size: 1.6em;
        margin: 30px auto;
    }
    
    .about-section .section-header h2::after {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .about-description {
        font-size: 1.4em;
        margin: 20px auto;
    }
}

/* Center align section header and description */
.about-section .section-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.about-section .section-header h2 {
    margin-bottom: 20px;
}

.about-section .section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

/* Tagline styling */
.tagline {
    font-size: 2.2em;
    color: var(--obs-blue);
    text-align: center;
    margin: 25px auto 35px;
    font-style: italic;
    max-width: 800px;
    line-height: 1.4;
    font-weight: 500;
}

/* Responsive adjustments for tagline */
@media (max-width: 968px) {
    .tagline {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .tagline {
        font-size: 1.8em;
        margin: 20px auto 30px;
    }
}

@media (max-width: 480px) {
    .tagline {
        font-size: 1.6em;
        margin: 15px auto 25px;
    }
}

/* Mission statement styling */
.mission {
    font-size: 1.8em;
    color: var(--obs-blue);
    text-align: center;
    margin: 25px auto 35px;
    max-width: 1000px;
    line-height: 1.5;
    font-weight: 500;
}

/* Responsive adjustments for mission */
@media (max-width: 968px) {
    .mission {
        font-size: 1.6em;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .mission {
        font-size: 1.4em;
        margin: 20px auto 30px;
    }
}

@media (max-width: 480px) {
    .mission {
        font-size: 1.2em;
        margin: 15px auto 25px;
    }
}

/* Commercial-Isms Slogan */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.header-content h1 {
    margin: 0;
    padding: 0;
}

.header-content .commercial-slogan {
    margin-bottom: 1.5rem;
}

.header-content .cta-button {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.commercial-slogan {
    font-size: 2.4em;
    color: var(--commercial-light);
    text-align: center;
    margin: 0;
    padding: 0;
    max-width: 1000px;
    line-height: 1.2;
    font-weight: 500;
    font-style: italic;
}

/* Responsive adjustments for commercial slogan */
@media (max-width: 968px) {
    .commercial-slogan {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .commercial-slogan {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .commercial-slogan {
        font-size: 1.8em;
    }
}

/* Adjust section header spacing */
.hero .section-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Parody CTA Box */
.parody-cta {
    background: linear-gradient(135deg, var(--obs-blue) 0%, #2a2a4d 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    color: var(--obs-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.parody-cta h3 {
    font-size: 2em;
    margin: 0 0 20px 0;
    color: var(--obs-white);
}

.parody-cta p {
    font-size: 1.2em;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.parody-cta .cta-button {
    background: var(--obs-red);
    color: var(--obs-white);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.parody-cta .cta-button:hover {
    background: #d42a3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .parody-cta {
        padding: 25px;
        margin: 30px 0;
    }

    .parody-cta h3 {
        font-size: 1.8em;
    }

    .parody-cta p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .parody-cta {
        padding: 20px;
        margin: 20px 0;
    }

    .parody-cta h3 {
        font-size: 1.6em;
    }

    .parody-cta p {
        font-size: 1em;
    }
}

/* Definitions Section Styles */
.definitions-section {
    background-color: var(--obs-light-gray);
    padding: 60px 0;
}

.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

.definition-item {
    background: var(--obs-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.definition-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--obs-blue) 0%, var(--obs-red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.definition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.definition-item:hover::before {
    opacity: 0.05;
}

.definition-item h3 {
    color: var(--obs-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.definition-item p {
    color: #444;
    font-size: 1em;
    line-height: 1.6;
}

.section-intro {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin: 20px auto 0;
    max-width: 800px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .definitions-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .definition-item {
        padding: 25px;
    }
    
    .section-intro {
        padding: 0 20px;
        font-size: 1em;
    }
}

/* Tools Section Styles */
.tools-section {
    background-color: var(--obs-light-gray);
    padding: 60px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

.tool-item {
    background: var(--obs-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--obs-blue) 0%, var(--obs-red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tool-item:hover::before {
    opacity: 0.05;
}

.tool-item h3 {
    color: var(--obs-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.tool-item p {
    color: #444;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--obs-blue);
    color: var(--obs-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.tool-link:hover {
    background: var(--obs-red);
}

.tool-category {
    display: inline-block;
    padding: 4px 8px;
    background: var(--obs-blue);
    color: var(--obs-white);
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.definition-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.definition-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(60, 59, 110, 0.1);
    color: var(--obs-blue);
    border-radius: 12px;
    font-size: 12px;
}

.tool-actions, .definition-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tool-item:hover .tool-actions,
.definition-item:hover .definition-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-button {
    background: none;
    border: none;
    color: var(--obs-blue);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.action-button:hover {
    color: var(--obs-red);
}

.action-button i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .tool-item {
        padding: 25px;
        min-height: 180px;
    }
    
    .tool-link {
        width: 100%;
    }
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--obs-blue);
    border-radius: 20px;
    background: none;
    color: var(--obs-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: var(--obs-blue);
    color: white;
}

.filter-btn.active {
    background-color: var(--obs-blue);
    color: white;
}

/* Dark mode styles for filter buttons */
.dark-mode .filter-btn {
    border-color: var(--obs-light-blue);
}

.dark-mode .filter-btn:hover,
.dark-mode .filter-btn.active {
    background-color: var(--obs-light-blue);
}

/* Tool item transitions */
.tool-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tool-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Dark Mode Styles */
.dark-mode {
    --obs-white: #1a1a1a;
    --obs-blue: #4a9eff;
    --obs-red: #ff6b6b;
    color: #ffffff;
}

.dark-mode .navbar {
    background-color: #2a2a2a;
}

.dark-mode .card {
    background-color: #2a2a2a;
    border: 1px solid #404040;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    visibility: visible;
}

.dark-mode-toggle::after {
    content: 'Toggle Dark Mode';
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.dark-mode-toggle:hover::after {
    opacity: 1;
    visibility: visible;
}

.dark-mode-toggle input {
    display: none;
}

.dark-mode-toggle label {
    width: 48px;
    height: 24px;
    background-color: #ddd;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dark-mode-toggle label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.dark-mode-toggle input:checked + label {
    background-color: var(--obs-blue);
}

.dark-mode-toggle input:checked + label::after {
    transform: translateX(24px);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--obs-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #357abd;
    transform: translateY(-3px);
}

/* Search Bar */
.search-container {
    margin: 20px auto;
    max-width: 600px;
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--obs-light-gray);
    border-radius: 8px;
    background-color: var(--obs-white);
    color: var(--obs-text);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--obs-blue);
    box-shadow: 0 0 0 2px rgba(var(--obs-blue-rgb), 0.2);
}

.clear-search {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--obs-text);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.clear-search:hover {
    color: var(--obs-blue);
}

.no-results {
    text-align: center;
    padding: 1rem;
    color: var(--obs-text);
    font-style: italic;
    margin-top: 1rem;
}

/* Copy Link Button */
.copy-link-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: var(--obs-blue);
    transition: color 0.3s;
}

.copy-link-btn:hover {
    color: #357abd;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-btn[data-platform="twitter"] {
    background-color: #1da1f2;
}

.share-btn[data-platform="facebook"] {
    background-color: #4267B2;
}

.share-btn[data-platform="linkedin"] {
    background-color: #0077b5;
}

/* Lazy Loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src][src] {
    opacity: 1;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    .dark-mode-toggle {
        top: 10px;
        right: 10px;
    }
    
    #back-to-top {
        bottom: 10px;
        right: 10px;
    }
}

/* Page Layout */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 250px;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--obs-white);
    border-right: 1px solid var(--obs-light-gray);
    padding: 2rem 1rem;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding-top: 80px;
}

.sidebar h3 {
    color: var(--obs-text);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    color: var(--obs-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background-color: var(--obs-light-gray);
    color: var(--obs-blue);
}

.sidebar-link.active {
    background-color: var(--obs-blue);
    color: white;
}

/* Definition Tags */
.definition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: var(--obs-light-gray);
    color: var(--obs-text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--obs-blue);
    color: white;
}

/* Dark Mode Styles */
.dark-mode .sidebar {
    background-color: var(--obs-dark-gray);
    border-color: var(--obs-darker-gray);
}

.dark-mode .sidebar-link:hover {
    background-color: var(--obs-darker-gray);
    color: var(--obs-light-blue);
}

.dark-mode .tag {
    background-color: var(--obs-darker-gray);
}

.dark-mode .tag:hover {
    background-color: var(--obs-light-blue);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: var(--obs-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--obs-dark-blue);
    transform: scale(1.1);
}

.dark-mode .sidebar-toggle {
    background: var(--obs-light-blue);
}

.dark-mode .sidebar-toggle:hover {
    background: var(--obs-blue);
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--obs-blue);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.page-transition.active {
    transform: translateY(0);
}

/* Content Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animation */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--obs-blue);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.hero.loaded::after {
    transform: translateX(100%);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--obs-light-gray);
    border-top-color: var(--obs-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
    display: none;
}

.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Dark Mode Transitions */
.dark-mode .page-transition {
    background: var(--obs-light-blue);
}

.dark-mode .loading-spinner {
    border-color: var(--obs-darker-gray);
    border-top-color: var(--obs-light-blue);
}

/* Commercial-Isms Theme Colors */
.commercial-theme {
    background-color: var(--commercial-dark-blue);
    color: var(--commercial-text);
}

.commercial-hero {
    background: linear-gradient(135deg, var(--commercial-dark-blue) 0%, var(--commercial-accent) 100%);
    padding: 4rem 0;
}

.commercial-card {
    background: var(--commercial-accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commercial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.commercial-card h3 {
    color: var(--commercial-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.commercial-card p {
    color: var(--commercial-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.commercial-highlight {
    color: var(--commercial-highlight);
    font-weight: 600;
}

.commercial-section {
    background: var(--commercial-dark-blue);
    padding: 4rem 0;
}

.commercial-section h2 {
    color: var(--commercial-light);
    text-align: center;
    margin-bottom: 2rem;
}

.commercial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.commercial-button {
    background: var(--commercial-highlight);
    color: var(--commercial-dark-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.commercial-button:hover {
    background: #ff8585;
    transform: translateY(-2px);
}

/* Dark Mode Adjustments */
.dark-mode .commercial-theme {
    background-color: var(--commercial-dark-blue);
}

.dark-mode .commercial-card {
    background: var(--commercial-accent);
}

.dark-mode .commercial-card h3,
.dark-mode .commercial-card p {
    color: var(--commercial-light);
}

.dark-mode .commercial-highlight {
    color: var(--commercial-highlight);
}
