﻿/* 首页专用样式 */

/* 英雄区域增强样式 */
.hero-section {
    background: transparent;
    padding: 2.5rem 0;
    margin: 1rem 0;
    border-radius: 20px;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    color: #e9ecef;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Featured Games Section - New Design */
.featured-games-section {
    background: linear-gradient(135deg, #0d2818 0%, #1e4d2b 50%, #27ae60 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.featured-games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(21, 65, 139, 0.35);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #e9ecef;
    opacity: 0.8;
    margin-bottom: 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* 平板端改为2列 */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机端改为1列 */
@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
}

.featured-card {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.featured-card:hover {
    box-shadow: 0 25px 50px rgba(30, 77, 43, 0.4);
}

.game-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.2rem;
    color: #2ecc71;
    transition: transform 0.3s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1);
}

/* Image sizing for game icons */
.game-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 480px) {
    .game-icon img {
        width: 56px;
        height: 56px;
    }
}

.game-content {
    text-align: center;
    flex: 1;
}

.game-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.game-description {
    font-size: 0.9rem;
    color: #b8c5d0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.feature-tag {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.game-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    color: #1a1a1a;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    background: #fdd835;
    box-shadow: 0 6px 20px rgba(253, 216, 53, 0.4);
    color: #1a1a1a;
    text-decoration: none;
}

.btn-icon {
    font-style: normal;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.game-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-games-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .featured-games-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .game-card {
        padding: 1.2rem;
    }
    
    .game-icon {
        font-size: 2rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-features {
        gap: 0.3rem;
    }
    
    .feature-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* 导航菜单当前页面高亮 */
.nav-menu a[href="index.html"] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.3) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
    transform: translateY(-2px);
    position: relative;
    overflow: hidden;
}

.nav-menu a[href="index.html"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-menu a[href="index.html"]:hover::before {
    left: 100%;
}

/* 首页导航特殊样式 */
.nav-menu .nav-item:first-child .nav-link {
    position: relative;
}

.nav-menu .nav-item:first-child .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #27ae60;
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
        margin: 0.5rem 0;
        border-radius: 15px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        margin-bottom: 0.75rem;
    }
    
    .game-highlight {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .featured-games {
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .featured-games::before {
        border-radius: 17px;
    }
}

/* ========================================
   Informational Content Sections Styles
   E-E-A-T Optimized Content Blocks
   ======================================== */

/* Utility Classes */
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mt-3 { margin-top: 1rem; }
.lead { font-size: 1.25rem; font-weight: 300; line-height: 1.6; }

/* Column System for Content */
@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
}

