/*
 Theme Name:   Veteran School Directory Theme
 Theme URI:    https://veteranschooldirectory.com
 Description:  Child theme of FoxDog Universal for Veteran School Directory
 Author:       FoxDog Media
 Author URI:   https://foxdogmedia.com
 Template:     foxdog-universal-v1.4.1
 Version:      1.2.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  veteranschooldirectory
*/

/* ==========================================================================
   TYPOGRAPHY - Work Sans (Clean Military Style)
   ========================================================================== */

body,
.site-title,
.entry-title,
h1, h2, h3, h4, h5, h6,
.tile-title,
.hero-title,
.section-title,
.main-navigation a,
.cat-pill {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Heading weights */
h1, .entry-title, .hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2, .section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3, h4, .tile-title {
    font-weight: 600;
}

/* Navigation typography */
.main-navigation a {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

/* Body text */
body {
    font-weight: 400;
    line-height: 1.7;
}

/* Strong emphasis */
strong, b {
    font-weight: 600;
}


/* ==========================================================================
   MATERIAL ICONS STYLING
   ========================================================================== */

.material-icons,
.material-icons-outlined {
    font-size: inherit;
    vertical-align: middle;
    line-height: 1;
}

.title-icon {
    font-size: 1.25rem;
    margin-right: 0.375rem;
    color: #f4d03f;
}

.cat-icon {
    font-size: 1.125rem;
}

.stat-icon {
    font-size: 1.25rem;
}

.rank-arrow {
    font-size: 1.125rem;
}

.best-of-icon {
    font-size: 1.5rem;
}

/* Icon in links and buttons */
.view-all-rankings .material-icons-outlined,
.view-all-link .material-icons-outlined,
.best-of-link .material-icons-outlined {
    font-size: 1rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}


/* ==========================================================================
   Full-Width Header Reset
   ========================================================================== */

body {
    margin: 0 !important;
    padding: 0 !important;
}

#page.site {
    margin: 0 !important;
    padding: 0 !important;
}

.site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.site-main > .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-header-compact + .site-main,
.site-header-compact + main,
.site-header + .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   Compact Header with Military Blue/Gold Theme
   ========================================================================== */

.site-header,
.site-header-compact {
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    width: 100%;
}

.site-header-compact .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    margin: 0 auto;
}

.site-header-compact .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Site Logo/Title */
.site-title-logo {
    margin: 0;
    line-height: 1;
}

.site-title-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    gap: 0.25rem;
}

.logo-part-1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-part-2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f4d03f;
    letter-spacing: -0.02em;
}

.logo-part-3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.01em;
}

.logo-accent {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #f4d03f;
    border-radius: 2px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    background: rgba(244, 208, 63, 0.2);
    color: #f4d03f;
}

/* Search Form */
.header-search .search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.header-search .search-field {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.875rem;
    width: 180px;
}

.header-search .search-field::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-search .search-submit {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }
    .header-right {
        display: none;
    }
}


/* ==========================================================================
   STATS DASHBOARD - ESPN-Style Numbers Bar
   ========================================================================== */

