﻿/* ========================================================================
   POWER APPS GUIDE - SITE STYLES
   ========================================================================
   
   This stylesheet contains all global styles for PowerAppsGuide.com
   
   Table of Contents:
   1. Global Layout & Body Styles
   2. Banner Card Component
   3. Hero Section (Home Page)
   4. Section Headers & Typography
   5. Feature Grid Component
   6. Media Cards & Resource Cards
   7. Blog Post Cards & Latest Posts Grid
   8. Microsoft Links Grid
   9. Post Navigation & Comments
   10. Sidebar Styles (Blog)
   11. Pagination & Category Pills
   12. Post Metadata & Article Body
   13. Bootstrap Overrides
   14. Legacy/Deprecated Styles
   
   ======================================================================== */


/* ========================================================================
   1. GLOBAL LAYOUT & BODY STYLES
   ========================================================================
   Purpose: Base layout and container styles applied across all pages
   Used in: Home, Book, Blog List, Blog Post, Resources, About
   ======================================================================== */

body {
    padding-top: 50px;
    padding-bottom: 20px;
    background-color: gainsboro;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
    background-color: white;
}

input,
select,
textarea {
    max-width: 280px;
}

#mainBody .col-md-8 {
    padding-left: 0;
}


/* ========================================================================
   2. BANNER CARD COMPONENT
   ========================================================================
   Purpose: Two-column promotional card with text and image
   Used in: Home, Book, Resources, About
   ======================================================================== */

.banner-card {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    align-items: center;
    margin-top: 30px;
    margin-bottom: 50px;
    border: 1px solid #f0f0f0;
}

.banner-content h1 {
    color: #742774;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 36px;
}

.banner-content h2 {
    color: #742774;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
}

.banner-content p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 0;
}

.banner-image img {
    width: 100%;
    height: auto;
    max-width: 200px;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
}


/* ========================================================================
   3. HERO SECTION
   ========================================================================
   Purpose: High-impact banner at the top of the home page
   Used in: Home
   ======================================================================== */

.power-apps-hero {
    background: linear-gradient(135deg, #faf5fa 0%, #f2e8f2 100%);
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: block;
    padding: 0 20px;
}

.power-apps-hero .hero-content-wrapper {
    display: grid;
    grid-template-columns: 40fr 60fr;
    gap: 40px;
    align-items: center;
}

.power-apps-hero .hero-text-section {
    padding: 10px;
}

.power-apps-hero .hero-text-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.1;
}

.power-apps-hero .hero-text-section h1 .brand-highlight {
    color: #742774;
}

.power-apps-hero .hero-image-section img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(116, 39, 116, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.power-apps-hero .btn-hero {
    padding: 14px 34px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.power-apps-hero .btn-hero-primary {
    background-color: #742774;
    color: #ffffff !important;
    border: 2px solid #742774;
    box-shadow: 0 4px 10px rgba(116, 39, 116, 0.2);
}

.power-apps-hero .btn-hero-primary:hover {
    background-color: #8a2e8a;
    border-color: #8a2e8a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(116, 39, 116, 0.4), 0 0 15px rgba(116, 39, 116, 0.2);
}

.power-apps-hero .btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.5);
    color: #333333 !important;
    border: 2px solid #333333;
    backdrop-filter: blur(5px);
}

.power-apps-hero .btn-hero-secondary:hover {
    background-color: #333333;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section - Responsive Styles */
@media (max-width: 991px) {
    .power-apps-hero .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .power-apps-hero .hero-text-section h1 {
        font-size: 2.5rem;
    }

    .power-apps-hero .hero-buttons {
        justify-content: center;
    }

    .power-apps-hero .hero-image-section {
        order: 2;
    }

    .power-apps-hero .hero-text-section {
        order: 1;
    }

    .power-apps-hero .hero-image-section img {
        height: auto;
    }
}

@media (max-width: 767px) {
    .power-apps-hero {
        padding: 40px 0;
    }

    .power-apps-hero .hero-text-section h1 {
        font-size: 2rem;
    }

    .power-apps-hero .hero-buttons {
        flex-direction: column;
    }

    .power-apps-hero .btn-hero {
        text-align: center;
    }
}

/* Home Page - Book Section Styles */
.home-book-section .learn-more-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.home-book-section .book-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.home-book-section .book-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    width: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-book-section .book-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
}

.home-book-section .book-content h3 {
    color: #742774;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.home-book-section .book-content p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.home-book-section .btn-brand-purple {
    background-color: #742774;
    color: #ffffff !important;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(116, 39, 116, 0.2);
    max-width: 250px;
    width: 100%;
}