/* Background Variations */
.bg-light {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px;
    margin: 1rem auto;
    padding: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Text Color Utilities */
.text-success { color: #2ecc71 !important; }
.text-danger { color: #e74c3c !important; }
.text-primary { color: #27ae60 !important; }

/* List Styles */
.list-unstyled {
    padding-left: 0;
    list-style: none;
    margin-left: 0;
    width: 100%;
}

.list-unstyled li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    color: #e9ecef;
    text-align: left;
}

.list-unstyled li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

.text-danger + .list-unstyled li::before {
    content: '⚠';
    color: #e74c3c;
}

/* Alert Boxes */
.alert {
    position: relative;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.alert-info {
    background: rgba(26, 188, 156, 0.15);
    border-color: rgba(26, 188, 156, 0.3);
    color: #e9ecef;
}

.alert-info h4 {
    color: #1abc9c;
    margin-bottom: 0.75rem;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.3);
    color: #e9ecef;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
    color: #e9ecef;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
    color: #fff;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #1e4d2b 0%, #27ae60 100%);
}

.table-primary {
    background: linear-gradient(135deg, #1e4d2b 0%, #27ae60 100%);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(46, 204, 113, 0.3);
    color: #fff;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

.table tbody tr:hover {
    background: rgba(46, 204, 113, 0.08);
    transition: background 0.2s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.table-hover tbody tr:hover {
    background: rgba(46, 204, 113, 0.1);
}

.table-sm th,
.table-sm td {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(46, 204, 113, 0.3);
    border-color: rgba(46, 204, 113, 0.5);
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 2px solid rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.card:hover .card-img-top {
    filter: brightness(1.1);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2ecc71;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body p {
    color: #e9ecef;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.card-body strong {
    color: #fff;
}

/* Accordion Styles for FAQ */
.accordion {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(46, 204, 113, 0.2);
    margin-bottom: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.15);
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(30, 77, 43, 0.6) 0%, rgba(39, 174, 96, 0.3) 100%);
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
}

.accordion-button strong {
    color: #fff;
    font-weight: 600;
    flex: 1;
}

.accordion-button::after {
    content: '▼';
    font-size: 0.8rem;
    color: #2ecc71;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-button:hover {
    background: linear-gradient(135deg, rgba(30, 77, 43, 0.8) 0%, rgba(39, 174, 96, 0.5) 100%);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.4) 0%, rgba(46, 204, 113, 0.3) 100%);
    border-bottom: 2px solid rgba(46, 204, 113, 0.3);
}

.accordion-collapse {
    transition: max-height 0.3s ease;
}

.accordion-collapse.collapse {
    display: none;
}

.accordion-collapse.collapse.show {
    display: block;
}

.accordion-body {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: #e9ecef;
    line-height: 1.8;
}

.accordion-body strong {
    color: #fff;
    font-weight: 600;
}

.accordion-body ul,
.accordion-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.accordion-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.accordion-body a {
    color: #2ecc71;
    text-decoration: none;
    border-bottom: 1px solid rgba(46, 204, 113, 0.3);
    transition: all 0.2s ease;
}

.accordion-body a:hover {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

.accordion-body .table {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Code/Technical Text */
code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #2ecc71;
    font-size: 0.9em;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Emphasis Text */
em {
    color: #f39c12;
    font-style: italic;
}

strong {
    font-weight: 600;
    color: #fff;
}

/* Section Spacing */
.container.py-5 {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.container.py-5 h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(46, 204, 113, 0.3);
    text-align: left;
}

.container.py-5 h3 {
    color: #2ecc71;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.container.py-5 h4 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Ordered Lists in Content */
ol {
    color: #e9ecef;
    line-height: 1.8;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
}

ol li {
    margin-bottom: 0.75rem;
    text-align: left;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-responsive {
        border: 1px solid rgba(46, 204, 113, 0.2);
        border-radius: 8px;
    }
}

/* Responsive Cards */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
}

/* Responsive Accordion */
@media (max-width: 768px) {
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Highlight Boxes */
.alert strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

/* Responsive Column Layout */
@media (max-width: 768px) {
    .col-md-6,
    .col-md-4 {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .container.py-5 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Table in Accordion Special Styling */
.accordion-body .table {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.accordion-body .table th {
    background: rgba(30, 77, 43, 0.6);
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
}

.accordion-body .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
}

/* Ordered List Numbers Styling */
.container.py-5 ol {
    counter-reset: item;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

.container.py-5 ol li {
    counter-increment: item;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
}

.container.py-5 ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

/* Nested Lists */
ul ul,
ol ul,
ul ol,
ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
}

/* Accordion Body Lists */
.accordion-body ul {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
    width: 100%;
}

.accordion-body ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    text-align: left;
}

.accordion-body ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

.accordion-body ol {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
    counter-reset: item;
}

.accordion-body ol li {
    counter-increment: item;
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    text-align: left;
}

.accordion-body ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .container.py-5 h2 {
        font-size: 1.5rem;
    }
    
    .container.py-5 h3 {
        font-size: 1.25rem;
    }
    
    .container.py-5 h4 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Link Styles in Content */
.container.py-5 a:not(.btn) {
    color: #2ecc71;
    text-decoration: underline;
    text-decoration-color: rgba(46, 204, 113, 0.4);
    transition: all 0.2s ease;
}

.container.py-5 a:not(.btn):hover {
    color: #27ae60;
    text-decoration-color: #27ae60;
}

/* Paragraph Spacing in Content Sections */
.container.py-5 p {
    color: #e9ecef;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: left;
    width: 100%;
}

/* UL Lists in Content */
.container.py-5 ul {
    padding-left: 0;
    margin-left: 0;
    list-style: none;
    width: 100%;
}

.container.py-5 ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    text-align: left;
    color: #e9ecef;
}

.container.py-5 ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Content Section Dividers */
.container.py-5:not(:last-of-type) {
    margin-bottom: 2rem;
}

/* Improved Readability for Long Content */
.container.py-5 .row {
    margin-left: 0;
    margin-right: 0;
}

.container.py-5 .col-12 {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.container.py-5 .col-md-6,
.container.py-5 .col-md-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Enhanced Focus States for Accessibility */
.accordion-button:focus,
.table:focus,
.card:focus {
    outline: 2px solid rgba(46, 204, 113, 0.5);
    outline-offset: 2px;
}

/* Print Styles for FAQ */
@media print {
    .accordion-collapse {
        display: block !important;
        max-height: none !important;
    }
    
    .accordion-button::after {
        display: none;
    }
    
    .bg-light {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Fix for All Content Sections Alignment */
section.container.py-5,
section.container.py-5.bg-light {
    display: block;
    box-sizing: border-box;
}

/* Ensure Full Width for bg-light sections */
section.py-5.bg-light {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

section.py-5.bg-light .container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Row Alignment Fix */
.row {
    width: 100%;
    box-sizing: border-box;
}

/* Column Padding Consistency */
[class*="col-"] {
    box-sizing: border-box;
}

/* H2/H3/H4 Alignment in Content */
.container.py-5 h2,
.container.py-5 h3,
.container.py-5 h4 {
    width: 100%;
    box-sizing: border-box;
}

/* Accordion Body Content Alignment */
.accordion-body {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.accordion-body p,
.accordion-body ul,
.accordion-body ol {
    width: 100%;
    box-sizing: border-box;
}

/* Table Cell Alignment */
.table th,
.table td {
    text-align: left;
    vertical-align: top;
}

/* Card Body Alignment */
.card-body {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Optimization for Content Sections */
@media (max-width: 768px) {
    section.container.py-5 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .container.py-5 .col-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .list-unstyled li,
    .container.py-5 ul li,
    .container.py-5 ol li {
        padding-left: 2.5rem;
    }
    
    .accordion-body {
        padding: 1rem 0.75rem;
    }
    
    .table-responsive {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 8px;
        overflow-x: auto;
    }
    
    .table {
        min-width: 600px;
    }
    
    .bg-light {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Additional Alignment Fixes */
section.py-5 {
    width: 100%;
    box-sizing: border-box;
}

section.py-5 .container {
    box-sizing: border-box;
}

/* Ensure proper nesting */
.container .row .col-12 h2,
.container .row .col-12 h3,
.container .row .col-12 h4,
.container .row .col-12 p {
    margin-left: 0;
    margin-right: 0;
}

/* Code Block Alignment */
code {
    display: inline-block;
    margin: 0;
}

/* Strong Tag Consistency */
.container strong,
.accordion-body strong,
.alert strong,
.card-body strong {
    color: #fff;
}

/* Em Tag Consistency */
.container em,
.accordion-body em,
.alert em {
    color: #f39c12;
}

/* Section Padding Override for bg-light */
section.bg-light.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Ensure Container Centering */
.container {
    box-sizing: border-box;
}

/* Fix for specific content alignment issues */
.container.py-5 > .row > .col-12 > * {
    box-sizing: border-box;
}

/* Heading Margins */
h2.mb-4 {
    margin-bottom: 1.5rem !important;
}

h3.mt-4 {
    margin-top: 1.5rem !important;
}

h3.mt-5 {
    margin-top: 3rem !important;
}

h4.mt-3 {
    margin-top: 1rem !important;
}

/* Lead Text */
p.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #e9ecef;
}

/* Fix Container in bg-light sections */
section.bg-light > .container {
    width: 100%;
    max-width: 1320px;
}

/* Accordion Button Text Wrapping */
.accordion-button {
    white-space: normal;
    word-wrap: break-word;
}

/* Table Responsive Wrapper */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
}

/* Ensure All Sections Have Proper Spacing */
section {
    width: 100%;
    box-sizing: border-box;
}

/* Content Hero Images */
.content-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.25), 
                0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(46, 204, 113, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    margin: 0 auto 2rem auto;
    display: block;
}

.content-hero-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(46, 204, 113, 0.35), 
                0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(46, 204, 113, 0.5);
}

/* Responsive Image Sizing */
@media (max-width: 768px) {
    .content-hero-img {
        max-width: 100%;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        padding: 0.25rem;
    }
}

@media (max-width: 480px) {
    .content-hero-img {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
    }
}

/* Image Container Centering */
.col-12.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Lazy Loading Image Fade-in */
.content-hero-img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Image Top Fix */
.card-img-top {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
}

/* Center All Images */
img.content-hero-img,
img.card-img-top {
    margin-left: auto;
    margin-right: auto;
}

/* Smooth Scroll for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Section Spacing Between Content Blocks */
section.container.py-5 + section.py-5.bg-light,
section.py-5.bg-light + section.container.py-5 {
    margin-top: 2rem;
}

/* H3 in Columns */
.col-md-6 h3,
.col-md-4 h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Better List Spacing in Columns */
.col-md-6 ul,
.col-md-4 ul {
    margin-bottom: 1.5rem;
}

/* Ensure Images Don't Overflow */
section img {
    max-width: 100%;
    height: auto;
}

/* Additional Mobile Fixes */
@media (max-width: 768px) {
    .content-hero-img {
        max-width: 95%;
    }
    
    .col-12.text-center.mb-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Login Method Cards */
.login-method-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(46, 204, 113, 0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.login-method-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.login-method-card.featured {
    border-color: rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.08);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2);
}

.login-method-card.featured:hover {
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.35);
}

.login-icon-wrapper {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #2ecc71;
    text-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.login-method-card h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.login-method-card ol {
    text-align: left;
    flex: 1;
}

.login-method-card ol li {
    color: #e9ecef;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .login-method-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .login-icon-wrapper {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .login-method-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}