/*
Theme Name: Republican Leaders
Theme URI: https://republicanleaders.org
Author: Republican Leaders
Description: Official theme for Republican Leaders — Advancing Republican leadership and conservative governance. Clean, institutional design with gold and red accents.
Version: 1.0
License: All Rights Reserved
Text Domain: republican-leaders
*/

/* === RESET & BASE === */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Georgia,'Times New Roman',serif;color:#1a1a1a;background:#fff;font-size:16px;line-height:1.7}
a{color:#8B1A1A;text-decoration:none;transition:color 0.2s}
a:hover{color:#5a0f0f}
img{max-width:100%;height:auto}

/* === TOPBAR === */
.rl-topbar{background:#fff;border-bottom:2px solid #c9a84c;padding:6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.rl-topbar-inner{max-width:1140px;margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;font-size:12px;color:#888;letter-spacing:0.04em}

/* === HEADER === */
.rl-header{background:#fff;padding:20px 0;border-bottom:1px solid #e8e4dc}
.rl-header-inner{max-width:1140px;margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;align-items:center}
.rl-logo img{max-height:80px;width:auto}
.rl-logo a{display:block}
.rl-nav{position:relative;display:flex;align-items:center;gap:0;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.rl-nav > a,.rl-nav > .rl-dd > a{font-size:14px;color:#1a2d4d;font-weight:500;padding:8px 13px;text-decoration:none;white-space:nowrap;transition:color .15s;letter-spacing:0}
.rl-nav > a:hover,.rl-nav > .rl-dd > a:hover{color:#8B0000}

/* === HERO === */
.rl-hero{padding:48px 0;border-bottom:1px solid #e8e4dc}
.rl-hero-inner{max-width:1140px;margin:0 auto;padding:0 24px;display:flex;gap:40px;align-items:center}
.rl-hero-logo{flex-shrink:0}
.rl-hero-logo img{max-height:160px;width:auto}
.rl-hero-body h1{font-size:30px;font-weight:700;color:#1a1a1a;line-height:1.25;margin-bottom:12px}
.rl-hero-body p{font-size:16px;color:#555;line-height:1.7;max-width:560px;margin-bottom:16px}

/* === BUTTONS === */
.rl-btn{display:inline-block;padding:8px 20px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;border:1px solid #c9a84c;color:#8B1A1A;font-family:-apple-system,sans-serif;cursor:pointer;background:#fff;transition:all 0.2s}
.rl-btn:hover{background:#faf6ee;color:#8B1A1A}
.rl-btn-red{background:#8B1A1A;color:#fff;border-color:#8B1A1A}
.rl-btn-red:hover{background:#6d1414;color:#fff}

/* === DIVIDERS === */
.rl-gold-divider{border:none;border-top:2px solid #c9a84c;margin:0}
.rl-divider{border:none;border-top:1px solid #e8e4dc;margin:0}

/* === SECTIONS === */
.rl-section{padding:40px 0}
.rl-section-inner{max-width:1140px;margin:0 auto;padding:0 24px}
.rl-section-cream{background:#faf8f4}
.rl-section h2{font-size:22px;font-weight:700;color:#1a1a1a;margin-bottom:6px;letter-spacing:0.02em}
.rl-section h2::after{content:'';display:block;width:50px;height:2px;background:#c9a84c;margin-top:8px;margin-bottom:16px}
.rl-section p{font-size:15px;color:#555;line-height:1.7;max-width:680px;margin-bottom:16px}

/* === TWO COLUMN === */
.rl-cols,.rl-two-col{display:grid;grid-template-columns:1fr 300px;gap:40px}

/* === ARTICLE CARDS === */
.rl-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rl-card{display:flex;gap:16px;padding:20px;margin-bottom:16px;border:1px solid #e8e4dc;border-radius:6px;background:#fff;transition:border-color .15s}
.rl-card:hover{border-color:#c9a84c}
.rl-card-img{width:180px;min-height:120px;flex-shrink:0;border-radius:4px;overflow:hidden;background:#f5f3ee}
.rl-card-img img{width:100%;height:100%;object-fit:cover}
.rl-card-img .cat{position:absolute;top:8px;left:8px;background:#8B1A1A;color:#fff;font-size:10px;padding:3px 8px;text-transform:uppercase;letter-spacing:0.08em;font-family:-apple-system,sans-serif;font-weight:600}
.rl-card-body{padding:14px 16px}
.rl-card-body h3{font-size:16px;font-weight:700;color:#1a1a1a;line-height:1.3;margin-bottom:6px}
.rl-card-body h3 a{color:#1a1a1a}
.rl-card-body h3 a:hover{color:#8B1A1A}
.rl-card-body p{font-size:13px;color:#777;line-height:1.6;margin-bottom:0}
.rl-card-body .meta{font-size:11px;color:#aaa;margin-top:8px;font-family:-apple-system,sans-serif}

/* === FEATURED === */
.rl-featured{display:grid;grid-template-columns:1.2fr 1fr;gap:28px}
.rl-feat-img{height:240px;background:#f5f3ee;overflow:hidden;margin-bottom:12px;border:1px solid #e8e4dc}
.rl-feat-img img{width:100%;height:100%;object-fit:cover}
.rl-feat h3{font-size:22px;font-weight:700;color:#1a1a1a;line-height:1.3;margin-bottom:8px}
.rl-feat .meta{font-size:12px;color:#8B1A1A;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:4px;font-family:-apple-system,sans-serif}

/* === SIDEBAR === */
.rl-sidebar{background:#faf8f4;padding:20px;border:1px solid #e8e4dc;margin-bottom:16px}
.rl-sidebar h3{font-size:16px;font-weight:700;color:#1a1a1a;margin-bottom:10px}
.rl-sidebar p{font-size:13px;color:#666;margin-bottom:8px}
.rl-sidebar input[type="email"],.rl-sidebar input[type="text"]{width:100%;padding:8px 10px;border:1px solid #ddd;font-size:13px;margin-bottom:8px;font-family:-apple-system,sans-serif}

/* === NEWSLETTER BAR === */
.rl-nl-bar{background:#faf8f4;border:1px solid #e8e4dc;border-left:3px solid #c9a84c;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.rl-nl-bar h3{font-size:16px;color:#1a1a1a;margin-bottom:2px}
.rl-nl-bar p{font-size:12px;color:#888;font-family:-apple-system,sans-serif}
.rl-nl-bar input{padding:7px 10px;border:1px solid #ddd;font-size:13px;width:200px;font-family:-apple-system,sans-serif}

/* === PAGE HERO === */
.rl-page-hero{padding:36px 0;border-bottom:2px solid #c9a84c;text-align:center}
.rl-page-hero-inner{max-width:1140px;margin:0 auto;padding:0 24px}
.rl-page-hero h1{font-size:28px;color:#1a1a1a;margin-bottom:8px}
.rl-page-hero p{font-size:15px;color:#888;max-width:520px;margin:0 auto}

/* === LEADERS === */
.rl-leaders-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}
.rl-leader{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid #f0ece4;align-items:center}
.rl-leader-av{width:52px;height:52px;border-radius:50%;background:#f0ece4;border:1px solid #ddd;flex-shrink:0;overflow:hidden}
.rl-leader-av img{width:100%;height:100%;object-fit:cover}
.rl-leader h4{font-size:14px;font-weight:700;color:#1a1a1a}
.rl-leader p{font-size:13px;color:#888;font-family:-apple-system,sans-serif}
.rl-leader .role{font-size:11px;color:#c9a84c;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;font-family:-apple-system,sans-serif}

/* === MISSION CARDS === */
.rl-mission-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.rl-mission-card{padding:20px;border-left:3px solid #c9a84c;background:#faf8f4}
.rl-mission-card h3{font-size:16px;color:#1a1a1a;margin-bottom:8px}
.rl-mission-card p{font-size:14px;color:#666;max-width:none}

/* === CONTRIBUTORS === */
.rl-contrib-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.rl-contrib-card{border:1px solid #e8e4dc;padding:24px;text-align:center;background:#fff}
.rl-contrib-av{width:64px;height:64px;border-radius:50%;background:#f5f3ee;border:1px solid #e0ddd5;margin:0 auto 12px;overflow:hidden}
.rl-contrib-av img{width:100%;height:100%;object-fit:cover}
.rl-contrib-card h3{font-size:16px;color:#1a1a1a;margin-bottom:3px}
.rl-contrib-card .title{font-size:11px;color:#c9a84c;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:8px;font-family:-apple-system,sans-serif}
.rl-contrib-card p{font-size:13px;color:#888;line-height:1.6;font-family:-apple-system,sans-serif}

/* === FORMS === */
.rl-form label{display:block;font-size:12px;font-weight:600;color:#1a1a1a;margin-bottom:4px;margin-top:14px;font-family:-apple-system,sans-serif;text-transform:uppercase;letter-spacing:0.06em}
.rl-form input,.rl-form textarea,.rl-form select{width:100%;padding:10px 12px;border:1px solid #ddd;font-size:14px;font-family:-apple-system,sans-serif}
.rl-form textarea{height:100px;resize:vertical}

/* === ARTICLE LIST === */
.rl-article-row{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #f0ece4}
.rl-article-row .thumb{width:160px;height:100px;background:#f5f3ee;border:1px solid #e8e4dc;flex-shrink:0;overflow:hidden}
.rl-article-row .thumb img{width:100%;height:100%;object-fit:cover}
.rl-article-row h3{font-size:17px;font-weight:700;color:#1a1a1a;line-height:1.3;margin-bottom:4px}
.rl-article-row h3 a{color:#1a1a1a}
.rl-article-row h3 a:hover{color:#8B1A1A}
.rl-article-row p{font-size:13px;color:#777;line-height:1.6}
.rl-article-row .meta{font-size:11px;color:#8B1A1A;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:4px;font-family:-apple-system,sans-serif}

/* === CATEGORIES FILTER === */
.rl-cats{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap;font-family:-apple-system,sans-serif}
.rl-cat{padding:4px 10px;font-size:11px;border:1px solid #e0ddd5;cursor:pointer;text-transform:uppercase;letter-spacing:0.06em;font-weight:500;background:#fff}
.rl-cat:hover{border-color:#c9a84c}
.rl-cat.active{background:#8B1A1A;color:#fff;border-color:#8B1A1A}

/* === SUBSCRIBE HERO === */
.rl-sub-hero{background:#8B1A1A;padding:40px 0;text-align:center;color:#fff}
.rl-sub-hero-inner{max-width:1140px;margin:0 auto;padding:0 24px}
.rl-sub-hero h1{font-size:26px;margin-bottom:8px}
.rl-sub-hero p{font-size:14px;color:rgba(255,255,255,0.75);max-width:460px;margin:0 auto 16px}
.rl-sub-form{display:flex;gap:8px;max-width:400px;margin:0 auto}
.rl-sub-form input{flex:1;padding:10px 12px;border:none;font-size:14px;font-family:-apple-system,sans-serif}
.rl-sub-form button{padding:10px 20px;background:#c9a84c;color:#fff;border:none;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;cursor:pointer;font-family:-apple-system,sans-serif}

/* === GLOSSARY / REFERENCE === */
.rl-glossary-item{padding:16px 0;border-bottom:1px solid #f0ece4}
.rl-glossary-item h3{font-size:17px;font-weight:700;color:#1a1a1a;margin-bottom:4px}
.rl-glossary-item h3 a{color:#1a1a1a}
.rl-glossary-item p{font-size:14px;color:#555;line-height:1.7;max-width:none}

/* === INFO BOXES === */
.rl-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.rl-info-box{padding:20px;border:1px solid #e8e4dc;border-top:2px solid #c9a84c}
.rl-info-box h3{font-size:15px;font-weight:700;color:#1a1a1a;margin-bottom:6px}
.rl-info-box p{font-size:13px;color:#777;line-height:1.6;max-width:none;margin-bottom:0}

/* === FOOTER === */
.rl-footer{border-top:2px solid #c9a84c;padding:32px 0;background:#faf8f4}
.rl-footer-inner{max-width:1140px;margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap}
.rl-footer h4{font-size:14px;color:#1a1a1a;margin-bottom:8px}
.rl-footer p,.rl-footer a{font-size:12px;color:#888;font-family:-apple-system,sans-serif;line-height:1.8}
.rl-footer a{display:block}
.rl-footer a:hover{color:#8B1A1A}

/* === RESPONSIVE === */
@media(max-width:900px){
    .rl-hero-inner{flex-direction:column;text-align:center}
    .rl-hero-body h1{font-size:24px}
    .rl-featured{grid-template-columns:1fr}
    .rl-cards{grid-template-columns:1fr}
    .rl-cols{grid-template-columns:1fr}
    .rl-leaders-grid{grid-template-columns:1fr}
    .rl-mission-grid{grid-template-columns:1fr}
    .rl-contrib-grid{grid-template-columns:1fr}
    .rl-info-grid{grid-template-columns:1fr}
    .rl-nav{gap:2px}
    .rl-nav > a,.rl-nav > .rl-dd > a{font-size:12px;padding:6px 8px}
    .rl-nl-bar{flex-direction:column;text-align:center}
    .rl-footer-inner{flex-direction:column}
    .rl-article-row{flex-direction:column}
    .rl-article-row .thumb{width:100%;height:160px}
}
@media(max-width:600px){
    .rl-header-inner{flex-direction:column;gap:12px}
    .rl-page-hero h1{font-size:22px}
    .rl-cards{grid-template-columns:1fr}
}

/* === WP OVERRIDES === */
.wp-block-image img{max-width:100%;height:auto}
.entry-content p{font-size:16px;line-height:1.8;color:#333;margin-bottom:20px}
.entry-content h2{font-size:22px;margin:32px 0 12px}
.entry-content h3{font-size:18px;margin:24px 0 8px}
.entry-content ul,.entry-content ol{margin:0 0 20px 24px;font-size:15px;color:#555}
.entry-content li{margin-bottom:6px}
.entry-content blockquote{border-left:3px solid #c9a84c;padding:12px 20px;margin:20px 0;background:#faf8f4;font-style:italic;color:#555}
.entry-content table{width:100%;border-collapse:collapse;margin:20px 0}
.entry-content th{background:#faf8f4;font-family:-apple-system,sans-serif;font-size:12px;text-transform:uppercase;letter-spacing:0.06em;padding:8px 12px;border:1px solid #e8e4dc;text-align:left}
.entry-content td{padding:8px 12px;border:1px solid #e8e4dc;font-size:14px}


.rl-dd { position: relative; }
.rl-dd > a { cursor: pointer; }
.rl-dd > a::after { content: ' \25BE'; font-size: 10px; opacity: .4; }
.rl-dd-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e0ddd5; border-radius: 6px; min-width: 240px; padding: 6px 0; z-index: 1000; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.rl-dd:hover .rl-dd-menu { display: block; }
.rl-dd-menu a { display: block; padding: 9px 18px; color: #1a2d4d; text-decoration: none; font-size: 13.5px; font-weight: 400; border-left: 3px solid transparent; }
.rl-dd-menu a:hover { background: #faf8f5; color: #8B0000; border-left-color: #8B0000; }
.rl-nav .rl-sub-btn { background: #8B0000; color: #fff !important; padding: 7px 18px; border-radius: 4px; font-size: 13px; margin-left: 8px; transition: background .15s; }
.rl-nav .rl-sub-btn:hover { background: #6d0000; }
@media (max-width: 900px) {
    .rl-nav { gap: 2px; }
    .rl-nav > a, .rl-nav > .rl-dd > a { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 640px) {
    .rl-dd-menu { position: fixed; left: 0; right: 0; top: auto; border-radius: 0; min-width: 100vw; }
}

/* ═══ Category Filter Bar ═══ */
.rl-category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; padding: 0; }
.rl-category-filter a { display: inline-block; padding: 6px 14px; border: 1px solid #e0ddd5; border-radius: 4px; text-decoration: none; color: #1a2d4d; font-size: 13px; font-weight: 500; transition: all .15s; }
.rl-category-filter a:hover, .rl-category-filter a.active { background: #8B0000; color: #fff; border-color: #8B0000; }



/* ═══ Two-column layout ═══ */
.rl-two-col { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
@media (max-width: 900px) { .rl-two-col { grid-template-columns: 1fr; } }
.rl-sidebar-box { background: #faf8f5; border: 1px solid #e8e4dc; border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.rl-sidebar-box h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: #1a2d4d; }
.rl-sidebar-box p { font-size: 13px; color: #666; line-height: 1.5; margin: 0 0 12px; }
.rl-sidebar-box a { display: block; font-size: 13px; color: #1a2d4d; text-decoration: none; padding: 4px 0; }
.rl-sidebar-box a:hover { color: #8B0000; }

/* ═══ Pagination ═══ */
.pagination { margin: 32px 0; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 4px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #e0ddd5; border-radius: 4px; text-decoration: none; color: #1a2d4d; font-size: 14px; }
.pagination .page-numbers.current { background: #8B0000; color: #fff; border-color: #8B0000; }
.pagination .page-numbers:hover { border-color: #8B0000; }

/* ═══ Content formatting ═══ */
.rl-content { max-width: 780px; }
.rl-content p { font-size: 16px; line-height: 1.7; color: #333; margin-bottom: 16px; }
.rl-content h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 32px 0 12px; border-bottom: 2px solid #c9a84c; padding-bottom: 8px; }
.rl-content h3 { font-size: 18px; font-weight: 700; color: #1a2d4d; margin: 24px 0 8px; }
.rl-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.rl-content table th { background: #f5f3ee; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #666; border-bottom: 2px solid #e0ddd5; }
.rl-content table td { padding: 10px 14px; border-bottom: 1px solid #f0ece4; color: #333; }
.rl-content table tr:hover { background: #faf8f5; }
.rl-content ul { padding-left: 20px; margin: 12px 0; }
.rl-content li { font-size: 16px; line-height: 1.7; color: #333; margin-bottom: 6px; }
.rl-content li a { color: #1a2d4d; font-weight: 500; }
.rl-content li a:hover { color: #8B0000; }
.rl-content em { color: #999; font-size: 13px; }

/* ═══ Signup inline ═══ */
.rl-signup-inline { background: #faf8f5; border: 1px solid #e8e4dc; border-radius: 8px; padding: 24px; text-align: center; margin: 32px 0; }
.rl-signup-inline h3 { font-size: 18px; margin: 0 0 8px; }
.rl-signup-inline p { font-size: 14px; color: #666; margin: 0 0 16px; }

/* ═══ Form styles ═══ */
.rl-form .rl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rl-form .rl-form-field { margin-bottom: 14px; }
.rl-form label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; }
.rl-form input[type="text"], .rl-form input[type="email"], .rl-form input[type="tel"], .rl-form select, .rl-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; }
.rl-form input:focus, .rl-form select:focus, .rl-form textarea:focus { outline: none; border-color: #8B0000; }

/* ═══ Mobile responsive fixes ═══ */
@media (max-width: 768px) {
    .rl-form .rl-form-row { grid-template-columns: 1fr; }
    .rl-card { flex-direction: column; }
    .rl-card-img { width: 100%; height: 160px; }
}