.home-book-section .btn-brand-purple:hover {
    background-color: #5a1e5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(116, 39, 116, 0.3);
    text-decoration: none;
    color: #ffffff !important;
}

/* Book Section - Responsive Styles */
@media (max-width: 991px) {
    .home-book-section .book-image-container {
        margin-bottom: 30px;
        text-align: center;
    }

    .home-book-section .book-image-container img {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .home-book-section .learn-more-card {
        padding: 25px;
    }

    .home-book-section .book-image-container img {
        max-height: 250px;
    }

    .home-book-section .book-content h3 {
        font-size: 1.5rem;
    }
}

/* ========================================================================
   4. SECTION HEADERS & TYPOGRAPHY
   ========================================================================
   Purpose: Consistent branding for section titles and headings
   Used in: Home, Book, Resources, About
   ======================================================================== */

.section-header-block {
    text-align: center;
    padding: 60px 0 40px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.section-header-block h1,
.section-header-block h2,
.section-title {
    color: #742774;
    font-weight: bold;
    margin-bottom: 15px;
}

.lead-text {
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}


/* ========================================================================
   5. FEATURE GRID COMPONENT
   ========================================================================
   Purpose: Two-column grid for listing features/specifications
   Used in: Home
   ======================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    border-top: 1px solid #eee;
}

.feature-grid > div:nth-child(4n-3),
.feature-grid > div:nth-child(4n-2) {
    background-color: #f9f9f9;
}

.feature-label,
.feature-description {
    padding: 15px 20px;
}

.feature-label {
    font-weight: bold;
    white-space: nowrap;
    color: #742774;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-label i {
    font-size: 1.2rem;
}

.feature-description {
    line-height: 1.6;
    color: #444;
}


/* ========================================================================
   6. MEDIA CARDS & RESOURCE CARDS
   ========================================================================
   Purpose: Elevated interactive cards for resources and content
   Used in: Home, Resources
   ======================================================================== */

.media-row {
    display: flex;
    flex-wrap: wrap;
}

.media-row [class*="col-"] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    text-align: center;
}

.media-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
}

.media-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.media-row h3 {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 10px;
    width: 100%;
}

.resource-card, .resource-card-static {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: #742774;
    box-shadow: 0 15px 35px rgba(116, 39, 116, 0.1);
}

.resource-card .media-wrapper {
    margin-top: 10px;
    background-color: transparent;
}

.resource-card-static:hover {
    transform: none !important;
    border-color: #f0f0f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}


/* ========================================================================
   7. BLOG POST CARDS & LATEST POSTS GRID
   ========================================================================
   Purpose: Interactive cards for blog posts and latest posts layout
   Used in: Home, Blog List, Blog Post, Resources
   ======================================================================== */

.latest-posts-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.post-card:hover {
    transform: translateX(5px);
    border-color: #742774;
    box-shadow: 0 5px 15px rgba(116, 39, 116, 0.1);
}

.post-card i {
    font-size: 1.2rem;
    color: #742774;
    margin-right: 15px;
    background: #f9f5f9;
    padding: 8px;
    border-radius: 6px;
}

.post-title {
    color: #444;
    font-weight: 500;
    line-height: 1.4;
}

.post-card:hover .post-title {
    color: #742774;
}

/* Blog List - Draft Post Cards */
.post-card-draft {
    background: #f5f5f5 !important;
    border: 2px dashed #999 !important;
    opacity: 0.85;
}

.post-card-draft:hover {
    opacity: 1;
    background: #ececec !important;
}

/* Blog List - Category Pills */
.category-pill-blog-list {
    transition: all 0.2s ease;
}

.category-pill-blog-list:hover {
    background: #742774 !important;
    color: #ffffff !important;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 2rem;
}

.latest-posts-grid > div {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 20px;
    min-height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(60,0,60,0.03);
    transition: box-shadow 0.2s;
}

.latest-posts-grid > div:hover {
    box-shadow: 0 4px 16px rgba(60,0,60,0.08);
}

.latest-post-card .post-card {
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
    display: block;
}

/* ========================================================================
   8. MICROSOFT LINKS GRID
   ========================================================================
   Purpose: Grid layout for external Microsoft resource links
   Used in: Resources
   ======================================================================== */

.microsoft-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 2rem;
}

.link-card, .link-card-static {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(60,0,60,0.03);
    transition: all 0.3s ease;
}

