/* ================================================================
   AB Performance - Blog Consolidated CSS (ab-blog.css)
   Merged from: blog-hero, blog-list, blog-post
   Brand Colours: Red #e1303a, Black #1a1a1a, Gold #E9A329
   ================================================================ */


/* ================================================================
   SECTION: blog-hero
   ================================================================ */


.ab-performance-blog-hero-section {
    background: #1a1a1a;
    padding: 110px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.ab-performance-blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(225, 48, 58, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(233, 163, 41, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.ab-performance-blog-hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ab-performance-blog-hero-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #E9A329;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.ab-performance-blog-hero-container h1 {
    font-size: 54px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.ab-performance-blog-hero-container p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 968px) {
    .ab-performance-blog-hero-section {
        padding: 90px 20px;
    }
    
    .ab-performance-blog-hero-container h1 {
        font-size: 44px;
    }
    
    .ab-performance-blog-hero-container p {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .ab-performance-blog-hero-section {
        padding: 80px 20px;
    }
    
    .ab-performance-blog-hero-label {
        font-size: 10px;
        margin-bottom: 16px;
    }
    
    .ab-performance-blog-hero-container h1 {
        font-size: 36px;
    }
    
    .ab-performance-blog-hero-container p {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .ab-performance-blog-hero-section {
        padding: 70px 20px;
    }
    
    .ab-performance-blog-hero-container h1 {
        font-size: 32px;
    }
    
    .ab-performance-blog-hero-container p {
        font-size: 16px;
    }
}

/* ================================================================
   SECTION: blog-list
   ================================================================ */


.ab-performance-blog-list-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #eaeaea 100%);
    padding: 100px 20px;
}

.ab-performance-blog-list-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* --------------------------------
   Blog Post Item
   -------------------------------- */
.ab-performance-blog-list-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Gradient accent on left */
.ab-performance-blog-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e1303a 0%, #E9A329 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.ab-performance-blog-list-item:hover::before {
    opacity: 1;
}

.ab-performance-blog-list-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(225, 48, 58, 0.1);
}

.ab-performance-blog-list-link {
    display: grid;
    grid-template-columns: 380px 1fr;
    text-decoration: none;
    color: inherit;
}

/* --------------------------------
   Image
   -------------------------------- */
.ab-performance-blog-list-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.ab-performance-blog-list-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(225, 48, 58, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ab-performance-blog-list-item:hover .ab-performance-blog-list-image::after {
    opacity: 1;
}

.ab-performance-blog-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-performance-blog-list-item:hover .ab-performance-blog-list-image img {
    transform: scale(1.05);
}

/* --------------------------------
   Content
   -------------------------------- */
.ab-performance-blog-list-content {
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Meta Information */
.ab-performance-blog-list-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ab-performance-blog-list-meta span {
    font-size: 13px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.ab-performance-blog-list-meta i {
    font-size: 12px;
    color: #e1303a;
}

/* Heading */
.ab-performance-blog-list-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.ab-performance-blog-list-link:hover h2 {
    color: #e1303a;
}

/* Excerpt */
.ab-performance-blog-list-excerpt {
    font-size: 15px;
    color: #666666;
    line-height: 1.75;
    margin: 0 0 22px 0;
}

/* Read More */
.ab-performance-blog-list-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e1303a;
    transition: all 0.3s ease;
}

.ab-performance-blog-list-readmore i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.ab-performance-blog-list-link:hover .ab-performance-blog-list-readmore {
    gap: 12px;
}

.ab-performance-blog-list-link:hover .ab-performance-blog-list-readmore i {
    transform: translateX(4px);
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 968px) {
    .ab-performance-blog-list-section {
        padding: 80px 20px;
    }
    
    .ab-performance-blog-list-container {
        gap: 30px;
    }
    
    .ab-performance-blog-list-link {
        grid-template-columns: 300px 1fr;
    }
    
    .ab-performance-blog-list-image {
        height: 240px;
    }
    
    .ab-performance-blog-list-content {
        padding: 35px 38px;
    }
    
    .ab-performance-blog-list-content h2 {
        font-size: 22px;
    }
    
    .ab-performance-blog-list-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .ab-performance-blog-list-section {
        padding: 70px 20px;
    }
    
    .ab-performance-blog-list-link {
        grid-template-columns: 1fr;
    }
    
    .ab-performance-blog-list-item::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        background: linear-gradient(90deg, #e1303a 0%, #E9A329 100%);
    }
    
    .ab-performance-blog-list-image {
        height: 220px;
    }
    
    .ab-performance-blog-list-content {
        padding: 30px 32px;
    }
    
    .ab-performance-blog-list-content h2 {
        font-size: 21px;
        margin-bottom: 14px;
    }
    
    .ab-performance-blog-list-excerpt {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .ab-performance-blog-list-section {
        padding: 60px 15px;
    }
    
    .ab-performance-blog-list-container {
        gap: 25px;
    }
    
    .ab-performance-blog-list-image {
        height: 180px;
    }
    
    .ab-performance-blog-list-content {
        padding: 25px;
    }
    
    .ab-performance-blog-list-meta {
        gap: 15px;
        margin-bottom: 14px;
    }
    
    .ab-performance-blog-list-meta span {
        font-size: 12px;
    }
    
    .ab-performance-blog-list-content h2 {
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .ab-performance-blog-list-excerpt {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .ab-performance-blog-list-readmore {
        font-size: 13px;
    }
}
/* ================================================================
   SECTION: blog-post
   ================================================================ */


.ab-performance-blog-post-section {
    background: #1a1a1a;
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlays */
.ab-performance-blog-post-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(225, 48, 58, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(233, 163, 41, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.ab-performance-blog-post-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 70px 90px;
    border-radius: 16px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* --------------------------------
   Header
   -------------------------------- */
.ab-performance-blog-post-header {
    margin-bottom: 45px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.ab-performance-blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.ab-performance-blog-post-meta span {
    font-size: 13px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.ab-performance-blog-post-meta i {
    font-size: 12px;
    color: #e1303a;
}

.ab-performance-blog-post-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------
   Content
   -------------------------------- */
.ab-performance-blog-post-content {
    font-size: 17px;
    color: #444444;
    line-height: 1.9;
}

.ab-performance-blog-post-content p {
    margin-bottom: 24px;
}

.ab-performance-blog-post-content p:last-child {
    margin-bottom: 0;
}

.ab-performance-blog-post-content a {
    color: #e1303a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.ab-performance-blog-post-content a:hover {
    color: #c72730;
    border-bottom-color: #c72730;
}

/* Headings within content */
.ab-performance-blog-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 50px 0 22px 0;
    line-height: 1.3;
    position: relative;
    padding-left: 20px;
}

.ab-performance-blog-post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e1303a 0%, #E9A329 100%);
    border-radius: 2px;
}

.ab-performance-blog-post-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 18px 0;
    line-height: 1.35;
}

/* Strong text styling */
.ab-performance-blog-post-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Lists */
.ab-performance-blog-post-content ul,
.ab-performance-blog-post-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.ab-performance-blog-post-content li {
    margin-bottom: 12px;
}

/* Blockquotes */
.ab-performance-blog-post-content blockquote {
    margin: 40px 0;
    padding: 30px 35px;
    background: linear-gradient(135deg, rgba(225, 48, 58, 0.06) 0%, rgba(233, 163, 41, 0.03) 100%);
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #e1303a 0%, #E9A329 100%) 1;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555555;
    font-size: 18px;
}

.ab-performance-blog-post-content blockquote p {
    margin: 0;
}

/* --------------------------------
   Callout Box
   -------------------------------- */
.ab-performance-blog-post-callout {
    background: linear-gradient(135deg, #1F5FA0 0%, #174a7a 100%);
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #64b5f6;
    box-shadow: 0 4px 15px rgba(31, 95, 160, 0.3);
}

.ab-performance-blog-post-callout p {
    color: #ffffff;
    margin: 0;
    line-height: 1.7;
}

.ab-performance-blog-post-callout a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    border-bottom: none;
    transition: opacity 0.3s ease;
}

.ab-performance-blog-post-callout a:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #ffffff;
    border-bottom: none;
}

/* --------------------------------
   Images
   -------------------------------- */
.ab-performance-blog-post-image {
    margin: 45px 0;
    background: linear-gradient(90deg, #e1303a 0%, #4a4a4a 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ab-performance-blog-post-image img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.ab-performance-blog-post-caption {
    text-align: center;
    font-size: 14px;
    color: #888888;
    font-style: italic;
    margin-top: 16px;
    margin-bottom: 0;
}

/* --------------------------------
   Share Section
   -------------------------------- */
.ab-performance-blog-post-share {
    margin-top: 60px;
    padding-top: 45px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.ab-performance-blog-post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e1303a 0%, #c72730 100%);
    color: #ffffff;
    padding: 16px 34px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(225, 48, 58, 0.25);
    border: none;
    cursor: pointer;
    font-family: 'Gantari', sans-serif;
}

.ab-performance-blog-post-share-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.ab-performance-blog-post-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(225, 48, 58, 0.35);
}

.ab-performance-blog-post-share-btn.copied {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

/* --------------------------------
   Back to Blog
   -------------------------------- */
.ab-performance-blog-post-back {
    margin-top: 30px;
    text-align: center;
}

.ab-performance-blog-post-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 34px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ab-performance-blog-post-back-btn i {
    transition: transform 0.3s ease;
}

.ab-performance-blog-post-back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: #333333;
}

.ab-performance-blog-post-back-btn:hover i {
    transform: translateX(-4px);
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1100px) {
    .ab-performance-blog-post-container {
        max-width: 900px;
        padding: 60px 70px;
    }
    
    .ab-performance-blog-post-header h1 {
        font-size: 38px;
    }
}

@media (max-width: 968px) {
    .ab-performance-blog-post-section {
        padding: 70px 20px 90px;
    }
    
    .ab-performance-blog-post-container {
        padding: 50px 50px;
    }
    
    .ab-performance-blog-post-header h1 {
        font-size: 34px;
    }
    
    .ab-performance-blog-post-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .ab-performance-blog-post-section {
        padding: 60px 15px 80px;
    }
    
    .ab-performance-blog-post-container {
        padding: 40px 35px;
        border-radius: 12px;
    }
    
    .ab-performance-blog-post-header {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
    
    .ab-performance-blog-post-header h1 {
        font-size: 30px;
    }
    
    .ab-performance-blog-post-content {
        font-size: 16px;
    }
    
    .ab-performance-blog-post-content h2 {
        font-size: 22px;
        padding-left: 16px;
    }
    
    .ab-performance-blog-post-content h3 {
        font-size: 19px;
    }
    
    .ab-performance-blog-post-image {
        margin: 35px 0;
        padding: 15px;
    }
    
    .ab-performance-blog-post-image img {
        max-height: 300px;
    }
    
    .ab-performance-blog-post-callout {
        padding: 20px;
        margin: 25px 0;
    }
    
    .ab-performance-blog-post-share {
        margin-top: 50px;
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .ab-performance-blog-post-section {
        padding: 50px 12px 70px;
    }
    
    .ab-performance-blog-post-container {
        padding: 30px 22px;
    }
    
    .ab-performance-blog-post-meta {
        gap: 15px;
        margin-bottom: 18px;
    }
    
    .ab-performance-blog-post-meta span {
        font-size: 12px;
    }
    
    .ab-performance-blog-post-header h1 {
        font-size: 26px;
    }
    
    .ab-performance-blog-post-content {
        font-size: 15px;
        line-height: 1.85;
    }
    
    .ab-performance-blog-post-content h2 {
        font-size: 20px;
        margin: 40px 0 18px 0;
        padding-left: 14px;
    }
    
    .ab-performance-blog-post-content h3 {
        font-size: 18px;
        margin: 32px 0 14px 0;
    }
    
    .ab-performance-blog-post-content blockquote {
        padding: 22px 20px;
        margin: 30px 0;
        font-size: 16px;
    }
    
    .ab-performance-blog-post-image {
        margin: 28px 0;
        padding: 12px;
    }
    
    .ab-performance-blog-post-image img {
        max-height: 250px;
    }
    
    .ab-performance-blog-post-caption {
        font-size: 13px;
    }
    
    .ab-performance-blog-post-callout {
        padding: 18px;
        margin: 20px 0;
    }
    
    .ab-performance-blog-post-share-btn,
    .ab-performance-blog-post-back-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
    }
}