/* General Styles for About Page - Scoped */

:root {
    --primary-color: #e81c23;
    --primary-dark: #0f172a;
    --secondary-text: #475569;
    --bg-surface: #ffffff;
    --bg-background: #f8fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 18px 36px rgba(15, 23, 42, 0.12);
    --accent-soft: #ffe4e6;
    --accent-soft-strong: #fecdd3;
}

body {
    background-color: var(--bg-background);
}

/* Removed global body style. Assuming base.html handles this. */

/* Styling for .container has been removed to avoid conflict with global styles. */

.about-page-wrapper { /* New wrapper for about page specific content */
    width: 100%; /* Takes full width of its parent in base.html */
    max-width: 1140px; /* Further increased max width for the content of the about page */
    margin: 30px auto; /* Centers the wrapper and adds top/bottom margin */
    padding: 0 15px; /* Horizontal padding for smaller screens */
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
    color: var(--primary-dark);
}

/* Header Styles */
.about-header-main {
    /* Styles for the page title, now simpler */
    color: var(--primary-dark); /* Standard dark text */
    padding: 15px 0;
    text-align: center;
    margin-bottom: 25px; 
    border-bottom: 2px solid var(--border-color); /* Lighter border */
}

.about-header-main h1 {
    font-size: 2.2em; /* Reduced font size */
    margin-bottom: 0;
    font-weight: 700; /* Slightly bolder like compare plans */
    text-shadow: none; /* Removed text shadow */
}

.about-header-sub {
    text-align: center;
    margin-top: 30px; 
    margin-bottom: 30px; 
    padding: 15px 0; 
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color); 
}

.about-header-sub h2 {
    font-size: 1.8em; /* Reduced */
    color: var(--primary-dark); 
    font-weight: 600;
}

/* Content Section Styles */
.about-content {
    background: var(--bg-surface); 
    padding: 25px; /* Slightly reduced */
    border-radius: 10px; /* Slightly more rounded */
    box-shadow: var(--card-shadow); /* Softer, more pronounced shadow */
    margin-bottom: 30px; /* Added margin to separate from footer elements */
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0.6;
}

.about-content h3 {
    color: var(--primary-dark); /* Consistent dark blue/grey */
    margin-top: 30px; /* Increased margin */
    margin-bottom: 15px; /* Increased margin */
    font-size: 1.8em; /* Larger */
    border-bottom: 3px solid var(--primary-color); /* Accent color border */
    padding-bottom: 8px; /* Increased padding */
    display: inline-block;
    font-weight: 600;
}

.about-content p {
    margin-bottom: 20px; /* Increased spacing */
    text-align: justify;
    font-size: 1.05em; /* Slightly larger for readability */
    color: var(--secondary-text);
}

.about-content .text-center {
    text-align: center;
}

.about-content .img_resp {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Consistent rounding */
    margin: 25px 0; /* Increased margin */
    box-shadow: var(--card-shadow); /* Enhanced shadow */
}

.about-logo-stripe {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    margin: 20px 0 10px;
    width: 100%;
    line-height: 0;
}

.about-logo-mark {
    max-width: 100%;
    width: auto;
    height: 54px;
    display: block;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.about-content video {
    max-width: 100%;
    border-radius: 10px; /* Consistent rounding */
    margin: 25px 0; /* Increased margin */
    box-shadow: var(--card-shadow); /* Enhanced shadow */
}

.about-content .btn-red {
    display: inline-block;
    background-color: var(--primary-color); /* Brighter red */
    color: white;
    padding: 12px 25px; /* Larger padding */
    text-decoration: none;
    border-radius: 8px; /* Consistent rounding */
    font-size: 1.2em; /* Larger font */
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-content .btn-red:hover {
    background-color: #b91c1c; /* Darker red on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}

.about-content .btn-red.btn-red-outline {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.about-content .btn-red.btn-red-outline:hover {
    background-color: var(--accent-soft);
    color: #b91c1c;
}

/* Specific Sections */
.mission-statement {
    font-style: normal; /* Removed italic for a cleaner look */
    font-size: 1.3em; /* Larger */
    color: var(--primary-dark); /* Dark blue/grey */
    margin: 30px 0; /* Increased margin */
    padding: 20px; /* Increased padding */
    border-left: 5px solid var(--primary-color); /* Accent color border */
    background-color: #f8fafc; /* Lighter background */
    border-radius: 5px;
}

.flow-section { /* Added class for potential specific styling */
    margin: 30px 0;
}

.flow-section img {
    margin: 15px 0; /* Increased margin */
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 5px;
}

.promo-offers {
    margin: 35px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.promo-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--card-shadow);
}

.promo-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: var(--primary-dark);
    font-weight: 600;
}

.promo-card p {
    margin: 0;
    color: var(--secondary-text);
}

.promo-perks {
    margin-top: 18px;
    padding-left: 20px;
    color: var(--secondary-text);
}

.promo-perks li {
    margin-bottom: 10px;
}

.other-games {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--primary-dark);
}

.other-games i {
    color: var(--primary-color);
}

.other-games-list a,
.other-games-new a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.35);
}

.other-games-list a:hover,
.other-games-new a:hover {
    color: var(--primary-color);
    border-bottom-color: rgba(232, 28, 35, 0.6);
}