.link-card:hover {
    box-shadow: 0 4px 16px rgba(60,0,60,0.08);
    transform: translateY(-2px);
}

.link-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.link-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #742774;
    text-decoration: none;
    transition: color 0.2s;
}

.link-card-title:hover {
    color: #5a1e5a;
    text-decoration: none;
}

.link-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f9f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sub-link:hover {
    background: #f3eaf7;
    transform: translateX(5px);
}

.sub-link a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    flex-grow: 1;
    transition: color 0.2s;
}

.sub-link:hover a {
    color: #742774;
    font-weight: 600;
}

.sub-link i {
    flex-shrink: 0;
}

/* Resources Page - Microsoft Section with Branded Background */
.microsoft-resources-section {
    position: relative;
    padding: 60px 20px;
    background-color: #ffffff;
    background-image: linear-gradient(
        135deg,
        rgba(242, 80, 34, 0.05) 0%,   /* MS Red */
        rgba(127, 186, 0, 0.05) 33%,  /* MS Green */
        rgba(0, 164, 239, 0.05) 66%,  /* MS Blue */
        rgba(255, 185, 0, 0.05) 100%  /* MS Yellow */
    );
    overflow: hidden;
    border-radius: 12px;
}

/* Microsoft Logo Watermark */
.watermark-overlay {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    opacity: 0.03;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.watermark-overlay::before {
    content: '';
    grid-column: 1;
    background: #f25022; /* MS Red */
}

.watermark-overlay::after {
    content: '';
    grid-column: 2;
    background: #7fba00; /* MS Green */
}

.microsoft-resources-section .watermark-square-blue {
    background: #00a4ef; /* MS Blue */
}

.microsoft-resources-section .watermark-square-yellow {
    background: #ffb900; /* MS Yellow */
}

.content-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================================================
   9. POST NAVIGATION & COMMENTS
   ========================================================================
   Purpose: Previous/next post navigation and comments section styling
   Used in: Blog Post
   ======================================================================== */

.post-navigation-section {
    background-color: #fdf5fd;
    padding: 20px 0 0 0;
    overflow: visible;
    position: relative;
}

.post-navigation-wrapper {
    background: transparent;
    border-radius: 0;
    margin: 0 auto;
    max-width: 900px;
    box-sizing: border-box;
    box-shadow: none;
    padding: 20px 32px;
    border: none;
}

.post-navigation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

.post-navigation-grid .nav-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px 28px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(116,39,116,0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.post-navigation-grid .nav-container:hover {
    box-shadow: 0 4px 16px rgba(116,39,116,0.08);
    border-color: #742774;
}

.nav-link-title a {
    font-size: 1.1em;
    font-weight: 600;
    color: #5a2d81;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link-title a:hover {
    color: #742774;
    text-decoration: underline;
}

.post-nav-section {
    background-color: #fdf5fd;
    padding: 40px 20px;
    border-radius: 15px;
    margin-top: 50px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: #742774;
    box-shadow: 0 10px 25px rgba(116, 39, 116, 0.1);
}

.nav-label {
    color: #742774;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.nav-card:hover .nav-title {
    color: #742774;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.post-navigation-section .section-divider-bottom {
    position: relative;
    margin-top: 20px;
}

.comments-section {
    background-color: #f1f1f1;
    padding: 20px 0 0 0;
    overflow: visible;
    position: relative;
}

.comments-wrapper {
    background: transparent;
    border-radius: 0;
    margin: 0 auto;
    max-width: 900px;
    box-sizing: border-box;
    padding: 20px 32px 40px 32px;
}

.comments-header {
    text-align: center;
    margin-bottom: 30px;
}

.comments-title {
    color: #742774;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.comments-title i {
    font-size: 1.5rem;
}

.comments-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}


/* ========================================================================
   10. SIDEBAR STYLES (BLOG)
   ========================================================================
   Purpose: Sidebar components for blog pages
   Used in: Blog List, Blog Post
   ======================================================================== */

.box-recent-posts {
    background-color: #f5f3f7;
    border: 1px solid #e2dee5;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.box-recent-posts h4:first-child {
    margin-top: 0 !important;
}

.box-recent-posts h4 {
    color: #742774;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-recent-posts .border-top {
    border-top: 1px solid #e2dee5 !important;
    margin-top: 25px;
}

.sidebar-bullet-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-bullet-item {
    position: relative;
    padding: 5px 0 5px 25px;
    border-bottom: 1px solid #e9e6ed;
}

.sidebar-bullet-item:last-child {
    border-bottom: none;
}

.sidebar-bullet-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background-color: #742774;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.sidebar-search-container {
    display: flex;
    height: 45px;
    align-items: stretch;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 10;
}

