/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary: #ff7e03; /* AALBC Orange */
    --secondary: #4a148c; /* Deep Purple */
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
    
    --font-main: 'Montserrat', Helvetica, Arial, sans-serif;
    --font-serif: 'Montserrat', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    /* FIX: Stops mobile browsers from auto-scaling text sizes */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-weight: 400; 
    margin: 0;
    padding: 0;
    /* FIX: Set a solid 16px baseline */
    font-size: 16px; 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: #333; 
    margin-top: 0;
    font-weight: bold; 
}

a { color: var(--secondary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

#return-to-top, .back-to-top, .scroll-up { display: none !important; }

/* ==========================================================================
   2. GLOBAL LAYOUT (GRID)
   ========================================================================== */
.container {
    width: 100%; 
    max-width: 1260px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    /* Increased 300px -> 340px to safely fit 336px ads */
    grid-template-columns: minmax(0, 1fr) 340px; 
    gap: 30px;
    box-sizing: border-box;
}

/* NEW: Full Width Container (No Sidebar Grid) */
.container-full {
    width: 100%; 
    max-width: 1260px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    display: block; /* Ensures content stacks normally, no sidebars */
}

/* FLEX CONTAINER FOR SIDEBAR PAGES (Added 2026 Update) */
.container-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1260px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

main { 
    min-width: 0; 
    width: 100%; 
    flex: 1; /* For flex layouts */
}

aside {
    width: 336px; /* Standard ad width */
    flex-shrink: 0; 
}

@media (max-width: 992px) {
    .container-flex {
        flex-direction: column; 
    }
    aside {
        width: 100%;
        margin-top: 40px;
    }
}

@media (max-width: 900px) {
    .container { 
        grid-template-columns: 1fr; 
        padding: 1rem;
        display: block; 
    } 
}

.section-block, .widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid #eaeaea;
    width: 100%;
    box-sizing: border-box;
}

.widget h4 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.2rem;
    font-family: var(--font-main);
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* ==========================================================================
   3. BUTTONS (Standard & Hero)
   ========================================================================== */
.btn-main, a.buybutton, input[type="submit"][value*="Buy"] {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 12px 25px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    box-shadow: var(--shadow) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    font-family: var(--font-main);
}

.btn-main:hover, a.buybutton:hover {
    background: #e66e00 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 126, 3, 0.3) !important;
}

.hero .btn-main {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    height: auto !important;
    line-height: 1.2 !important;
    background-color: #ff6600 !important;
    color: #f8f9fa !important;
}

.hero .btn-main img.btn-icon, 
.hero .btn-main i {
    height: 20px !important;
    width: auto !important;
    margin-right: 10px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.hero .btn-main span.star-icon {
    font-size: 1.2rem;
    line-height: 1;
    color: #000000 !important;
    margin-right: 8px;
}

.hero .btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4) !important;
    background-color: #ff7711 !important;
    color: #000000 !important;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.nav-logo { margin-right: 15px; flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 50px; width: auto; display: block;  transition: transform 0.3s ease, filter 0.3s ease; }
.nav-logo:hover img { transform: translateY(-3px); filter: drop-shadow(0 5px 8px rgba(255, 126, 3, 0.6)); }

.header-search {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 5px 15px;
    width: 250px;
    margin-right: auto;
    flex-shrink: 0;
}
.header-search input { border: none; background: transparent; outline: none; padding: 0; font-size: 0.9rem; flex-grow: 1; color: #555; width: 100%; font-family: var(--font-main); }
.header-search button { border: none; background: transparent; cursor: pointer; color: var(--secondary); font-size: 1.1rem; padding: 0 0 0 8px; }
.header-search button:hover { color: var(--primary); }

.main-navigation { flex-shrink: 1; }
.main-navigation ul { display: flex; gap: 15px; list-style: none; padding: 0; margin: 0; align-items: center; }
.main-navigation a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 4px; white-space: nowrap; font-family: var(--font-main); }
.main-navigation a:hover, .main-navigation a:hover i { color: var(--primary); }
.main-navigation i { color: #666; transition: color 0.3s; }

.mobile-menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: #333; margin-left: 15px; }

@media (max-width: 1100px) {
    .nav-container { flex-wrap: wrap; justify-content: space-between; }
    .header-search { margin-right: 0; order: 2; width: 100%; margin-top: 10px; }
    .nav-logo { margin-right: 0; order: 1; }
    .mobile-menu-toggle { display: block; order: 1; }
    
    .main-navigation { display: none; width: 100%; order: 3; background: #fff; position: absolute; top: 100%; left: 0; box-shadow: var(--shadow); padding: 20px; border-top: 1px solid #eee; }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 15px; }
    .main-navigation li { width: 100%; border-bottom: 1px solid #f9f9f9; padding-bottom: 10px; }
}

@media (max-width: 480px) {
    .nav-logo img { height: 40px; }
}

/* ==========================================================================
   5. BOOK PAGE STYLES (And Excerpts)
   ========================================================================== */
.book-detail-grid { 
    display: grid; 
    grid-template-columns: 220px 1fr; /* Fixed cover width + Flexible content */
    gap: 30px; 
    margin-bottom: 30px;
}

.book-cover-col { text-align: center; }

.book-cover-img { 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
    border-radius: 4px; 
    margin-bottom: 15px;
    width: 100%;
    height: auto;
    display: block;
}

.book-title { font-family: var(--font-main); font-size: 2.2rem; line-height: 1.2; margin-top: 0; color: var(--dark); }
.book-author { font-size: 1.2rem; color: var(--gray); margin-bottom: 1rem; }
.book-author a { border-bottom: 1px dotted var(--secondary); }

.social-share ul { display: flex; justify-content: center; gap: 15px; padding: 0; list-style: none; margin: 15px 0; }
.social-share i { font-size: 1.2rem; color: #555; }
.social-share i:hover { color: var(--primary); }

.similar-books ul { padding-left: 20px; list-style: disc; margin-top: 10px; }
.similar-books li { margin-bottom: 5px; }
.similar-books a { color: var(--secondary); border-bottom: 1px dotted #ccc; }
.similar-books a:hover { color: var(--primary); border-bottom: 1px solid var(--primary); }

/* CRITICAL FIX: Makes <excerpt> act like a real block so ads don't drop */
excerpt {
    display: block;
    width: 100%;
}

/* Your Book-Style Text Formatting */
excerpt p {
    text-indent: 1cm;
    text-align: justify;
    text-justify: inter-word;
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: .5em;
    padding: 0;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Target Fix for Anchor Links */
:target {
    display: block;
    padding-top: 50px;
    margin-top: -50px;
}

/* Mobile Adjustment for Excerpts */
@media (max-width: 600px) {
    excerpt p {
        margin-left: 10px;
        margin-right: 10px;
        text-indent: 0.5cm;
    }
}

@media (max-width: 900px) {
    .book-detail-grid { grid-template-columns: 1fr; }
    .book-title, .book-author { text-align: center; }
    .book-cover-col { max-width: 200px; margin: 0 auto 30px; }
}

@media (max-width: 600px) {
    excerpt p { text-indent: 0.5cm; font-size: 1.05rem; }
}

.book-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.book-cover-col { text-align: center; }

/* UPDATED: Base Book Cover Style with Transition */
.book-cover-img { 
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); 
    border-radius: 4px; 
    margin-bottom: 15px;
    max-width: 260px !important;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Smooth animation for lift & shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* NEW: Hover Effect (Lift + Orange Glow) */
/* Applies when hovering the link wrapping the image */
a:hover .book-cover-img,
.book-cover-img:hover {
    transform: translateY(-5px); /* Lifts up slightly */
    box-shadow: 0 12px 24px rgba(255, 126, 3, 0.4); /* AALBC Orange Glow */
}

/* ==========================================================================
   6 & 13. UNIFIED BOOK CARD STYLES (Author, Coming Soon, New Books)
   ========================================================================== */
.author-media { float: right; margin: 0 0 20px 20px; max-width: 300px; text-align: center; }
.author-photo { border-radius: 4px; box-shadow: var(--shadow); width: 100%; height: auto; }
.quote { font-size: 1.4rem; font-style: italic; color: #555; margin-bottom: 20px; border-left: 4px solid var(--primary); padding-left: 15px; font-family: var(--font-main); }

/* GRID LAYOUTS */
.books-grid, .book-grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 20px; 
    margin-top: 20px; 
}

@media (min-width: 992px) {
    .book-grid-container {
        grid-template-columns: repeat(4, 1fr); 
    }
}

/* 1. THE CARD (Unified Style) */
.book-card, .book-item {
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-align: center;
    
    /* Box Styling (The Card Look) */
    background: var(--white) !important;
    border: 1px solid #eee !important;  
    border-radius: 8px !important;      
    padding: 10px !important;           /* TIGHTER PADDING (Was 15px) */
    gap: 4px !important;                /* NEW: Forces elements closer together */
    margin-bottom: 30px;
    
    /* Animation */
    transition: all 0.3s ease;
    
    /* Default Shadow (Subtle Gray) */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    overflow: hidden; /* Ensures buttons don't spill out */
}

/* 2. THE CARD HOVER (Orange Glow) */
.book-card:hover, .book-item:hover {
    transform: translateY(-5px); /* Lift Card */
    /* Orange Drop Shadow on the CARD */
    box-shadow: 0 12px 24px rgba(255, 126, 3, 0.4) !important;
    border-color: var(--primary) !important; 
}

/* 3. THE IMAGE INSIDE (Cleaned) */
.book-card img, 
.book-item img, 
.book-grid-img, 
.book-cover-wrapper .book-cover-img {
    width: 100%;
    height: auto;
    max-height: 280px;      
    object-fit: contain;    
    display: block;
    margin-bottom: 5px !important;     /* TIGHTER MARGIN (Was 8px) */
    border-radius: 4px;
    
    /* Remove borders/shadows from the IMAGE so the CARD takes focus */
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    transform: none !important; /* Stop individual image lift */
}

/* 4. TITLE */
.book-card h3, .book-item .book-title {
    margin: 2px 0 !important;           /* TIGHTER MARGIN (Was 5px) */
    font-size: 0.95rem !important;      /* Slightly smaller for alignment */
    font-weight: 700 !important;
    color: var(--dark);
    line-height: 1.2;
    font-family: var(--font-main);
    min-height: 2.4em;                  /* Standardizes spacing for titles */
}

/* 5. METADATA (Author & Date) - TIGHTER SPACING */
.book-meta { flex-grow: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.book-author { 
    font-size: 0.85rem !important; 
    color: #666; 
    margin-bottom: 3px !important;      /* TIGHTER */
    display: block; 
}

.book-date { 
    font-size: 0.75rem !important; 
    color: #ff7e03; 
    font-weight: bold; 
    margin-bottom: 4px !important;      /* TIGHTER */
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.book-details-small {
    background: #fdfdfd;
    padding: 6px !important;            /* Tighter padding in the sales box */
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    text-align: left;
    margin-top: 2px !important;         /* PULL UP CLOSER */
}

/* 6. BUTTONS (Unified Style) */
.book-card .btn-main, 
.book-btn {
    margin-top: auto; /* Pushes button to bottom */
    width: 100%;
    display: inline-block;
    padding: 10px 0;
    border-radius: 50px;
    
    /* BUTTON VISUALS (Orange) */
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: bold !important;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Hover State for Buttons */
.book-card .btn-main:hover, 
.book-btn:hover {
    background: #e66e00 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Filter Bar (Coming Soon Page) */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; padding: 20px; background: #fff; border-bottom: 1px solid #eee; border-radius: 8px; }
.filter-pill { padding: 8px 16px; border-radius: 50px; background: #f1f1f1; color: #333; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; border: 1px solid transparent; font-family: var(--font-main); }
.filter-pill:hover { background: #e0e0e0; color: #000; text-decoration: none; }
.filter-pill.active { background: #4a148c; color: #fff; box-shadow: 0 4px 8px rgba(74, 20, 140, 0.3); }

/* Details/Summary (Author Page) */
details { border: 1px solid #ddd; border-radius: 4px; margin-bottom: 10px; background: #fff; }
summary { background: #f9f9f9; padding: 15px; cursor: pointer; font-weight: bold; list-style: none; font-size: 1.1rem; }
summary:hover { color: var(--primary); }
summary:after { content: "+"; float: right; font-weight: bold; }
details[open] summary:after { content: "-"; }
.details-content { padding: 15px; }
.details-content ol { padding-left: 20px; margin: 0; }
.details-content li { margin-bottom: 8px; }

@media (max-width: 900px) {
    .author-media { float: none; margin: 0 auto 20px; max-width: 100%; }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--dark);
    color: #bbb;
    padding: 50px 20px 20px;
    border-top: 4px solid var(--primary);
    margin-top: 40px;
    width: 100%;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1260px; margin: 0 auto; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 10px; font-family: var(--font-main); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #ddd; transition: 0.2s; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }

/* Social Icons Layout & Centering */
.footer-social-icons {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on mobile */
    gap: 10px; /* Space between icons */
    margin-bottom: 20px;
}

.social-btn {
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff !important;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 1.2rem;
    padding: 0; /* Ensures no padding throws off center */
    margin-bottom: 5px; /* Vertical spacing when wrapped */
}

.social-btn:hover { background: var(--primary); transform: translateY(-3px); }

/* Ensure icon font itself doesn't have line-height issues */
.social-btn i {
    line-height: 1; 
    margin: 0;
    padding: 0;
}

.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.9rem; color: #888; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--primary); }

/* ==========================================================================
   8. HOMEPAGE SPECIFIC
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #000000 0%, #2c0e3a 100%);
    color: var(--white);
    padding: 5rem 1rem;
    text-align: center;
    width: 100%;
}

.hero h1 { 
    font-family: var(--font-main); 
    font-size: 2.2rem; 
    margin-bottom: 1rem;
    color: #ffffff !important;
    font-weight: 700;
}

.hero p { 
    font-size: 1.25rem;
    margin-bottom: 2rem; 
    opacity: 1;
    color: #e0e0e0 !important;
    font-weight: 500;
}

.hero a { color: var(--primary) !important; text-decoration: underline; }
.hero a:hover { color: var(--white) !important; }

.hero-btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.card-split img { border-radius: var(--radius); }
@media (max-width: 900px) { .card-split { grid-template-columns: 1fr; } }

.logo-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 1rem; align-items: center; margin-top: 1rem; }
.logo-item { text-align: center; }
.logo-item img { max-height: 60px; width: auto; margin: 0 auto; filter: grayscale(100%); transition: all 0.3s ease; }
.logo-item:hover img { filter: grayscale(0%); transform: scale(1.05); }

.hover-scale img { transition: transform 0.3s ease, box-shadow 0.3s ease; display: block; }
.hover-scale:hover img { transform: scale(1.03); box-shadow: 0 8px 16px rgba(255, 126, 3, 0.2); }

/* ==========================================================================
   9. HERO CAROUSEL & CONTENT
   ========================================================================== */
.hero-carousel-container {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a148c 100%);
    text-align: center;
    padding: 4rem 1rem 1.5rem 1rem;
    box-sizing: border-box;
}

.hero-carousel-container h1, 
.hero-carousel-container p {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-carousel-container a { color: #ff7e03 !important; }

.carousel-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap !important;
}
.carousel-scroll::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 auto !important;
    width: 140px; 
    text-align: center;
    transition: transform 0.3s ease;
}
.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    display: block;
}
.carousel-item:hover { transform: translateY(-5px); }
.carousel-item span {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
}

/* ==========================================================================
   10. HOMEPAGE LINK CARDS
   ========================================================================== */
.featured-list-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

.link-card { 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    background: var(--white); 
    padding: 20px; 
    border-radius: var(--radius); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    border: 1px solid #eee;
    border-left: 5px solid var(--primary); 
    text-decoration: none; 
    transition: transform 0.2s, box-shadow 0.2s; 
    height: 100%; 
}
.link-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); 
    border-color: var(--secondary); 
}
.link-card h3 { 
    margin: 0; 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: var(--dark); 
    line-height: 1.4; 
    font-family: var(--font-main); 
}
.link-card:hover h3 { color: var(--primary); }
.link-card i, .link-card img { 
    font-size: 1.5rem; 
    color: var(--secondary); 
    margin-right: 15px; 
    opacity: 0.8; 
    flex-shrink: 0; 
    width: auto;
    max-width: 40px;
}

.simple-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.simple-link-grid li a { display: flex; align-items: center; padding: 12px 15px; background: #f8f9fa; border-radius: 6px; color: #444; font-weight: 600; text-decoration: none; transition: all 0.2s ease; border-left: 3px solid transparent; font-family: var(--font-main); }
.simple-link-grid li a:hover { background: var(--secondary); color: #fff; padding-left: 20px; border-left: 3px solid var(--primary); }
.simple-link-grid li a i { margin-right: 10px; color: var(--primary); }
.simple-link-grid li a:hover i { color: #fff; }

/* ==========================================================================
   11. AUTHORS PAGE STYLES
   ========================================================================== */
.az-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0; }
.az-nav a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fff; border: 1px solid #ddd; border-radius: 4px; color: var(--secondary); font-weight: bold; text-decoration: none; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.az-nav a:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(255, 126, 3, 0.3); }

/* ==========================================================================
   12. EVENTS PAGE STYLES
   ========================================================================== */
.event-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    width: 100%;
}

.event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }

.event-img-col {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex: 0 0 250px;
}

.event-img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-details-col { padding: 25px; flex: 1; }

.event-title { margin-top: 0; margin-bottom: 10px; color: #4a148c; font-family: var(--font-main); font-size: 1.5rem; }
.event-meta { font-size: 0.95rem; color: #555; margin-bottom: 15px; line-height: 1.6; }
.event-meta i { color: #ff7e03; width: 20px; text-align: center; margin-right: 8px; }
.past-event-tag { display: inline-block; background: #eee; color: #666; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; margin-bottom: 10px; text-transform: uppercase; font-weight: bold; }

.filter-container { background: #f1f1f1; padding: 20px; border-radius: 8px; text-align: center; margin-bottom: 30px; }
.filter-select { padding: 10px 15px; font-size: 1rem; border-radius: 4px; border: 1px solid #ccc; max-width: 100%; width: 300px; font-family: var(--font-main); }

/* ==========================================================================
   13. [REMOVED - CONSOLIDATED INTO SECTION 6]
   (Kept header for file structure consistency if needed, but styles are above)
   ========================================================================== */

/* ==========================================================================
   14. LEGACY PAGE FIXES
   ========================================================================== */
.pic { max-width: 260px !important; width: 100%; height: auto; display: block; margin: 0 auto 20px auto; box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

.book-info-col .book-author { font-size: 1.5rem !important; color: #333 !important; margin-bottom: 20px !important; }
.book-info-col h1.book-title { font-family: var(--font-main) !important; font-size: 2.2rem !important; line-height: 1.2; color: #1a1a1a; }
.book-info-col h3 { font-family: var(--font-main) !important; font-size: 1.5rem !important; color: #1a1a1a; }

.row:before, .row:after { display: table; content: " "; }
.row:after { clear: both; }
.row { margin-right: -15px; margin-left: -15px; }

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
  position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; float: left;
}

@media (min-width: 768px) {
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.33333333%; }
    .col-sm-5 { width: 41.66666667%; }
    .col-sm-6 { width: 50%; }
    .col-sm-8 { width: 66.66666667%; }
    .col-sm-9 { width: 75%; }
    .col-sm-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.33333333%; }
    .col-md-8 { width: 66.66666667%; }
    .col-md-9 { width: 75%; }
    .col-md-12 { width: 100%; }
}

/* ==========================================================================
   16. RESPONSIVE UTILITIES
   ========================================================================== */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.cover-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 20px;
    margin-bottom: 20px;
}

.cover-grid-display img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s ease;
    display: block;
}

.cover-grid-display a:hover img {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 126, 3, 0.4) !important;
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        display: block !important;
    }

    main, aside {
        width: 100% !important;
        display: block !important;
        float: none !important;
        clear: both !important;
    }

    .hero-title { font-size: 1.8rem; }
    .hero-carousel-container { padding-top: 3rem; padding-bottom: 1rem; width: 100%; }

    .section-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }

    .event-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .event-img-col {
        width: 100% !important;
        flex: none !important;
        border-right: none !important;
        margin-bottom: 15px;
        padding: 0 !important;
    }

    .event-details-col {
        width: 100% !important;
        flex: none !important;
        padding: 10px !important;
    }
    
    [class*="col-"] {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .book-detail-grid {
        display: block !important; 
        width: 100% !important;
    }
    
    .book-cover-col {
        width: 100% !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    .book-cover-col img {
        width: 100% !important; 
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .book-info-col {
        width: 100% !important;
        padding: 0 !important;
    }

    .book-info-col .book-title {
        font-size: 1.8rem !important;
        text-align: center !important;
    }
    
    .book-item .book-title {
        font-size: 0.85rem !important; 
    }

    .book-author {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .book-info-col div[style*="border-top"] {
        display: flex !important;
        flex-direction: column !important; 
        align-items: flex-start !important;
        line-height: 1.6 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .book-info-col div[style*="border-top"] span {
        margin-right: 0 !important;
        display: block !important;
        width: 100% !important;
        white-space: normal !important; 
        word-break: break-word !important; 
    }
}

/* ==========================================================================
   17. MEDIA CLIPS
   ========================================================================== */
.media-clip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.media-clip-column {
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .media-clip-column {
        flex: 1 1 calc(50% - 1rem); 
    }
}

.media-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.media-item:last-child {
    border-bottom: none;
}

.media-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.font-weight-bold { font-weight: bold; }
.highlight-red { color: #800000; }
.highlight-blue { color: #000080; }

/* ==========================================================================
   18. COMMON UTILITIES
   ========================================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #000;
    margin: 20px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.social-share-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
@media (max-width: 768px) {
    .social-share-container { justify-content: center; }
}

.ad-container {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 0;
    clear: both;
}

.float-left {
    float: left;
    margin: 0 20px 20px 0; 
}

.float-right {
    float: right;
    margin: 0 0 20px 20px; 
}

/* Added Profile Image Float with Drop Shadow */
.profile-img-float {
    float: right;
    width: 400px;
    max-width: 40%;
    height: auto;
    margin-left: 20px;
    margin-bottom: 10px;
    border-radius: var(--radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .profile-img-float {
        float: none;
        display: block;
        margin: 20px auto;
        width: 100%;
        max-width: 100%;
    }
}

/* Full Width Content Image with Shadow */
.content-full-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Matches your book cover shadow */
    border-radius: 4px;
    margin-bottom: 20px; /* Adds breathing room below the image */
}

/* HIGH VISIBILITY LINKS FOR CONTENT */
/* Applies to book descriptions, articles, and lists */
main p a, 
main li a, 
.book-info-col a, 
.article-content a {
    text-decoration: underline;
    text-decoration-color: rgba(74, 20, 140, 0.4); /* Lighter purple line */
    text-underline-offset: 3px;
    font-weight: 500;
}

main p a:hover, 
main li a:hover, 
.book-info-col a:hover,
.article-content a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

/* ==========================================================================
   NEW UTILITY: Float Right Image with Orange Lift Hover
   ========================================================================== */
.float-right-hover-img {
    float: right;
    margin: 0 0 20px 20px; /* Spacing around the floated image */
    
    /* Sizing constraints */
    width: 300px;           /* Sets a base size */
    max-width: 40%;         /* Ensures it doesn't dominate text on medium screens */
    height: auto;           /* Maintains aspect ratio */
    
    border-radius: var(--radius); /* Uses your global radius setting */

    /* Base State: Standard Gray Drop Shadow */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);

    /* Smooth animation transition */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Ensure no browser default borders show up */
    border: none !important;
    outline: none !important;
}

/* Hover State: Lift Up + Orange Glow */
/* We target both hovering the img directly AND hovering the parent link */
a:hover .float-right-hover-img, 
.float-right-hover-img:hover {
    transform: translateY(-5px); /* Lifts the image up */
    box-shadow: 0 12px 24px rgba(255, 126, 3, 0.5) !important; /* AALBC Orange Shadow */
}

/* Mobile Responsive Reset: Center it on small screens */
@media (max-width: 768px) {
    .float-right-hover-img {
        float: none;
        display: block;
        margin: 20px auto;
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   19. DIRECTORY & NEWSPAPER STYLES
   ========================================================================== */
.state-select-container {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid #ddd;
    margin: 30px 0;
    text-align: center;
}

.state-select {
    padding: 10px 15px;
    font-size: 1.1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 400px;
    font-family: var(--font-main);
    cursor: pointer;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}
.directory-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
    vertical-align: top;
    word-wrap: break-word; 
}
.directory-table tr:hover {
    background-color: #f9f9f9;
}
.directory-table a {
    font-weight: 600;
}
.directory-table .meta-col {
    color: var(--gray);
    text-align: right;
    width: 30%;
}

.float-box-right {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 300px;
    text-align: center;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    box-shadow: var(--shadow);
}
@media (max-width: 768px) {
    .float-box-right { float: none; margin: 20px auto; max-width: 100%; }
    .directory-table td { display: block; text-align: left; padding: 8px 15px; border: none; }
    .directory-table .meta-col { width: 100%; text-align: left; margin-bottom: 10px; border-bottom: 1px solid #eee; }
}

/* ==========================================================================
   20. BESTSELLERS LIST STYLES (REQUIRED FOR LAYOUT)
   ========================================================================== */

/* PAGE GRID LAYOUT */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Content takes space, Sidebar fixed 300px */
    gap: 40px;
    max-width: 1260px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-container {
        margin-top: 40px;
    }
}

/* HEADER & DROPDOWN */
.bestseller-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}
.bestseller-header h1 { margin-bottom: 5px; }
.bestseller-header h3 { margin-top: 0; color: #555; }

.period-select-wrapper {
    margin: 20px auto;
    max-width: 300px;
    position: relative;
}
.period-select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    font-family: var(--font-main);
}
.period-select:hover { border-color: #999; }

/* BOOK LIST SECTIONS */
.genre-section { margin-bottom: 50px; }
.genre-title {
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: Georgia, serif; /* Stylistic choice for Bestsellers list */
    font-size: 1.8rem;
}
.book-list {
    list-style: decimal;
    padding-left: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}
.book-list li { margin-bottom: 10px; }
.book-list a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}
.book-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* SOCIAL SHARE BAR (Specific to Bestsellers) */
.social-share-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}
.social-share-bar a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #f4f4f4; color: #555; text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}
.social-share-bar a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-links { text-align: center; margin-top: 40px; }
.footer-links a { display: block; margin: 10px 0; font-size: 1.2rem; color: #333; }
/* ==========================================================================
   21. SOCIAL SHARE INCLUDE (Grayscale to Color)
   ========================================================================== */
.share-container {
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* UPDATED: No Border, No Top Padding */
    border-bottom: none; 
    padding-top: 0;
    padding-bottom: 10px;
    
    margin-bottom: 20px;
    font-family: var(--font-main);
}

.share-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    color: #555;
}

.share-icons {
    display: flex;
    align-items: center;
}

/* 1. Reset the link style so it doesn't fight the icon */
.share-icons a {
    text-decoration: none;
    margin-right: 12px;
    display: flex;
    align-items: center;
    /* Remove global link transitions to stop the "Orange Flash" */
    transition: none; 
}

/* 2. Style the Icon (<i>) directly */
.share-icons a i {
    color: var(--gray); /* Default Grayscale */
    font-size: 18px;
    transition: color 0.2s ease;
}

/* 3. Specific Hover Colors applied to the Icon */
.share-icons a:hover .fa-facebook,
.share-icons a:hover .fa-facebook-square { color: #3b5998 !important; }

.share-icons a:hover .fa-twitter,
.share-icons a:hover .fa-twitter-square { color: #00acee !important; }

.share-icons a:hover .fa-linkedin,
.share-icons a:hover .fa-linkedin-square { color: #0077b5 !important; }

.share-icons a:hover .fa-pinterest,
.share-icons a:hover .fa-pinterest-p,
.share-icons a:hover .fa-pinterest-square { color: #bd081c !important; }

.share-icons a:hover .fa-envelope,
.share-icons a:hover .fa-envelope-o { color: #555555 !important; }

/* ==========================================================================
   22. MEMBER LOGOS INCLUDE
   ========================================================================== */
.member-logo-container {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem 0;
    justify-content: center; /* Centers logos if they don't fill the row */
    gap: 15px;
}

.member-logo-item {
    width: 18%; /* Slightly less than 20% to account for gaps */
    box-sizing: border-box;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none !important; /* Removes underline from links */
}

.member-logo-item img {
    width: 100%;
    height: auto;
    max-height: 100px; /* Standardized height */
    object-fit: contain; /* Ensures logos don't distort */
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.member-logo-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.member-logo-caption {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.2;
    font-family: var(--font-main);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .member-logo-item { width: 30%; }
}

@media (max-width: 600px) {
    .member-logo-item { width: 45%; }
}
/* ==========================================================================
   23. AUTHORS INDEX UPDATES (2026 Modernization)
   ========================================================================== */
/* Hero Description Text */
.hero-desc {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-main);
}

/* Author Link Items with Icons */
.simple-link-grid li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #eee; /* Lighter border */
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* FIX: Text turns Orange on hover, Background stays light */
.simple-link-grid li a:hover {
    background: #fff !important;           /* Keep background white/light */
    color: var(--primary) !important;      /* Force text to Orange */
    border-color: var(--primary);
    border-left: 3px solid var(--primary);
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure the icon also turns orange */
.simple-link-grid li a:hover i {
    color: var(--primary) !important;
}

/* ==========================================================================
   24. BOOKSITES DIRECTORY (Modern Grid Layout)
   ========================================================================== */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Single Item View - Centered & Larger */
.sites-grid.single-item-grid {
    grid-template-columns: minmax(300px, 800px);
    justify-content: center;
}

.site-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sites-grid.single-item-grid .site-card {
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.site-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.site-logo {
    width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
}

.site-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    font-family: var(--font-main);
}
.site-name a { color: var(--dark); text-decoration: none; }
.site-name a:hover { color: var(--primary); }

.site-url {
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 5px;
    display: block;
    word-break: break-all;
}

.site-about {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes footer down */
}

/* Larger Text for Single Card View */
.sites-grid.single-item-grid .site-about { font-size: 1.1rem; }

.site-footer {
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 10px;
    text-align: right;
    background: transparent;
}

.btn-visit {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px 0;
    background: var(--dark);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-visit:hover {
    background: var(--primary);
    color: #fff !important;
}

.badge-store {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* ==========================================================================
   25. CONTENT ARTICLE STYLES (Thumper's List & Database Articles)
   ========================================================================== */
/* These styles ensure articles stored in the database look good without inline CSS */

/* Thumper's List Specifics */
.thumper-container {
    max-width: 800px;
    margin: 0 auto;
}

.thumper-intro {
    text-align: center;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.thumper-links a {
    color: var(--secondary);
    font-weight: bold;
    margin: 0 10px;
}
.thumper-links a:hover { color: var(--primary); }

.list-section h3 {
    background: var(--dark);
    color: #fff;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 4px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Standardized Ordered List for Articles */
.book-list, .author-list, .article-content ol {
    list-style: decimal;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.book-list li, .author-list li, .article-content li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
}

/* Make Titles/Names Bold in Lists */
.book-list li strong, .author-list li strong {
    color: var(--secondary);
}

/* Clean Blockquote for Articles */
.article-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 20px 0;
    padding: 10px 20px;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}
/* ==========================================================================
   26. FOOTER LAYOUT & VISIBILITY FIX (Final Corrected)
   ========================================================================== */

/* 1. Force Light Theme Background & Spacing */
.site-footer {
    background-color: #fff !important; 
    color: #333 !important;
    border-top: 4px solid var(--primary);
    padding-top: 60px;
}

/* 2. Center the Grid Visually */
.footer-grid {
    display: grid;
    grid-template-columns: auto auto auto; 
    justify-content: center; 
    gap: 80px; 
    max-width: 1260px;
    margin: 0 auto;
    text-align: left;
}

/* 3. Column Header Styling */
.footer-col h4 {
    color: var(--secondary) !important; /* Deep Purple */
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

/* 4. TEXT LINKS ONLY */
.footer-col ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-col ul li a {
    color: #555 !important; 
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--primary) !important;
    padding-left: 5px;
}

/* 5. SOCIAL ICONS (Hover Fix Included) */
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 300px;
}

/* Default State: Light Circle, Dark Icon */
a.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f4f4f4 !important; 
    color: #333 !important; 
    border-radius: 50%;
    border: 1px solid #ddd;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Hover State: Orange Circle, White Icon */
a.social-btn:hover {
    background-color: var(--primary) !important; 
    border-color: var(--primary);
    transform: translateY(-3px);
    /* This color property handles the text color */
    color: #ffffff !important; 
}

/* CRITICAL FIX: Force the <i> tag (the icon itself) to be white on hover */
a.social-btn:hover i {
    color: #ffffff !important;
}

a.social-btn i { margin: 0; }

/* 6. Contact Links */
.footer-col p { margin-top: 20px; }
.footer-col p a {
    color: #333 !important;
    font-weight: 600;
    text-decoration: none;
}
.footer-col p a:hover { color: var(--primary) !important; }

/* 7. Footer Bottom Copyright */
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee !important;
    text-align: center;
    color: #777 !important;
}
.footer-bottom a { color: var(--secondary) !important; }

/* 8. Mobile Responsiveness */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
        text-align: center;
    }
    .footer-col h4 { text-align: center; }
    .footer-social-icons { justify-content: center; margin: 0 auto; }
}
/* ==========================================================================
   27. Legacy Styles
   ========================================================================== */
.photo_right{border-style:solid;border-width:0;padding-left:10px;text-align:left;float:right;margin-left:12px;margin-right:12px}
.content_bookcover_image_style {border-width: 0px;margin-right: 15px;text-align: left;float: left;}

/* ==========================================================================
   28. AUTHORS YOU SHOULD KNOW WIDGET
   ========================================================================== */
.author-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 cols */
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

/* Tablet: 3 columns */
@media (min-width: 600px) {
    .author-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 5 columns */
@media (min-width: 1000px) {
    .author-grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

.author-card {
    text-align: center;
    display: flex; /* Flex is used here to allow JS to toggle it easily */
    flex-direction: column;
    align-items: center;
}

.author-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.author-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(255, 126, 3, 0.4);
}

.author-card span {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #333;
    font-weight: 600;
    display: block;
}

.author-card a {
    text-decoration: none;
    color: inherit;
}

.author-subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
    margin-top: 4px;
    display: block;
}
/* ==========================================================================
   29. NAVIGATION USER DROPDOWN (2026 Update - JS Controlled)
   ========================================================================== */

/* The container for the Avatar and the Dropdown */
#user-nav-menu {
    position: relative;
    display: inline-block;
}

/* The Avatar Image itself */
#user-nav-avatar {
    cursor: pointer;
    transition: transform 0.2s ease;
}

#user-nav-avatar:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* The Dropdown Menu Box */
.user-dropdown-content {
    display: none; /* Hidden by default, toggled by JS */
    position: absolute;
    right: 0;
    top: 120%; /* Pushes it slightly below the header bar */
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* Slightly deeper shadow */
    z-index: 9999;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    animation: fadeIn 0.2s ease-in-out;
}

/* Links inside the dropdown */
.user-dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #f9f9f9;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown-content a:last-child {
    border-bottom: none;
}

.user-dropdown-content a:hover {
    background-color: #f0f2f5; /* Light gray hover */
    color: var(--primary) !important;
}

/* Simple animation for the menu appearing */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cart & Icon Highlights */
.nav-cart-icon {
    color: var(--primary) !important;
    font-size: 1.1rem;
}
/* ==========================================================================
   30. AUTHOR AVATAR UTILITY (Lift + Orange Shadow)
   ========================================================================== */
.author-avatar-link {
    display: inline-block;
    text-decoration: none !important;
}

/* We target the img inside the link */
.author-avatar-link img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Matches your directory screenshot */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
}

/* Hover State */
.author-avatar-link:hover img {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(255, 126, 3, 0.4); 
    border-color: var(--primary);
}
/* Social Share 2026 Styling */
.social-share ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    justify-content: center; /* Centers icons; change to flex-start for left-align */
}
/* ==========================================================================
   31. SOCIAL SHARING STYLES (FontAwesome 6 Update)
   ========================================================================== */
.social-share-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-share-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    font-size: 1.1rem;
}

.social-share-list li a i {
    transition: none; /* Prevents the icon color from lagging behind the circle color */
}

/* Hover State: Lift + Orange Glow Shadow */
.social-share-list li a:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-5px);
    border-color: var(--primary);
    /* AALBC Orange Drop Shadow */
    box-shadow: 0 8px 16px rgba(255, 126, 3, 0.5) !important;
}

/* Brand Specific Hover Overrides (Optional - keeps the orange glow but changes background) */
.social-share-list li a[href*="facebook"]:hover { background-color: #1877F2 !important; }
.social-share-list li a[href*="threads"]:hover { background-color: #000000 !important; }
.social-share-list li a[href*="bsky"]:hover { background-color: #0285ff !important; }
.social-share-list li a[href*="pinterest"]:hover { background-color: #bd081c !important; }

/* ==========================================================================
   32. NAVIGATION & MODAL (Migrated from nav2026.php)
   ========================================================================== */

/* --- MODAL (POPUP) STYLES --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px; /* Limits width on desktop */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s;
}

/* Close Button (X) */
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}
.close-modal:hover { color: #000; }

/* Buttons & Inputs */
.auth-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-google, .btn-facebook, .btn-email-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1rem;
    display: flex; /* Flexbox for icon alignment */
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
}

.btn-google { background-color: #fff; border: 1px solid #ddd; color: #333; }
.btn-facebook { background-color: #3b5998; color: white; }
.btn-email-login { background-color: #333; color: white; margin-top: 10px; }

.auth-separator {
    margin: 20px 0;
    border-bottom: 1px solid #ddd;
    line-height: 0.1em;
    color: #666;
}
.auth-separator span {
    background: #fff;
    padding: 0 10px;
}

/* Simple Fade Animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* --- MOBILE DROPDOWN FIXES --- */
@media (max-width: 768px) {
    /* Force the dropdown to act like a centered popup on mobile */
    .user-dropdown-content {
        position: fixed !important;
        top: 20% !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 80% !important;
        min-width: 280px !important;
        box-shadow: 0 0 0 1000px rgba(0,0,0,0.5) !important; /* Dim background */
        text-align: center;
        border-radius: 8px;
        z-index: 10001 !important; /* Above everything */
    }
    .user-dropdown-content a {
        padding: 15px !important;
        font-size: 1.2rem !important;
        border-bottom: 1px solid #eee;
    }
    /* Show a close 'X' on mobile only if needed, or just rely on clicking outside */
    .mobile-close-btn { display: block !important; border-bottom: 1px solid #eee; }
}
/* Restored Login Brand Colors */
.btn-google { background-color: #fff !important; color: #444 !important; border: 1px solid #ddd !important; }
.btn-google i { color: #DB4437; margin-right: 8px; }

.btn-facebook { background-color: #1877F2 !important; color: #fff !important; border: none !important; }
.btn-facebook i { margin-right: 8px; }

/* AALBC Deep Purple Login Button with Lift & Glow */
.btn-email-login {
    background-color: var(--secondary) !important; /* Deep Purple */
    color: white !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    cursor: pointer;
    border: none;
    width: 100%;
    padding: 12px;
}

.btn-email-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 126, 3, 0.5) !important; /* AALBC Orange Glow */
    background-color: #5e1cb1 !important;
}
/* ==========================================================================
   LOGIN & BOOK CARD REFINEMENTS (FEB 2026)
   ========================================================================== */

/* (1) Restore Branded Login Colors */
.btn-google { background-color: #fff !important; color: #444 !important; border: 1px solid #ddd !important; }
.btn-google i { color: #DB4437; margin-right: 8px; }

.btn-facebook { background-color: #1877F2 !important; color: #fff !important; border: none !important; }
.btn-facebook i { color: #fff; margin-right: 8px; }

/* AALBC Deep Purple Login Button with Lift & Glow */
.btn-email-login {
    background-color: var(--secondary) !important;
    color: white !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    cursor: pointer;
    border: none;
    width: 100%;
    padding: 12px;
}

.btn-email-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 126, 3, 0.5) !important;
    background-color: #5e1cb1 !important;
}

/* (2) Tighten Book Card Spacing (Mobile & Desktop) */
.book-card, .book-item {
    padding: 10px !important; 
    gap: 4px !important;      /* Pulls Rank, Title, and Author closer */
}

.book-card img, .book-grid-img {
    margin-bottom: 5px !important;
    max-height: 240px !important;
}

.book-card h3, .book-item .book-title {
    margin: 2px 0 !important;
    font-size: 0.95rem !important;
    min-height: 2.4em; /* Standardizes card height */
}

.book-card .book-author {
    margin-bottom: 4px !important;
}

.book-card .book-details-small {
    margin-top: 2px !important;
    padding: 6px !important;
}
/* Modal Authentication Buttons */
.auth-button-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.auth-button-group button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-login-submit {
    background-color: #FF5200; /* AALBC Orange */
    color: white !important;
}

.btn-signup-submit {
    background-color: #4a148c; /* AALBC Purple */
    color: white !important;
}

.auth-button-group button:hover {
    opacity: 0.9;
}

.auth-button-group button:active {
    transform: scale(0.98);
}

/* Mobile stacking for small screens */
@media (max-width: 480px) {
    .auth-button-group {
        flex-direction: column;
    }
}
/* Admin Table Styles */
.admin-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th {
    text-align: left;
    background: #f4f4f4;
    padding: 12px;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* Role Badges */
.badge-role {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-role.admin { background: #ffebee; color: #c62828; }
.badge-role.member { background: #e8f5e9; color: #2e7d32; }
.badge-role.publisher { background: #e3f2fd; color: #1565c0; }
/* Newsletter Widget Styling */
.btn-newsletter-join {
    background-color: #FF5200 !important; /* AALBC Orange */
    color: #fff !important;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-newsletter-join:hover {
    background-color: #e64a00 !important;
}

.subscriber-heart {
    color: #d32f2f; /* Premium Red */
    filter: drop-shadow(0 0 2px rgba(211, 47, 47, 0.2));
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}
/* ==========================================================================
   MODAL DUAL-BUTTON LAYOUT (New for Feb 2026)
   ========================================================================== */
.auth-button-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.auth-button-group button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

/* Re-using your brand colors for the buttons */
.btn-login-submit {
    background-color: #FF5200; /* AALBC Orange */
    color: white !important;
}

.btn-signup-submit {
    background-color: #4a148c; /* AALBC Purple */
    color: white !important;
}

.auth-button-group button:hover {
    opacity: 0.9;
}

.auth-button-group button:active {
    transform: scale(0.98);
}

/* Stacks buttons vertically on mobile */
@media (max-width: 480px) {
    .auth-button-group {
        flex-direction: column;
    }
}
.ai-box h1 { font-size: 1.8rem; margin-bottom: 5px; color: #FFFFFF !important; }
.ai-box p { margin-bottom: 15px; font-size: 1.1rem; opacity: 0.9; color: #FFFFFF; }
.how-link { color: #ff7e03; text-decoration: underline; font-size: 0.85rem; display: block; margin-top: 10px; }
/* Heart Pop Animation */
.btn-fav i { transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-fav.active i { transform: scale(1.2); }

/* ==========================================================================
   33. AUTHOR PROFILE & BOOK GRID ENHANCEMENTS (MAR 2026)
   ========================================================================== */

/* Author Page Specific Styles */
.author-media {
    text-align: center;
    margin-bottom: 25px;
}

/* Restore Original Photo Size and add AALBC lift effects */
.author-photo-main {
    max-width: 100% !important; /* Allow the photo to use full container width */
    width: auto !important; /* Maintain original aspect ratio */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 600px; /* Standardizing max vertical space */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* Target the link wrapper for the hover lift effect */
.author-profile-link {
    display: inline-block;
    text-decoration: none !important;
}

.author-profile-link:hover .author-photo-main {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 82, 0, 0.4) !important; /* AALBC Orange Shadow */
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
}

/* Book Grid Layout */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.book-card {
    background: transparent;
    padding: 0 15px 15px 15px; 
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
}

/* MISSING COVER STYLES */
.book-cover-wrapper {
    position: relative; 
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.missing-cover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    text-align: center;
    width: 90%;
    color: #333;
    font-family: var(--font-main);
    pointer-events: none; 
    line-height: 1.3;
    z-index: 2;
}
/* ==========================================================================
   GENERIC BUTTON STYLE (Burnt Orange with Lift & Glow)
   ========================================================================== */
.generic_button {
    background-color: #e65127; /* The specific reddish-orange from the screenshot */
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    display: inline-flex; /* Flex used to align icon and text */
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between icon and text */
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 1.1rem;
    font-family: var(--font-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    line-height: 1.2;
}

.generic_button:hover {
    transform: translateY(-5px); /* The "Slight Lift" */
    background-color: #ff5200; /* Brighter orange on hover */
    /* The "Orange Drop Shadow" using AALBC primary orange */
    box-shadow: 0 12px 24px rgba(255, 126, 3, 0.5) !important; 
    color: #ffffff !important;
}

/* Ensure the icon scales nicely */
.generic_button i {
    font-size: 1.2rem;
}

/* Mobile responsive scaling */
@media (max-width: 600px) {
    .generic_button {
        font-size: 1rem;
        padding: 12px 20px;
        width: 100%;
        gap: 8px;
    }
}