/* ========================================
   RIVERSIDE HOME DESIGNS - MAIN STYLES
   Custom Home Design - Texas Hill Country
   Last Modified: 2025-11-27
   ======================================== */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Scheme */
    --primary-blue: #1464d1;
    --primary-red: #d32f2f;
    --red-accent: #cc0000;
    --teal-accent: #17a2b8;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #f5f5f5;
    --white: #f0ece5;              /* Soft warm white - 30% darker */
    
    /* Typography */
    --font-main: Arial, Helvetica, sans-serif;
    
    /* Spacing */
    --section-padding: 60px 20px;
    --container-max-width: 1200px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    font-size: 18px;  /* Increased from 16px */
    padding-top: 15px; /* ADDED: breathing room at top of page */
}

/* ========== GLOBAL RESPONSIVE IMAGES ========== */
/* Ensures all images scale to fit their container */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll from wide content */
.container,
.content-section,
article,
main {
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: bold;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--teal-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ========== HEADER / LOGO ========== */
.header-logo {
    background-color: var(--white);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.header-logo img {
    width: 100%;
    max-width: 1200px;  /* Increased for larger logo */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========== MAIN NAVIGATION ========== */
.main-nav {
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    padding: 15px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    color: var(--white);
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: rgba(0, 0, 0, 0.2);
}


/* Hide dropdown carets on desktop */
.nav-menu .caret {
    display: none;
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.dropdown {
    /* CHANGED: Use visibility/opacity instead of display for transition delay */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-blue);  /* Blue background to match nav */
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    list-style: none;
    z-index: 1001;
    /* ADDED: Hidden by default with transition */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.has-dropdown:hover .dropdown {
    visibility: visible;
    opacity: 1;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #fff;  /* White text */
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown li a:hover {
    background-color: rgba(255,255,255,0.2);  /* Slight highlight on hover */
    color: #fff;
}

/* Two-column dropdown layout for long menus (Portfolio, etc.) */
.has-dropdown:hover .dropdown-columns {
    visibility: visible;
    opacity: 1;
    column-count: 2;
    column-gap: 10px;
    min-width: 400px;
}

.dropdown-columns li a {
    padding: 12px 20px;                     /* Match regular dropdown spacing */
    font-size: 0.9rem;
    line-height: 1.3;
    break-inside: avoid;
}

/* ========== BREADCRUMB (SEO - Visually Hidden) ========== */
/* Keeps breadcrumb in DOM for search engines and screen readers */
/* but moves it off-screen for visual users */
.breadcrumb-nav,
nav[aria-label="Breadcrumb"],
.breadcrumb {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* ========== END BREADCRUMB ========== */

/* ========== HERO BACKGROUND (FULL WIDTH) ========== */
.hero-background-full {
    width: 100%;
    position: relative;
    background: linear-gradient(to bottom, 
        #a3a3a3 0%,
        #a3a3a3 50%,
        #acacac 50%,
        #acacac 100%
    );
    padding: 0;
}

/* ========== HERO SECTION ========== */
.hero-wrapper {
    position: relative;
    background-color: transparent;
}

.hero-wrapper::before {
    content: '';
    display: block;
    height: 10px;
    background-color: var(--red-accent);
    width: 100%;
}

.hero-wrapper::after {
    content: '';
    display: block;
    height: 10px;
    background-color: var(--red-accent);
    width: 100%;
}

.hero-text-center {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-size: 1.5rem;
    font-weight: bold;
    width: 90%;
    max-width: 1000px;
}

/* ========== RED BARS - ABOVE AND BELOW HERO ========== */
.red-bar-top {
    width: 100%;
    height: 8px;
    background-color: #c41e3a;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.red-bar-bottom {
    width: 100%;
    height: 8px;
    background-color: #c41e3a;
    margin: 0;
    padding: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* ========== INTERIOR PAGE HERO - STARTS HERE ========== */
.interior-hero {
    background: linear-gradient(135deg, #e8f4fc 0%, #cce5f5 100%);
    padding: 40px 20px;
    text-align: center;
}

.interior-hero h1 {
    color: #c41e3a;
    font-size: 2.2rem;
    font-style: italic;
    margin: 0 0 10px 0;
}

.interior-hero p {
    color: #c41e3a;
    font-size: 1.2rem;
    margin: 0;
}

.interior-hero img {
    display: block;
    margin: 20px auto 0;
    max-width: 600px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* ========== INTERIOR PAGE HERO - ENDS HERE ========== */

/* ========== CONTENT SECTIONS ========== */
.content-section {
    padding: var(--section-padding);
}

.content-section.gray-bg {
    background-color: var(--light-gray);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* ========== THREE COLUMN LAYOUT - INTRO BOXES ========== */
.intro-boxes {
    max-width: var(--container-max-width);
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.intro-box {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-left: 4px solid #1464d1;  /* Blue accent border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.intro-box-image {
    width: 100%;
    overflow: hidden;
}

.intro-box-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.intro-box-image img:hover {
    transform: scale(1.05);
}

.intro-box-content {
    padding: 20px;
}

.intro-box-title {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.intro-box-text {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.intro-box-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.intro-box-links a {
    color: var(--teal-accent);
    font-weight: 600;
    text-decoration: none;
}

.intro-box-links a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ========== SOCIAL SIDEBAR (LEFT) ========== */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.social-sidebar a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.social-sidebar a:hover {
    transform: scale(1.1);
}

.social-sidebar img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========== EMAIL IDEAS SECTION ========== */
.email-ideas-section {
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 20px;
}

.email-ideas-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.email-ideas-section img:hover {
    transform: scale(1.02);
}

.call-text {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.call-text a {
    color: var(--primary-blue);
    font-weight: 600;
}

.call-text a:hover {
    color: var(--primary-red);
}

/* ========== FOOTER ========== */
/* Footer styles moved to /includes/footer.html for self-contained control */

/* ========== CONTACT PAGE STYLES ========== */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-card a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-form-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    border: 1px solid #ddd;
    border-left: 4px solid #1464d1;  /* Blue accent border */
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-left: 4px solid #1464d1;  /* Blue accent border */
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(20, 100, 209, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: #0d4a9e;
}

.business-hours {
    margin-top: 40px;
}

/* ========== FAQ PAGE STYLES ========== */
.faq-table {
    width: 100%;
    border-collapse: collapse;
}

.faq-row {
    border-bottom: 1px solid #ddd;
}

.faq-icon-cell {
    width: 80px;
    padding: 20px;
    padding-right: 20px;
    vertical-align: top;
}

.faq-icon-cell img {
    width: 60px;
    height: auto;
}

.faq-content-cell {
    padding: 20px 0;
    vertical-align: top;
}

.faq-question {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--medium-gray);
    line-height: 1.8;
}

.faq-testimonial {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-blue);
    font-style: italic;
    color: var(--medium-gray);
}

/* ========== IMAGE FLOAT CLASSES ========== */
.image-float-left {
    float: left;
    max-width: 350px;
    height: auto;
    margin: 0 25px 20px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.image-float-right {
    float: right;
    max-width: 350px;
    height: auto;
    margin: 0 0 20px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* ========== HIGHLIGHT QUOTE ========== */
.highlight-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: #333;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-left: 4px solid #1464d1;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Logo */
    .header-logo img {
        max-width: 90% !important;
    }
    
    /* Mobile Navigation */
    .mobile-toggle {
        display: block !important;
        width: 100%;
        text-align: left;
        background-color: transparent !important;
        border: none;
        color: #fff !important;
        font-size: 1.2rem;
        padding: 15px 20px;
        cursor: pointer;
    }
    
    .nav-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-blue);
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu > li {
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;  /* Allow dropdown to wrap below */
    }
    
    .nav-menu > li > a {
        padding: 12px 20px;
        flex: 1;
        order: 2;  /* CHANGED: Move link text AFTER caret */
    }
    
    /* Show dropdown carets on mobile - NOW ON LEFT */
    .nav-menu .caret {
        display: inline;
        padding-left: 20px;   /* CHANGED: Padding on left side */
        padding-right: 10px;  /* ADDED: Small gap before menu text */
        order: 1;             /* ADDED: Caret appears FIRST (left side) */
        cursor: pointer;      /* ADDED: Show it's clickable */
    }

    
    .dropdown {
        /* CHANGED: Override desktop visibility/opacity with display for mobile */
        display: none;
        visibility: visible !important;
        opacity: 1 !important;
        transition: none !important;
        position: static;
        box-shadow: none;
        background-color: rgba(255,255,255,0.1);
        width: 100%;
        flex-basis: 100%;  /* Force dropdown to take full width on new row */
        order: 3;  /* ADDED: Dropdown appears AFTER caret and link */
    }
    
    /* Force single column on mobile */
    .dropdown-columns {
        column-count: 1 !important;
        min-width: auto !important;
        width: 100% !important;
    }
    
    /* Mobile dropdown links - WHITE TEXT */
    .dropdown li {
        width: 100%;
    }
    
    .dropdown li a {
        color: #fff !important;
        background-color: transparent;
        padding-left: 20px;  /* Match main menu alignment */
    }
    
    .dropdown li a:hover {
        background-color: rgba(255,255,255,0.2);
        color: #fff !important;
    }
    
    /* Email Ideas Section */
    .email-ideas-section {
        max-width: 90%;
        padding: 15px;
        margin: 30px auto;
    }
    
    .email-ideas-section img {
        max-width: 100%;
    }
    
    /* Hide sidebars on mobile */
    .portfolio-sidebar,
    .social-sidebar {
        display: none;
    }
    
    /* Adjust boxes */
    .intro-boxes {
        grid-template-columns: 1fr;
        margin: 40px auto;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-text-center {
        font-size: 1.2rem;
        top: 10px;
    }
    
    /* Interior Hero Mobile */
    .interior-hero h1 {
        font-size: 1.8rem;
    }
    
    .interior-hero p {
        font-size: 1rem;
    }
    
    .interior-hero img {
        max-width: 100%;
        max-height: 200px;
    }
    
    /* Contact page */
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* FAQ page */
    .faq-icon-cell {
        width: 50px;
        padding-right: 15px;
    }
    
    .faq-icon-cell img {
        width: 40px !important;
    }
    
    .faq-question {
        font-size: 1.25rem;
    }
    
    .faq-testimonial {
        padding-left: 15px;
    }
    
    /* Float images stack on mobile */
    .image-float-left,
    .image-float-right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 20px;
    }
    
    .highlight-quote {
        padding: 15px 20px;
        font-size: 1.05rem;
    }
    
    /* ========== MOBILE RESPONSIVE IMAGES ========== */
    /* Force ALL images to fit screen - overrides HTML width/height attributes */
    img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Images with inline styles need override */
    img[style],
    img[width],
    img[height] {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Ensure content containers don't overflow */
    article img,
    .container img,
    .content-section img,
    .intro-box-content img,
    .intro-box img,
    main img,
    section img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block;
    }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
    .header-logo img {
        max-width: 95% !important;
    }
    
    .hero-text-center {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 40px 15px;
    }
    
    .email-ideas-section {
        max-width: 95%;
        padding: 10px;
        margin: 20px auto;
    }
    
    /* Interior Hero Small Mobile */
    .interior-hero {
        padding: 30px 15px;
    }
    
    .interior-hero h1 {
        font-size: 1.5rem;
    }
    
    .interior-hero p {
        font-size: 0.95rem;
    }
    
    .interior-hero img {
        max-height: 150px;
    }
    
    /* ========== SMALL MOBILE RESPONSIVE IMAGES ========== */
    /* Force absolutely ALL images to fit screen on small devices */
    img,
    img[style],
    img[width],
    img[height],
    picture img,
    figure img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block;
    }
}

/* ========================================
   UTILITY CLASSES - GLOBAL STYLES
   ======================================== */

/* ========== TEXT COLORS ========== */
.red-text {
    color: var(--primary-red) !important;
}

.blue-text {
    color: var(--primary-blue) !important;
}

.dark-gray-text {
    color: var(--dark-gray) !important;
}

.medium-gray-text {
    color: var(--medium-gray) !important;
}

.light-gray-text {
    color: var(--light-gray) !important;
}

.white-text {
    color: white !important;
}

/* ========== TEXT ALIGNMENT ========== */
.text-center,
.centered-text {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* ========== FONT WEIGHTS ========== */
.font-bold,
.bold-text {
    font-weight: 700 !important;
}

.font-semi-bold,
.semi-bold {
    font-weight: 600 !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-light {
    font-weight: 300 !important;
}

/* ========== BADGE LINKS (Used across pages) ========== */
.badge-link {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
    display: inline-block;
}

.badge-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.badge-link:hover h3,
.badge-link:hover p {
    color: var(--primary-red);
}

/* ========== MARGINS ========== */
.no-margin {
    margin: 0 !important;
}

.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.margin-top-10 {
    margin-top: 10px !important;
}

.margin-top-20 {
    margin-top: 20px !important;
}

.margin-top-30 {
    margin-top: 30px !important;
}

.margin-bottom-10 {
    margin-bottom: 10px !important;
}

.margin-bottom-20 {
    margin-bottom: 20px !important;
}

.margin-bottom-30 {
    margin-bottom: 30px !important;
}

/* ========== PADDING ========== */
.no-padding {
    padding: 0 !important;
}

.padding-10 {
    padding: 10px !important;
}

.padding-20 {
    padding: 20px !important;
}

.padding-30 {
    padding: 30px !important;
}

/* ========== DISPLAY UTILITIES ========== */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.inline-block {
    display: inline-block !important;
}

.flex {
    display: flex !important;
}

/* ========== COMMON BORDERS ========== */
.border-blue {
    border: 2px solid var(--primary-blue) !important;
}

.border-red {
    border: 2px solid var(--primary-red) !important;
}

.border-gray {
    border: 1px solid var(--medium-gray) !important;
}

/* ========== BACKGROUND COLORS ========== */
.bg-blue {
    background-color: var(--primary-blue) !important;
}

.bg-red {
    background-color: var(--primary-red) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.bg-white {
    background-color: white !important;
}

/* ========== HOVER EFFECTS ========== */
.hover-red:hover {
    color: var(--primary-red) !important;
}

.hover-blue:hover {
    color: var(--primary-blue) !important;
}

/* ========== END UTILITY CLASSES ========== */

/* ========== ARDA AWARD BADGE (Left Side) ========== */
.arda-badge {
    position: absolute;
    left: 20px;  /* Close to left edge */
    top: calc(50% + 140px);  /* Lowered 140px from center */
    transform: translateY(-50%);
    z-index: 100;
    width: 120px;  /* Reduced to match header credential badges */
    animation: badgeFadeIn 1s ease-in-out;
}

.arda-badge a {
    display: block;
    text-decoration: none;
}

.arda-badge img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.arda-badge:hover img {
    transform: scale(1.05);
}

/* Hide ARDA badge below 1280px for proper spacing */
@media (max-width: 1280px) {
    .arda-badge {
        display: none;
    }
}

@media print {
    .arda-badge {
        display: none;
    }
}
/* ========== END ARDA AWARD BADGE ========== */

/* ========== 40+ YEARS ANNIVERSARY BADGE ========== */
.anniversary-badge {
    position: absolute;
    right: 20px;  /* Close to right edge */
    top: calc(50% + 140px);  /* Lowered 140px from center */
    transform: translateY(-50%);
    z-index: 100;
    width: 120px;  /* Reduced to match header credential badges */
    animation: badgeFadeIn 1s ease-in-out;
}

.anniversary-badge img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Hide anniversary badge below 1280px for proper spacing */
@media (max-width: 1280px) {
    .anniversary-badge {
        display: none;
    }
}

@media print {
    .anniversary-badge {
        display: none;
    }
}
/* ========== END 40+ YEARS ANNIVERSARY BADGE ========== */

/* ========== INDEX PAGE HEADER WITH CREDENTIAL LOGOS ========== */
/* UPDATED: Added padding-top for breathing room at top of page */
.index-header-logos-row {
    position: relative;
    width: 100%;
    min-height: 180px;
    padding-top: 15px;
}

.header-logos-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 5;
}

.credential-logo-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    /* REMOVED: margin-top: -30px - credentials now align with center logo */
}

.credential-logo-container.left {
    left: 20px;  /* Close to left edge */
}

.credential-logo-container.right {
    right: 20px;  /* Close to right edge */
}

.credential-logo-img {
    max-width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.credential-logo-text {
    text-align: center;
    font-size: 0.75rem;
    color: #dc143c;
    font-weight: 500;
    min-height: 30px;
    max-width: 130px;
    line-height: 1.3;
    margin-bottom: 30px;  /* Add space above menu bar */
}

/* Hide credential logos (AIBD/NCBDC) below 1280px for proper spacing */
@media (max-width: 1280px) {
    .credential-logo-container {
        display: none;
    }
}

/* ========== CREDIBILITY BAR (INDEX PAGE) ========== */
/* Moved from index.html inline styles for centralization */
.credibility-bar {
    text-align: center;
    background: #f8f8f8;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.credibility-bar a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.credibility-bar a:hover {
    color: #1464d1;
}

.cred-separator {
    margin: 0 15px;
    color: #ccc;
}

.cred-text {
    color: #555;
}

@media (max-width: 600px) {
    .credibility-bar {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    .cred-separator {
        margin: 0 8px;
    }
}
/* ========== END CREDIBILITY BAR ========== */

/* ========== END INDEX HEADER WITH CREDENTIAL LOGOS ========== */