.search-input-styled {
    height: 100% !important;
    margin: 0 !important;
    padding-left: 40px !important;
    border-radius: 50px 0 0 50px !important;
    border: 1px solid #ced4da;
    border-right: none;
}

.search-input-styled:focus + .search-icon {
    color: #742774;
}

.search-btn-compact {
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 50px 50px 0 !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #742774;
    border: 1px solid #742774;
    font-weight: 700;
}

.sidebar-search-container .search-btn-compact,
.search-btn-compact {
    color: #ffffff !important;
    background-color: #742774 !important;
    border-color: #742774 !important;
}

.sidebar-search-container .search-btn-compact:hover,
.search-btn-compact:hover {
    background-color: #5a1e5a !important;
    border-color: #5a1e5a !important;
    color: #ffffff !important;
}

.sidebar-author-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-profile-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #efdaef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.author-info {
    font-size: 1rem;
    line-height: 1.4;
    color: #555;
}

.author-info strong {
    color: #742774;
    font-size: 1.1rem;
    display: block;
}

.box-recent-posts a,
.box-recent-posts a:visited,
.box-recent-posts a:link {
    color: #444 !important;
    text-decoration: none !important;
}

.box-recent-posts a:hover,
.box-recent-posts a:focus,
.box-recent-posts a:active {
    color: #742774 !important;
    text-decoration: none !important;
}

.box-recent-posts a.category-pill:hover,
.box-recent-posts a.category-pill:focus,
.box-recent-posts a.category-pill:active {
    color: #ffffff !important;
    background: #742774 !important;
}

.sidebar-bullet-list a,
.sidebar-bullet-list a:visited,
.sidebar-bullet-list a:link {
    color: #444 !important;
    text-decoration: none !important;
}

.sidebar-bullet-list a:hover,
.sidebar-bullet-list a:focus,
.sidebar-bullet-list a:active {
    color: #742774 !important;
    text-decoration: none !important;
}


/* ========================================================================
   11. PAGINATION & CATEGORY PILLS
   ========================================================================
   Purpose: Navigation and category tag styling
   Used in: Blog List, Blog Post
   ======================================================================== */

.pagination .page-item .btn-outline-primary {
    color: #742774 !important;
    border-color: #742774;
    background-color: transparent;
    border-radius: 8px;
    padding: 10px 24px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(116, 39, 116, 0.1);
}

.pagination .page-item:last-child .btn-outline-primary {
    margin-right: 0;
}

.pagination .page-item .btn-outline-primary:hover {
    background-color: #742774 !important;
    color: #ffffff !important;
    border-color: #742774 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 39, 116, 0.2);
}

.pagination .page-item .btn-outline-primary:visited {
    color: #742774 !important;
}

.pagination .page-item .btn-outline-primary:visited:hover {
    color: #ffffff !important;
}

.pagination .page-item .btn-outline-primary:focus,
.pagination .page-item .btn-outline-primary:active {
    box-shadow: 0 0 0 0.25rem rgba(116, 39, 116, 0.25);
    outline: none;
    color: #742774 !important;
}

.pagination .page-item .btn-outline-primary:focus:hover,
.pagination .page-item .btn-outline-primary:active:hover {
    color: #ffffff !important;
}

.category-pill {
    display: inline-block;
    padding: 5px 15px;
    margin: 2px;
    border: 1px solid #742774;
    border-radius: 20px;
    color: #742774;
    font-size: 0.9rem;
    text-decoration: none;
    background: #f9f5f9;
    transition: all 0.2s;
}

.category-pill:hover {
    background: #742774 !important;
    color: #ffffff !important;
    text-decoration: none;
}

a.category-pill:link,
a.category-pill:visited {
    color: #742774;
}

a.category-pill:hover,
a.category-pill:focus,
a.category-pill:active {
    color: #ffffff !important;
    background: #742774 !important;
    text-decoration: none;
}

.category-pill-small {
    background: #f9f5f9;
    color: #742774;
    border: 1px solid #c590ae;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-pill-small:hover {
    background: #5a1e5a;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(60,0,60,0.08);
}

.category-badge {
    background: #f9f5f9;
    color: #742774;
    border: 1px solid #742774;
    font-size: 0.85rem;
    padding: 5px 15px;
}


/* ========================================================================
   12. POST METADATA & ARTICLE BODY
   ========================================================================
   Purpose: Blog post-specific styling for metadata and content
   Used in: Blog Post
   ======================================================================== */