.other-games-new {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.new-badge i {
    color: #ffffff;
}

.homepage-brand-block {
    margin-top: 16px;
    margin-bottom: 10px;
}

.homepage-separator {
    width: 220px;
    height: 4px;
    margin: 10px auto 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(232, 28, 35, 0.15), var(--primary-color), rgba(232, 28, 35, 0.15));
}

.homepage-brand-blurb {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.02em;
    line-height: 1.6;
    color: var(--primary-dark);
}

.homepage-brand-blurb a {
    color: var(--primary-color);
    font-weight: 600;
}

.homepage-brand-blurb strong {
    color: var(--primary-dark);
}

.homepage-brand-blurb .blurb-line i {
    margin-right: 8px;
    color: var(--primary-color);
}

.supercraft-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.supercraft-logo-inline {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.compare-plans-btn {
    font-size: 0.95em;
    padding: 8px 18px;
}

.plans-cta {
    margin-top: 10px;
    margin-bottom: 6px;
}

.plans-cta p {
    margin-bottom: 8px;
}

.plans-after-btn-text {
    margin-bottom: 6px;
}

.plans-meta-note {
    font-size: 14px;
    color: #0a0a0a;
    font-weight: 600;
    line-height: 1.4;
}

.plans-meta-note a {
    color: #0a0a0a;
    font-weight: 600;
    line-height: 1.4;
}

.plans-meta-note a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.promo-carousel {
    position: relative;
    overflow: visible;
    margin-bottom: 50px;
}

.promo-carousel .carousel-inner {
    padding: 10px 0;
}

.promo-carousel .carousel-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: stretch;
}

.promo-carousel .promo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.promo-carousel .promo-card img {
    margin: 0 0 12px 0;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.promo-carousel .promo-card p {
    flex: 1;
}

.promo-carousel .promo-card.placeholder {
    background: transparent;
    border: none;
    box-shadow: none;
    visibility: hidden;
}

.promo-carousel .carousel-control-prev-icon,
.promo-carousel .carousel-control-next-icon {
    background-image: none;
}

.promo-carousel .carousel-control-prev-icon::before,
.promo-carousel .carousel-control-next-icon::before {
    color: var(--primary-color);
    font-size: 3em;
    font-weight: bold;
}

.promo-carousel .carousel-control-prev-icon::before {
    content: '<';
}

.promo-carousel .carousel-control-next-icon::before {
    content: '>';
}

.promo-carousel .carousel-control-prev,
.promo-carousel .carousel-control-next {
    width: 5%;
    opacity: 1;
}

.promo-carousel .carousel-control-prev:hover .carousel-control-prev-icon::before,
.promo-carousel .carousel-control-next:hover .carousel-control-next-icon::before {
    color: #b91c1c;
}

.promo-carousel .carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    margin-bottom: 0;
}

.carousel-indicators li {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
}

.social-icons-row {
    text-align: center;
    padding: 25px 0; /* Increased padding */
    border-top: 1px solid var(--border-color); /* Lighter border */
    margin-top: 40px; /* Increased margin */
}

.social-icons-row a {
    margin: 0 12px; /* Increased spacing */
    font-size: 2em; /* Larger icons */
    color: var(--primary-color); /* Brighter blue */
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons-row a:hover {
    color: #b91c1c; /* Darker red on hover */
    transform: scale(1.1); /* Slight zoom on hover */
}

.tweets-row {
    margin: 40px auto; /* Centered and increased margin */
    padding: 25px; /* Increased padding */
    background-color: var(--bg-surface);
    border-radius: 10px; /* Consistent rounding */
    box-shadow: var(--card-shadow); /* Softer shadow */
    max-width: 700px; /* Limit width for better readability */
}

.trustpilot-widget-container {
    margin: 40px 0; /* Increased margin */
    text-align: center;
    position: relative;
    z-index: 1000;
    min-height: 50px;
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Responsive Design */

@media (max-width: 1200px) {
    .promo-carousel .carousel-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .promo-carousel .carousel-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 830px) { /* Adjusted breakpoint for the new wrapper */
    .about-page-wrapper {
        padding: 0 10px; /* Reduce padding on smaller screens */
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    /* Styles for elements within .about-page-wrapper, not for .container */
    .about-header-main h1 {
        font-size: 2.2em; /* Adjusted for smaller screens */
    }

    .about-header-sub h2 {
        font-size: 1.8em; /* Adjusted for smaller screens */
    }

    .about-content h3 {
        font-size: 1.5em; /* Adjusted for smaller screens */
    }
    .about-content p {
        font-size: 1em;
    }
    .mission-statement {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) { /* Added breakpoint for very small screens */
    .promo-carousel .carousel-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .promo-carousel .promo-card {
        padding: 8px;
    }
    .promo-carousel .promo-card h4 {
        font-size: 0.9em;
    }
    .promo-carousel .promo-card p {
        font-size: 0.85em;
    }
    .about-header-main h1 {
        font-size: 1.8em;
    }
    .about-header-sub h2 {
        font-size: 1.5em;
    }
    .about-content h3 {
        font-size: 1.3em;
    }
    .about-content .btn-red {
        font-size: 1em;
        padding: 10px 20px;
    }
    .social-icons-row a {
        font-size: 1.8em;
        margin: 0 8px;
    }
}