.stats-dashboard {
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    padding: 1rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-bottom: 3px solid #f4d03f;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #f4d03f;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.stat-trending {
    flex-direction: row;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.stat-trending .stat-icon {
    font-size: 1.25rem;
    color: #f4d03f;
}

.stat-trending .stat-label {
    margin-top: 0;
    color: #f4d03f;
}


/* ==========================================================================
   RANKINGS SHOWCASE - ESPN/US News Style
   ========================================================================== */

.rankings-showcase {
    background: #f8fafc;
    padding: 2rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.rankings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Ranking Widget (Left & Right columns) - Compact for Top 10 */
.ranking-widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ranking-header {
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ranking-badge {
    background: #f4d03f;
    color: #0c3c60;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-badge.ivy {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #f4d03f;
}

.ranking-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.ranking-year {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.ranking-list {
    padding: 0.25rem 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: #f8fafc;
}

.rank-number {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #f4d03f 0%, #d4ac0d 100%);
    color: #1a1a1a;
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #1a1a1a;
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: white;
}

.rank-number.rank-4,
.rank-number.rank-5,
.rank-number.rank-6,
.rank-number.rank-7,
.rank-number.rank-8,
.rank-number.rank-9,
.rank-number.rank-10 {
    background: #e5e7eb;
    color: #374151;
}

.rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.rank-school {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-byline {
    font-size: 0.6875rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-item:hover .rank-byline {
    color: #374151;
}

.rank-badge {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    text-transform: uppercase;
    width: fit-content;
}

.rank-badge.hot {
    background: #fef3c7;
    color: #92400e;
}

.rank-badge.new {
    background: #dcfce7;
    color: #166534;
}

.rank-arrow {
    color: #9ca3af;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.ranking-item:hover .rank-arrow {
    transform: translateX(2px);
    color: #0c3c60;
}

.view-all-rankings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.625rem;
    background: #f8fafc;
    color: #0c3c60;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.view-all-rankings:hover {
    background: #0c3c60;
    color: white;
}


/* ==========================================================================
   FEATURED HERO CARD - Badges INSIDE Content (Fixed)
   ========================================================================== */

.featured-hero-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

.featured-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-hero-card:hover .featured-image img {
    transform: scale(1.03);
}

.featured-content {
    padding: 1.5rem;
}

/* Badges now inside content area, not overlapping image */
.featured-badge-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.featured-badge .material-icons {
    font-size: 0.875rem;
}

.featured-badge.editors-pick {
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    color: #f4d03f;
}

.featured-badge.trending {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.featured-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.featured-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.featured-title a:hover {
    color: #0c3c60;
}

.featured-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 1rem;
}

.featured-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}


/* ==========================================================================
   CATEGORY BANNER (Enhanced)
   ========================================================================== */

.category-banner {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: #f1f5f9;
    color: #374151;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.cat-pill:hover {
    border-color: #0c3c60;
    background: #e8f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 60, 96, 0.15);
}

.cat-pill .cat-icon {
    font-size: 1.125rem;
    color: #0c3c60;
}

.cat-count {
    background: #0c3c60;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}


/* ==========================================================================
   BEST OF CARDS SECTION
   ========================================================================== */

.best-of-section {
    padding: 2rem 0;
}

.best-of-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.best-of-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.best-of-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.best-of-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.best-of-header.public {
    background: linear-gradient(135deg, #1e8449 0%, #145a32 100%);
    color: white;
}

.best-of-header.gi-bill {
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    color: white;
}

.best-of-header.deals {
    background: linear-gradient(135deg, #d35400 0%, #a04000 100%);
    color: white;
}

.best-of-header .best-of-icon {
    font-size: 1.5rem;
}

.best-of-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.best-of-tag {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.best-of-list {
    padding: 0.5rem 0;
}

.best-of-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.best-of-item:last-child {
    border-bottom: none;
}

.best-of-item:hover {
    background: #f8fafc;
}

.best-of-rank {
    font-size: 1rem;
    font-weight: 800;
    color: #0c3c60;
    min-width: 28px;
}

.best-of-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.best-of-item:hover .best-of-name {
    color: #0c3c60;
}

.best-of-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.875rem;
    background: #f8fafc;
    color: #0c3c60;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.best-of-link:hover {
    background: #0c3c60;
    color: white;
}


/* ==========================================================================
   TRENDING SECTION
   ========================================================================== */

.trending-section {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.trending-section .section-header {
    margin-bottom: 1.5rem;
}

.trending-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-section .section-title .title-icon {
    color: #ef4444;
}

.section-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trending-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.trending-number {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-style: italic;
}

.trending-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-card:hover .trending-image img {
    transform: scale(1.05);
}

.trending-content {
    padding: 1rem;
}

.trending-category {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #0c3c60;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.trending-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.trending-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.trending-title a:hover {
    color: #0c3c60;
}

.trending-meta {
    font-size: 0.75rem;
    color: #6b7280;
}


/* ==========================================================================
   LATEST SECTION
   ========================================================================== */

.latest-section {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}


/* ==========================================================================
   Articles Grid
   ========================================================================== */

.recent-grid,
.category-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0c3c60;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #f4d03f;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #1a5276;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
}

.view-all-link:hover {
    color: #f4d03f;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.articles-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.articles-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1100px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Tiles */
.article-tile {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tile-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-tile:hover .tile-image img {
    transform: scale(1.05);
}

.tile-category-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tile-content {
    padding: 1rem;
}

.tile-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.tile-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.tile-title a:hover {
    color: #1a5276;
}

.tile-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #6b7280;
}

.tile-separator {
    color: #9ca3af;
}


/* ==========================================================================
   RESPONSIVE - Rankings & New Sections
   ========================================================================== */

@media (max-width: 1100px) {
    .rankings-container {
        grid-template-columns: 1fr 1fr;
    }

    .featured-hero-card {
        grid-column: span 2;
        order: -1;
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .best-of-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .best-of-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .stats-container {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.6875rem;
    }

    .rankings-container {
        grid-template-columns: 1fr;
    }

    .featured-hero-card {
        grid-column: span 1;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .best-of-grid {
        grid-template-columns: 1fr;
    }

    .best-of-card:last-child {
        grid-column: span 1;
    }

    .category-banner {
        padding: 1rem;
        gap: 0.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .cat-pill {
        flex-shrink: 0;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 550px) {
    .stats-dashboard {
        padding: 0.75rem 0;
    }

    .stats-container {
        gap: 1rem;
    }

    .stat-item {
        min-width: 70px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-trending {
        display: none;
    }

    .featured-content {
        padding: 1rem;
    }

    .featured-title {
        font-size: 1.125rem;
    }

    .featured-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
}


/* ==========================================================================
   Mobile Responsive (Original styles preserved)
   ========================================================================== */

/* Tablet breakpoint */
@media (max-width: 900px) {
    .site-header-compact .container {
        padding: 0 1rem;
    }

    .header-inner {
        padding: 0.25rem 0;
    }

    .logo-part-1,
    .logo-part-2,
    .logo-part-3 {
        font-size: 1.25rem;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Header mobile */
    .site-header-compact {
        padding: 0.375rem 0;
    }

    .site-title-logo a {
        flex-wrap: wrap;
        gap: 0.125rem;
    }

    .logo-part-1,
    .logo-part-2 {
        font-size: 1.125rem;
    }

    .logo-part-3 {
        font-size: 1rem;
    }

    .logo-accent {
        width: 30px;
        height: 2px;
        bottom: -2px;
    }

    .mobile-menu-toggle {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    /* Section titles mobile */
    .recent-grid,
    .category-section {
        padding: 1.25rem 0;
    }

    .section-header {
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.125rem;
        padding-bottom: 0.375rem;
    }

    .view-all-link {
        font-size: 0.8125rem;
    }

    /* Article tiles mobile */
    .articles-grid {
        gap: 1rem;
    }

    .tile-content {
        padding: 0.875rem;
    }

    .tile-title {
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    .tile-meta {
        font-size: 0.6875rem;
    }

    .tile-category-badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }

    /* Container padding mobile */
    .site-main > .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Small mobile breakpoint */
@media (max-width: 400px) {
    .logo-part-1,
    .logo-part-2 {
        font-size: 1rem;
    }

    .logo-part-3 {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Sticky Navigation
   ========================================================================== */

.site-header-compact {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header-compact.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Article Page Styles
   ========================================================================== */

.single .entry-title,
.single h1.entry-title,
article h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0c3c60;
    margin-bottom: 1rem;
}

.single .entry-content h2,
article.post .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f4d03f;
    color: #0c3c60;
}

.entry-meta,
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu {
    background: #0c3c60;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-inner {
    padding: 1rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    padding: 0.875rem 0.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item a {
    color: #f4d03f;
    background: rgba(255,255,255,0.05);
}

.mobile-search {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.mobile-search .search-field::placeholder {
    color: rgba(255,255,255,0.6);
}

.mobile-search .search-submit {
    padding: 0.75rem 1.25rem;
    background: #f4d03f;
    color: #0c3c60;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-search .search-submit:hover {
    background: #f7dc6f;
}

/* Hide mobile menu on desktop */
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}


/* ==========================================================================
   FOOTER - Military Themed
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #0c3c60 0%, #071e31 100%);
    color: white;
    padding: 0;
    margin-top: 3rem;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f4d03f;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(244, 208, 63, 0.3);
}

.footer-title-icon {
    font-size: 1.25rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-category-list,
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-category-list li,
.footer-link-list li {
    margin-bottom: 0.625rem;
}

.footer-category-list a,
.footer-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.375rem 0;
    transition: all 0.2s ease;
}

.footer-link-list a {
    justify-content: flex-start;
}

.footer-category-list a:hover,
.footer-link-list a:hover {
    color: #f4d03f;
    padding-left: 0.5rem;
}

.category-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.affiliate-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.affiliate-notice .material-icons-outlined {
    font-size: 1rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(244, 208, 63, 0.15);
    color: #f4d03f;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trust-badge .material-icons {
    font-size: 1rem;
}

/* Footer Responsive */
@media (max-width: 1000px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-about {
        grid-column: span 1;
    }

    .footer-title {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .affiliate-notice {
        text-align: center;
    }
}


/* ==========================================================================
   TWO-ROW HEADER - Amazon Style
   ========================================================================== */

.site-header-two-row {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* TOP ROW: Logo + Search */
.header-top {
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    padding: 0.75rem 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Logo styling */
.site-title-logo {
    margin: 0;
    line-height: 1;
    flex-shrink: 0;
}

.site-title-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.25rem;
}

.logo-part-1 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-part-2 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #f4d03f;
    letter-spacing: -0.02em;
}

.logo-part-3 {
    font-size: 1.375rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.01em;
}

/* Large Search Bar */
.header-search-large {
    flex: 1;
    max-width: 700px;
}

.header-search-large .search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-search-large .search-icon {
    padding: 0 0.75rem;
    color: #6b7280;
    font-size: 1.25rem;
}

.header-search-large .search-field {
    flex: 1;
    border: none;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: transparent;
}

.header-search-large .search-field::placeholder {
    color: #9ca3af;
}

.header-search-large .search-field:focus {
    outline: none;
}

.header-search-large .search-submit {
    background: #f4d03f;
    color: #0c3c60;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search-large .search-submit:hover {
    background: #f7dc6f;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle .material-icons {
    font-size: 1.75rem;
}

/* BOTTOM ROW: Navigation Strip */
.header-nav-strip {
    background: #071e31;
    padding: 0;
}

.header-nav-strip .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

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

.main-navigation .nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.main-navigation .nav-menu > li > a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.main-navigation .nav-menu > li.current-menu-item > a,
.main-navigation .nav-menu > li.current_page_item > a {
    background: rgba(244, 208, 63, 0.1);
    border-bottom-color: #f4d03f;
    color: #f4d03f;
}

.nav-icon {
    font-size: 1.125rem;
}

/* Remove old header styles that conflict */
.site-header-compact {
    display: none !important;
}

/* Header Responsive */
@media (max-width: 900px) {
    .header-search-large {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-nav-strip {
        display: none;
    }

    .logo-part-1,
    .logo-part-2,
    .logo-part-3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 600px) {
    .header-top {
        padding: 0.5rem 0;
    }

    .logo-part-1,
    .logo-part-2 {
        font-size: 1rem;
    }

    .logo-part-3 {
        font-size: 0.875rem;
    }
}

/* Mobile Menu Styles (kept from original) */
.mobile-menu {
    background: #0c3c60;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-inner {
    padding: 1rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    padding: 0.875rem 0.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item a {
    color: #f4d03f;
    background: rgba(255,255,255,0.05);
}

.mobile-search {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.mobile-search .search-field::placeholder {
    color: rgba(255,255,255,0.6);
}

.mobile-search .search-submit {
    padding: 0.75rem 1.25rem;
    background: #f4d03f;
    color: #0c3c60;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-search .search-submit:hover {
    background: #f7dc6f;
}

/* Hide mobile menu on desktop */
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}


/* ==========================================================================
   FEATURED COLUMN - Center Column with Stacked Articles
   ========================================================================== */

.featured-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Primary featured card (first one with image) */
.featured-card-primary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

.featured-card-primary .featured-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-card-primary .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card-primary:hover .featured-image img {
    transform: scale(1.03);
}

.featured-card-primary .featured-content {
    padding: 1rem 1.25rem;
}

.featured-card-primary .featured-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.625rem;
}

/* Secondary featured cards (no image, compact) - aligned with primary */
.featured-card-secondary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.featured-card-secondary:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.featured-card-secondary .featured-content {
    padding: 1rem 1.25rem;
}

.featured-card-secondary .featured-badge-container {
    margin-bottom: 0.5rem;
}

.featured-card-secondary .featured-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.featured-card-secondary .featured-meta {
    font-size: 0.75rem;
}

/* Shared featured card styles */
.featured-card .featured-badge-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.625rem;
}

.featured-card .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.featured-card .featured-badge .material-icons {
    font-size: 0.75rem;
}

.featured-card .featured-badge.editors-pick {
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    color: #f4d03f;
}

.featured-card .featured-badge.trending {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.featured-card .featured-badge.new-article {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.featured-card .featured-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.featured-card .featured-title a:hover {
    color: #0c3c60;
}

.featured-card .featured-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 0.75rem;
}

.featured-card .featured-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Responsive adjustments for featured column */
@media (max-width: 1100px) {
    .featured-column {
        grid-column: span 2;
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .featured-card-primary {
        flex: 1 1 100%;
    }

    .featured-card-secondary {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .featured-column {
        grid-column: span 1;
        flex-direction: column;
    }

    .featured-card-secondary {
        flex: 1 1 100%;
    }
}


/* ==========================================================================
   COMPACT RANKING WIDGETS - Right Column with Two Lists
   ========================================================================== */

.ranking-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Compact ranking widget - optimized for Top 10 */
.ranking-widget-compact {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ranking-widget-compact .ranking-header {
    padding: 0.5rem 0.875rem;
}

.ranking-widget-compact .ranking-title {
    font-size: 0.8125rem;
}

.ranking-widget-compact .ranking-badge {
    font-size: 0.5625rem;
    padding: 0.25rem 0.4rem;
}

.ranking-widget-compact .ranking-list {
    padding: 0.125rem 0;
}

.ranking-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.ranking-item-compact:last-child {
    border-bottom: none;
}

.ranking-item-compact:hover {
    background: #f8fafc;
}

.ranking-item-compact .rank-number {
    width: 20px;
    height: 20px;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 4px;
}

.ranking-item-compact .rank-school {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-item-compact .rank-arrow {
    font-size: 0.875rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.ranking-item-compact:hover .rank-arrow {
    transform: translateX(2px);
    color: #0c3c60;
}

.ranking-widget-compact .view-all-rankings {
    padding: 0.5rem;
    font-size: 0.6875rem;
}

/* Public universities header variant */
.public-header {
    background: linear-gradient(135deg, #1e8449 0%, #145a32 100%);
}

.public-badge {
    background: #f4d03f !important;
    color: #1e8449 !important;
}

/* ==========================================================================
   NO YELLOW RIBBON WARNING WIDGET
   ========================================================================== */

.ranking-widget-warning {
    margin-top: 1rem;
    border: 2px solid #dc3545;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.warning-header {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%) !important;
    padding: 0.75rem 1rem !important;
}

.warning-badge {
    background: #fff !important;
    color: #dc3545 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
}

.warning-badge .material-icons-outlined {
    font-size: 18px;
}

.ranking-widget-warning .ranking-title {
    font-size: 0.9375rem;
    color: #fff;
}

.ranking-list-compact {
    padding: 0.5rem 0;
}

.ranking-item-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.ranking-item-warning:last-child {
    border-bottom: none;
}

.ranking-item-warning .warning-icon {
    color: #dc3545;
    font-size: 16px;
    flex-shrink: 0;
}

.ranking-item-warning .rank-school {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
}

.ranking-item-warning .rank-byline,
.warning-text {
    font-size: 0.6875rem;
    color: #dc3545;
    font-weight: 500;
}

.warning-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0;
    background: #fff5f5;
    border-top: 1px solid #f8d7da;
    font-size: 0.75rem;
    color: #721c24;
}

.warning-note .material-icons-outlined {
    font-size: 16px;
    color: #dc3545;
}

/* School name links in ranking tables */
.school-name-link {
    color: #1a365d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.school-name-link:hover {
    color: #c9a227;
    text-decoration: underline;
}

/* Responsive - Right column */
@media (max-width: 1100px) {
    .ranking-column {
        flex-direction: row;
    }

    .ranking-widget-compact {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .ranking-column {
        flex-direction: column;
    }

    .ranking-widget-compact {
        flex: none;
    }
}


/* ==========================================================================
   RANKING ITEM WITH STATS - School name + subtitle details
   ========================================================================== */

.rank-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.rank-details .rank-school {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.rank-stats {
    font-size: 0.625rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.ranking-item-compact:hover .rank-stats {
    color: #6b7280;
}


/* ==========================================================================
   RANKING PAGE TEMPLATES - Full List Pages
   ========================================================================== */

.ranking-page {
    padding: 2rem 0 3rem;
    background: #f8fafc;
    min-height: 80vh;
}

/* Page Header */
.ranking-page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.ranking-page-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    color: #f4d03f;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.ranking-page-badge.public-badge {
    background: linear-gradient(135deg, #1e8449 0%, #145a32 100%);
}

.ranking-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: #0c3c60;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.ranking-page-title .title-icon {
    font-size: 2.5rem;
    color: #f4d03f;
}

.ranking-page-subtitle {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.ranking-methodology {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #e8f4f8;
    border: 1px solid #b8d4e3;
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: #0c3c60;
    text-align: left;
}

.ranking-methodology .material-icons-outlined {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Sort Controls */
.ranking-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.ranking-count {
    font-size: 0.9375rem;
    color: #6b7280;
}

.ranking-count span {
    font-weight: 700;
    color: #0c3c60;
}

.ranking-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-sort label {
    font-size: 0.875rem;
    color: #6b7280;
}

.ranking-sort select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    cursor: pointer;
    color: #1a1a1a;
}

.ranking-sort select:focus {
    outline: none;
    border-color: #0c3c60;
}

/* Rankings Table */
.ranking-table-wrapper {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.ranking-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.ranking-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ranking-table tbody tr:hover {
    background: #f8fafc;
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Columns */
.col-rank {
    width: 80px;
}

.col-school {
    min-width: 200px;
}

.col-usnews,
.col-tuition,
.col-savings {
    width: 120px;
}

.col-benefit {
    width: 180px;
}

.col-location {
    width: 150px;
}

.col-action {
    width: 60px;
    text-align: center;
}

/* Table Rank Badge */
.table-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 6px;
}

.table-rank.public {
    background: linear-gradient(135deg, #1e8449 0%, #145a32 100%);
}

.table-rank.rank-1 {
    background: linear-gradient(135deg, #f4d03f 0%, #d4ac0d 100%);
    color: #1a1a1a;
}

.table-rank.rank-2 {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #1a1a1a;
}

.table-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: white;
}

/* School Info */
.school-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.school-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
}

.school-type {
    font-size: 0.75rem;
    color: #6b7280;
}

/* US News Rank */
.usnews-rank {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0c3c60;
}

/* Savings/Tuition */
.savings-amount,
.tuition-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #1e8449;
}

.tuition-amount {
    color: #0c3c60;
}

.savings-label,
.tuition-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Benefit Badge */
.benefit-text,
.benefit-badge {
    font-size: 0.8125rem;
    color: #374151;
}

.benefit-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #e8f4f8;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0c3c60;
}

.benefit-badge.hazlewood {
    background: #fef3c7;
    color: #92400e;
}

.benefit-badge.calvet {
    background: #dcfce7;
    color: #166534;
}

.benefit-badge.unlimited {
    background: #e0e7ff;
    color: #3730a3;
}

/* Location */
.location-text {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* View Button */
.view-school-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-school-btn:hover {
    background: #0c3c60;
    color: white;
}

.view-school-btn .material-icons-outlined {
    font-size: 1.125rem;
}

/* Pagination */
.ranking-pagination {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
}

/* State Benefits Info */
.state-benefits-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.state-benefits-info h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0c3c60;
    margin: 0 0 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.benefit-card {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
}

.benefit-card strong {
    display: block;
    font-size: 0.9375rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.8125rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.hazlewood-card {
    background: #fef9e7;
    border: 1px solid #f4d03f;
}

.calvet-card {
    background: #e8f8f0;
    border: 1px solid #1e8449;
}

/* CTA Section */
.ranking-cta {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.ranking-cta h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.ranking-cta p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin: 0 0 1.25rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #f4d03f;
    color: #0c3c60;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.cta-button.public {
    background: #f4d03f;
}

/* Responsive */
@media (max-width: 900px) {
    .ranking-page-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .ranking-page-title .title-icon {
        font-size: 2rem;
    }

    .ranking-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ranking-page {
        padding: 1rem 0 2rem;
    }

    .ranking-page-header {
        margin-bottom: 1.5rem;
    }

    .ranking-page-title {
        font-size: 1.25rem;
    }

    .ranking-page-subtitle {
        font-size: 0.9375rem;
    }

    .ranking-methodology {
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
    }

    .ranking-cta {
        padding: 1.5rem;
    }

    .ranking-cta h3 {
        font-size: 1.125rem;
    }
}


/* ==========================================================================
   AUTHOR BIO - Military Themed Styling
   ========================================================================== */

.author-bio {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #0c3c60;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 15px rgba(12, 60, 96, 0.1);
    position: relative;
    overflow: hidden;
}

.author-bio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0c3c60 0%, #f4d03f 50%, #0c3c60 100%);
}

.author-bio-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.author-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #0c3c60;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(12, 60, 96, 0.2);
}

.author-info {
    flex: 1;
}

.author-info h3.author-name {
    margin: 0 0 0.375rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0c3c60;
}

.author-role {
    margin: 0;
    font-size: 0.8125rem;
    color: #f4d03f;
    background: #0c3c60;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-description {
    margin-bottom: 1.25rem;
    color: #374151;
    line-height: 1.7;
    font-size: 0.9375rem;
    padding: 1rem;
    background: rgba(12, 60, 96, 0.03);
    border-radius: 8px;
    border-left: 3px solid #f4d03f;
}

.author-description p {
    margin: 0;
}

.author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.author-posts-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0c3c60;
    font-size: 0.9375rem;
    font-weight: 600;
    background: rgba(244, 208, 63, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.author-posts-count svg {
    color: #f4d03f;
}

.view-all-posts {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #0c3c60 0%, #1a5276 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(12, 60, 96, 0.3);
}

.view-all-posts:hover {
    background: linear-gradient(135deg, #1a5276 0%, #0c3c60 100%);
    color: #f4d03f;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 60, 96, 0.4);
}

.view-all-posts svg {
    transition: transform 0.2s ease;
}

.view-all-posts:hover svg {
    transform: translate(3px, -3px);
}

/* Author Bio Mobile */
@media (max-width: 600px) {
    .author-bio {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .author-bio-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .author-avatar img {
        width: 80px;
        height: 80px;
    }

    .author-info h3.author-name {
        font-size: 1.25rem;
    }

    .author-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .view-all-posts {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   RELATED POSTS - "You Might Also Like" Section
   ========================================================================== */

.related-posts {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.related-posts-title {
    margin: 0 0 1.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0c3c60;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0c3c60 0%, #f4d03f 100%);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(12, 60, 96, 0.15);
    border-color: #0c3c60;
}

.related-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.25rem;
}

.related-post-title {
    margin: 0 0 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-title a:hover {
    color: #0c3c60;
}

.related-post-meta {
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
}

.related-post-meta time {
    color: #0c3c60;
    font-weight: 600;
}

/* Related Posts Responsive */
@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-posts {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .related-posts-title {
        font-size: 1.25rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-post-content {
        padding: 1rem;
    }

    .related-post-title {
        font-size: 0.9375rem;
    }
}


/* ==========================================================================
   POST SHARING - Enhanced Social Buttons
   ========================================================================== */

.post-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sharing-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.sharing-buttons {
    display: flex;
    gap: 0.625rem;
}

.sharing-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.2s ease;
}

.sharing-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sharing-buttons .share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.sharing-buttons .share-facebook:hover {
    background: #4267b2;
    border-color: #4267b2;
    color: white;
}

.sharing-buttons .share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

@media (max-width: 600px) {
    .post-sharing {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