.post h2 {
    font-size: 28px;
}

.metadata-bar {
    background-color: #fcfaff;
    border-color: #eee !important;
}

.post-metadata-strip {
    background-color: #f8f7fa;
    border-radius: 6px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.meta-item i {
    color: #742774;
    margin-right: 8px;
    font-size: 1rem;
}

.meta-divider {
    width: 1px;
    height: 16px;
    background-color: #dee2e6;
}

.text-purple {
    color: #742774 !important;
}

.blog-content-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.15rem;
}

#articleBody img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 4px;
    background-color: #ffffff;
}

#articleBody {
    overflow-x: hidden;
}


/* ========================================================================
   13. BOOTSTRAP OVERRIDES & CUSTOM COMPONENTS
   ========================================================================
   Purpose: Custom styling for Bootstrap elements and special components
   Used in: Various pages
   ======================================================================== */

#timleung .navbar-inverse {
    background: linear-gradient(135deg, #742774 0%, #5a1e5a 50%, #2b0e2b 100%);
}

#timleung .navbar-inverse .navbar-nav > li > a {
    color: white;
}

#timleung .navbar-inverse .navbar-nav > li > a:hover,
#timleung .navbar-inverse .navbar-nav > li > a:focus {
    color: #999999;
    background-color: transparent;
}

#timleung .navbar-inverse .navbar-nav > .active > a,
#timleung .navbar-inverse .navbar-nav > .active > a:hover,
#timleung .navbar-inverse .navbar-nav > .active > a:focus {
    color: white;
    background-color: #080808;
}

#timleung table.pag {
    border-style: dotted;
    border-width: 1px;
    padding: 5px;
}

#timleung table.pag tr td {
    border-style: dotted;
    border-width: 1px;
    vertical-align: top;
}

#timleung .jumbotron {
    background: linear-gradient(135deg, #742774 0%, #4a194a 50%, #120612 100%);
    width: 100%;
    position: relative;
    padding-bottom: 50px;
    margin: 0;
    border-bottom: solid 10px #C590AE;
}

#timleung .jumbotron h1 {
    font-size: 50px;
    margin: 0;
}

#timleung .jumbotron .lead {
    margin: 0;
}

#timleung .navbar-brand {
    color: white;
}

#timleung .borderTopSolid {
    border-top-color: gainsboro;
    border-top-style: solid;
    border-top-width: 1px;
}

#timleung .zeroRadius {
    border-radius: 0;
}

#timleung h1 {
    color: #742774;
    font-size: 36px;
}

#timleung h1.blog-post-title {
    color: #253034;
    font-size: 22px;
}

#timleung header {
    /* Legacy header styles */
}

#timleung .blog-header-homelink {
    color: #742774;
    text-decoration: none;
}

#timleung .blog-header-homelink a:visited,
#timleung .blog-header-homelink a {
    color: #742774;
}

#timleung .blog-listpage-header {
    border-bottom: solid;
    border-bottom-width: 2px;
    border-bottom-color: gainsboro;
}

#timleung .blog-listpage-header h1 {
    margin-bottom: 15px;
    font-size: 23px;
    color: slategrey;
}

#timleung .blockquote {
    border-left: 10px solid #E2D5CC;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    font-style: italic;
}

#timleung h1.blogTitle {
    font-size: 24px;
    padding-left: 15px;
    margin-bottom: 15px;
}

#timleung .blog-header-title-block {
    border-bottom-color: darkgray;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

#timleung kbd {
    margin: 0px 0.1em;
    padding: 0.1em 0.6em;
    border-radius: 3px;
    border: 1px solid rgb(204, 204, 204);
    color: rgb(51, 51, 51);
    line-height: 1.4;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    display: inline-block;
    box-shadow: 0px 1px 0px rgba(0,0,0,0.2), inset 0px 0px 0px 2px #ffffff;
    background-color: rgb(247, 247, 247);
    -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset;
    -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    text-shadow: 0 1px 0 #fff;
}

#timleung a {
    text-decoration: none;
    color: #742774;
}

/* ========================================================================
   14. LEGACY/DEPRECATED STYLES
   ========================================================================
   Purpose: Older styles that may need review or removal
   Note: Consider removing if not in active use
   ======================================================================== */

ul.no-indent {
    list-style-position: inside;
    margin: 0;
    text-indent: -2em;
    padding-left: 2em;
}

.box-highlight {
    background-color: #EAEAEA;
    box-shadow: 0 10px 6px -6px #777;
}
