/* ==========================================================================
   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: 'Open Sans', Helvetica, Arial, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Global Typography Fix: Restore Serif for Titles generally */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--dark);
    margin-top: 0;
}

a { color: var(--secondary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* Hide legacy scroll arrow */
#return-to-top, .back-to-top, .scroll-up { display: none !important; }

/* ==========================================================================
   2. GLOBAL LAYOUT (GRID)
   ========================================================================== */
.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 300px; /* Main Content | Sidebar */
    gap: 30px;
}

@media (max-width: 900px) {
    .container { grid-template-columns: 1fr; } /* Stack vertically on mobile */
}

/* CARDS / WIDGETS */
.section-block, .widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid #eaeaea;
}

.widget h4 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.2rem;
    font-family: var(--font-serif);
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.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;
}

.btn-main:hover, a.buybutton:hover {
    background: #e66e00 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 126, 3, 0.3) !important;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Logo */
.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.2s; }
.nav-logo:hover img { transform: scale(1.02); }

/* Search Bar */
.header-search {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 5px 15px;
    width: 250px;
    margin-right: auto; /* Pushes Menu Right */
    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%; }
.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); }

/* Menu */
.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; }
.main-navigation a:hover, .main-navigation a:hover i { color: var(--primary); }
.main-navigation i { color: #666; transition: color 0.3s; }

/* Mobile Toggle */
.mobile-menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: #333; margin-left: 15px; }

/* Mobile Responsive Nav */
@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 (Single Book Info Grid Layout)
   ========================================================================== */
.book-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.book-cover-col { text-align: center; }

/* Styles specifically for the Single Book Page Cover */
.book-cover-img { 
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); 
    border-radius: 4px; 
    margin-bottom: 15px;
    max-width: 260px !important; /* Forces the small size you want */
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* NOTE: These are overridden in Section 14 for legacy pages, but kept here for standard grid pages */
.book-title { font-family: var(--font-serif); 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 */
.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 / Categories */
.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); }

@media (max-width: 900px) {
    .book-detail-grid { grid-template-columns: 1fr; }
    .book-title, .book-author { text-align: center; }
}

/* ==========================================================================
   6. AUTHOR PAGE STYLES
   ========================================================================== */
.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; }

/* Books Grid (Author Page) */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; margin-top: 20px; }
.book-card { text-align: center; transition: transform 0.2s; }
.book-card:hover { transform: translateY(-5px); }
.book-card img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow); margin-bottom: 10px; max-height: 220px; object-fit: cover; }
.book-card h3 { font-size: 0.95rem; margin: 5px 0; line-height: 1.3; }

/* Accordions */
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;
}
.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-serif); }
.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; }

.footer-social-icons { display: flex; gap: 15px; margin-bottom: 20px; }
.social-btn { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: #333; color: #fff !important; border-radius: 50%; transition: 0.3s; font-size: 1.2rem; }
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }

.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, #2c0e3a 0%, #000000 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}
.hero h1 { 
    font-family: var(--font-serif); 
    font-size: 2.2rem; 
    margin-bottom: 1rem;
    color: var(--white) !important; /* Force White Text */
}
.hero p { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    opacity: 0.9;
    color: var(--white) !important; /* Force White Text */
}

.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 Grid (Homepage Footer Area) */
.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 Zoom Effect */
.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. BOOKS PAGE CAROUSEL (Hero)
   ========================================================================== */
.hero-carousel-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c0e3a 100%);
    padding: 3rem 0;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
}

.hero-carousel-container h1 {
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    color: var(--white) !important; /* Force White Text */
}

.hero-carousel-container p {
    color: var(--white) !important; /* Force White Text */
}

.carousel-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Hide scrollbar for cleaner look */
.carousel-scroll::-webkit-scrollbar { height: 8px; }
.carousel-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.carousel-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }

.carousel-item {
    flex: 0 0 auto;
    width: 140px; /* Fixed width for covers */
    text-align: center;
    transition: transform 0.3s ease;
}

.carousel-item:hover { transform: translateY(-10px); }

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

.carousel-item span {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #ccc;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   10. BOOKS PAGE LIST STYLES
   ========================================================================== */

/* Featured Lists: Card Style */
.featured-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary); /* Orange Accent */
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: 1px solid #eee;
    border-left-width: 5px; /* Keep accent thick */
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--secondary); /* Purple border on hover */
}

.link-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.link-card:hover h3 {
    color: var(--primary);
}

.link-card i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 15px;
    opacity: 0.8;
}

/* More Lists: Pill/Button Style */
.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; /* Light Grey */
    border-radius: 6px;
    color: #444;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.simple-link-grid li a:hover {
    background: var(--secondary); /* Purple Background */
    color: #fff; /* White Text */
    padding-left: 20px; /* Slide Effect */
    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 Styles */
.event-card {
    display: flex;
    flex-direction: column;
    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;
}
.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;
}
.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: 'Georgia', serif;
    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;
}

@media (min-width: 768px) {
    .event-card { flex-direction: row; }
    .event-img-col { flex: 0 0 250px; border-right: 1px solid #eee; }
}

/* Filter Form Styling */
.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;
}

/* ==========================================================================
   13. COMING SOON & NEW BOOKS STYLES (Scoped to Grids)
   ========================================================================== */
.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;
}
.filter-pill:hover {
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
}
.filter-pill.active {
    background: #4a148c; /* Primary Purple */
    color: #fff;
    box-shadow: 0 4px 8px rgba(74, 20, 140, 0.3);
}

/* Book Grid */
.book-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px 20px;
    margin-bottom: 40px;
}

.book-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease; /* Smoother transition */
    padding: 15px; /* Padding for the card feel */
    border-radius: 8px;
    border: 1px solid transparent; /* Prevents jumping on hover */
}

/* Hover Effect: Lifts entire card + Shadow */
.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Drop Shadow */
    background: #fff; /* White background to make shadow pop */
    border-color: #f0f0f0;
}

.book-cover-wrapper {
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 2 / 3;
}

/* Scoped to wrapper so it DOES NOT affect Book Info Page */
.book-cover-wrapper .book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none; /* Override global max-width for grid only */
}

.missing-cover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.2;
}

.book-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Note: .book-title here is inside .book-item, different context than the main page title */
.book-item .book-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #1a1a1a;
    font-family: var(--font-main); /* Keep grid titles sans-serif */
}
.book-author {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}
.book-date {
    font-size: 0.8rem;
    color: #ff7e03; /* Orange accent */
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.book-btn {
    display: inline-block;
    width: 100%;
    padding: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}
.book-btn:hover {
    background: #4a148c;
    color: #fff;
    border-color: #4a148c;
}

/* ==========================================================================
   14. LEGACY PAGE FIXES
   ========================================================================== */
/* Fixes the large book cover issue by defining the .pic class and legacy grid columns */

.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);
}

/* FIX: Restore Author Name Size and Color on Book Info Page */
.book-info-col .book-author {
    font-size: 1.5rem !important;
    color: #333 !important;
    margin-bottom: 20px !important;
}

/* FIX: Target headings specifically within the book info column on legacy pages */
.book-info-col h1.book-title {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 2.2rem !important;
    line-height: 1.2;
    color: #1a1a1a;
}

.book-info-col h3 {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 1.5rem !important;
    color: #1a1a1a;
}

/* Clearfix for rows */
.row:before, .row:after { display: table; content: " "; }
.row:after { clear: both; }
.row { margin-right: -15px; margin-left: -15px; }

/* Grid Columns (Bootstrap 3 Emulation) */
.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;
}

/* Tablet (Small) */
@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%; }
}

/* Desktop (Medium) */
@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%; }
}