/**
 * Armed Forces Image Text Section Block Styles
 * 
 * Colors:
 * - Primary Green: #006a3c
 * - Gold/Yellow: #f7b119
 * - Light Gray: #f5f6f6
 * - Text Dark: #252525
 * - Text Light: #b0cfc1
 * - White: #ffffff
 * 
 * Fonts:
 * - Roboto Bold
 * - Roboto Regular
 */

/* ============================================
   Block Container
   ============================================ */
.armed-forces-image-text-section-block {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Background wrapper - Full width light gray background */
.afits-background-wrapper {
    width: 100%;
    background-color: #f5f6f6;
    padding: 60px 0;
}

/* Content container - Uses WordPress layout width */
.afits-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Content Wrapper
   ============================================ */
.afits-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

/* ============================================
   Image Wrapper
   ============================================ */
.afits-image-wrapper {
    flex: 0 0 auto;
    max-width: 600px;
    width: 100%;
}

.afits-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.afits-image-wrapper img:hover {
    transform: translateY(-5px);
}

/* ============================================
   Description Text
   ============================================ */
.afits-description {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.6;
    color: var(--dark-text, #252525);
}

.afits-description p {
    margin: 0 0 1.2em 0;
}

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

.afits-description h2,
.afits-description h3,
.afits-description h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--dark-text, #252525);
    margin: 0 0 1em 0;
}

.afits-description h2 {
    font-size: 32px;
    line-height: 1.3;
}

.afits-description h3 {
    font-size: 26px;
    line-height: 1.4;
}

.afits-description h4 {
    font-size: 22px;
    line-height: 1.4;
}

.afits-description ul,
.afits-description ol {
    margin: 0 0 1.2em 1.5em;
    padding: 0;
}

.afits-description li {
    margin-bottom: 0.5em;
}

.afits-description a {
    color: var(--green-primary, #006a3c);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.afits-description a:hover {
    color: var(--orange-accent, #f7b119);
}

.afits-description strong,
.afits-description b {
    font-weight: 700;
}

.afits-description em,
.afits-description i {
    font-style: italic;
}

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

/* Desktop - Large (1400px+) */
@media (min-width: 1400px) {
    .afits-background-wrapper {
        padding: 60px 0;
    }
    
    .afits-content {
        gap: 80px;
    }
    
    .afits-description {
        font-size: 24px;
    }
    
    .afits-description h2 {
        font-size: 32px;
    }
}

/* Desktop - Standard (992px - 1199px) */
@media (max-width: 1199px) {
    .afits-background-wrapper {
        padding: 60px 0;
    }
    
    .afits-content {
        gap: 50px;
    }
    
    .afits-image-wrapper {
        max-width: 450px;
    }
    
    .afits-description {
        font-size: 17px;
    }
    
    .afits-description h2 {
        font-size: 30px;
    }
    
    .afits-description h3 {
        font-size: 24px;
    }
}

/* Tablet - Standard (768px - 991px) */
@media (max-width: 991px) {
    .afits-background-wrapper {
        padding: 60px 0;
    }
    
    .afits-content {
        gap: 40px;
    }
    
    .afits-image-wrapper {
        max-width: 400px;
    }
    
    .afits-description {
        font-size: 16px;
    }
    
    .afits-description h2 {
        font-size: 28px;
    }
    
    .afits-description h3 {
        font-size: 22px;
    }
    
    .afits-description h4 {
        font-size: 20px;
    }
}

/* Tablet - Small and Mobile (< 768px) */
@media (max-width: 767px) {
    .afits-background-wrapper {
        padding: 50px 0;
    }
    
    .afits-container {
        padding: 0 15px;
    }
    
    .afits-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .afits-image-wrapper {
        max-width: 100%;
    }
    
    .afits-description {
        font-size: 16px;
        text-align: center;
    }
    
    .afits-description h2 {
        font-size: 26px;
    }
    
    .afits-description h3 {
        font-size: 22px;
    }
    
    .afits-description h4 {
        font-size: 19px;
    }
}

/* Mobile - Standard (400px - 576px) */
@media (max-width: 576px) {
    .afits-background-wrapper {
        padding: 40px 0;
    }
    
    .afits-content {
        gap: 25px;
    }
    
    .afits-description {
        font-size: 15px;
    }
    
    .afits-description h2 {
        font-size: 24px;
    }
    
    .afits-description h3 {
        font-size: 20px;
    }
    
    .afits-description h4 {
        font-size: 18px;
    }
}

/* Mobile - Extra Small (< 400px) */
@media (max-width: 399px) {
    .afits-background-wrapper {
        padding: 30px 0;
    }
    
    .afits-container {
        padding: 0 10px;
    }
    
    .afits-content {
        gap: 20px;
    }
    
    .afits-description {
        font-size: 14px;
    }
    
    .afits-description h2 {
        font-size: 22px;
    }
    
    .afits-description h3 {
        font-size: 19px;
    }
    
    .afits-description h4 {
        font-size: 17px;
    }
}

/* ============================================
   Accessibility Features
   ============================================ */

/* Focus styles for keyboard navigation */
.afits-description a:focus {
    outline: 2px solid var(--green-primary, #006a3c);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .afits-description {
        color: #000000;
    }
    
    .afits-description a {
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .afits-image-wrapper img {
        transition: none;
    }
    
    .afits-description a {
        transition: none;
    }
}

/* Print styles */
@media print {
    .afits-background-wrapper {
        background-color: transparent;
        padding: 20px 0;
    }
    
    .afits-image-wrapper img {
        box-shadow: none;
        max-width: 400px;
    }
    
    .afits-content {
        gap: 30px;
    }
}

/* ============================================
   WordPress Editor Styles
   ============================================ */

/* Ensure proper display in Gutenberg editor */
.wp-block[data-type="acf/armed-forces-image-text-section"] {
    max-width: 100%;
}

/* Preview mode adjustments */
.acf-block-preview .armed-forces-image-text-section-block {
    margin: 0 auto;
}

/* ============================================
   Alignment Support
   ============================================ */

/* Wide alignment */
.armed-forces-image-text-section-block.alignwide {
    max-width: var(--theme-wide-container-max-width, 1600px);
}

/* Full alignment (default) */
.armed-forces-image-text-section-block.alignfull {
    max-width: 100%;
}

