/* ========================================
   TONRY About Us Page Styles
   ======================================== */

/* Base Container */
.about-w {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Sub Navigation Section
   ======================================== */
.about-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 0 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.about-subnav::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #fa6c24, #dd582e);
}

.about-subnav a {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-subnav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #fa6c24, #dd582e);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.about-subnav a:hover,
.about-subnav a.active {
    color: #fff;
    border-color: #fa6c24;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 108, 36, 0.25);
}

.about-subnav a:hover::before,
.about-subnav a.active::before {
    left: 0;
}

/* ========================================
   Page Header Section
   ======================================== */
.about-page-header {
    text-align: center;
    padding: 30px 0 10px;
    position: relative;
}

.about-page-title {
    font-size: 42px;
    font-weight: 600;
    color: #1b1e23;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.about-page-subtitle {
    font-size: 16px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.about-page-subtitle::before,
.about-page-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fa6c24);
}

.about-page-subtitle::before {
    right: 100%;
    margin-right: 15px;
}

.about-page-subtitle::after {
    left: 100%;
    margin-left: 15px;
    background: linear-gradient(90deg, #fa6c24, transparent);
}

/* ========================================
   Content Layout
   ======================================== */
.about-content-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 80px;
}

.about-content {
    padding: 60px 80px;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

/* ========================================
   Rich Text Content Styling
   ======================================== */
.about-content p {
    margin-bottom: 24px;
    text-align: justify;
    font-size: 20px;
}

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

/* Image Handling */
.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    display: block;
}

/* Image Alignment */
.about-content img[style*="float:left"],
.about-content img[style*="float: left"],
.about-content .img-left {
    float: left;
    margin: 10px 30px 20px 0;
    max-width: 45%;
}

.about-content img[style*="float:right"],
.about-content img[style*="float: right"],
.about-content .img-right {
    float: right;
    margin: 10px 0 20px 30px;
    max-width: 45%;
}

/* Clearfix for floated images */
.about-content::after {
    content: '';
    display: table;
    clear: both;
}

/* Image Caption */
.about-content .img-caption,
.about-content figcaption {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Headings in content */
.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4,
.about-content h5,
.about-content h6 {
    color: #1b1e23;
    margin: 40px 0 20px;
    font-weight: 600;
    line-height: 1.3;
}

.about-content h1 {
    font-size: 32px;
    border-bottom: 2px solid #fa6c24;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.about-content h2 {
    font-size: 28px;
    position: relative;
    padding-left: 20px;
}

.about-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: linear-gradient(180deg, #fa6c24, #dd582e);
    border-radius: 2px;
}

.about-content h3 {
    font-size: 22px;
    color: #333;
}

.about-content h4 {
    font-size: 18px;
    color: #444;
}

/* Lists */
.about-content ul,
.about-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.about-content ul li,
.about-content ol li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    position: relative;
    padding-left: 25px;
}

.about-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #fa6c24, #dd582e);
    border-radius: 50%;
}

.about-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.about-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 35px;
}

.about-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fa6c24, #dd582e);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquotes */
.about-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fff8f5, #fff);
    border-left: 4px solid #fa6c24;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
    position: relative;
}

.about-content blockquote::before {
    content: '"';
    font-size: 60px;
    color: #fa6c24;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Tables */
.about-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.about-content th,
.about-content td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.about-content th {
    background: linear-gradient(135deg, #1b1e23, #2d3138);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.about-content tr:hover {
    background: #f9f9f9;
}

.about-content tr:last-child td {
    border-bottom: none;
}

/* Links in content */
.about-content a {
    color: #fa6c24;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.about-content a:hover {
    border-bottom-color: #fa6c24;
}

/* Horizontal Rule */
.about-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 40px 0;
}

/* Video Embeds */
.about-content iframe,
.about-content video,
.about-content embed {
    max-width: 100%;
    border-radius: 8px;
    margin: 30px 0;
    display: block;
}

/* ========================================
   Image Gallery Grid
   ======================================== */
.about-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.about-content .gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    transition: transform 0.4s ease;
}

.about-content .gallery img:hover {
    transform: scale(1.05);
}

/* ========================================
   Feature Cards within Content
   ======================================== */
.about-content .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.about-content .feature-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.about-content .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #fa6c24;
}

.about-content .feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fa6c24, #dd582e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 28px;
}

.about-content .feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1b1e23;
    margin-bottom: 10px;
}

.about-content .feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.about-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.about-reveal-delay-1 {
    transition-delay: 0.1s;
}

.about-reveal-delay-2 {
    transition-delay: 0.2s;
}

.about-reveal-delay-3 {
    transition-delay: 0.3s;
}

.about-reveal-delay-4 {
    transition-delay: 0.4s;
}

.about-reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ========================================
   Loading State
   ======================================== */
.about-content-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #eee;
    border-top-color: #fa6c24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .about-content {
        padding: 50px 60px;
    }
}

@media (max-width: 992px) {
    .about-page-title {
        font-size: 36px;
    }

    .about-content {
        padding: 40px;
    }

    .about-content h1 {
        font-size: 28px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .about-subnav {
        gap: 10px;
        padding: 30px 0;
    }

    .about-subnav a {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .about-w {
        padding: 0 15px;
    }

    .about-page-header {
        padding: 20px 0 0px;
    }

    .about-page-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .about-page-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .about-page-subtitle::before,
    .about-page-subtitle::after {
        width: 25px;
    }

    .about-subnav {
        flex-direction: row;
        gap: 8px;
        padding: 25px 0;
        margin-bottom: 20px;
    }

    .about-subnav a {
        padding: 10px 18px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .about-content-wrapper {
        margin-bottom: 50px;
    }

    .about-content {
        padding: 30px 20px;
        font-size: 15px;
    }

    /* Reset floated images on mobile */
    .about-content img[style*="float"],
    .about-content .img-left,
    .about-content .img-right {
        float: none;
        margin: 20px 0;
        max-width: 100%;
    }

    .about-content h1 {
        font-size: 24px;
    }

    .about-content h2 {
        font-size: 20px;
        padding-left: 15px;
    }

    .about-content h2::before {
        width: 3px;
    }

    .about-content h3 {
        font-size: 18px;
    }

    .about-content table {
        font-size: 14px;
    }

    .about-content th,
    .about-content td {
        padding: 12px 15px;
    }

    .about-content blockquote {
        padding: 20px;
        margin: 25px 0;
    }

    .about-content .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-content .gallery img {
        height: 150px;
    }

    .about-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }


}

@media (max-width: 480px) {
    .about-page-title {
        font-size: 24px;
    }

    .about-subnav a {
        padding: 8px 14px;
        font-size: 12px;
    }

    .about-content {
        padding: 25px 15px;
        font-size: 14px;
    }

    .about-content .gallery {
        grid-template-columns: 1fr;
    }

    .about-content ol li::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .w-mf {
        display: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    .about-subnav,
    .about-page-subtitle::before,
    .about-page-subtitle::after {
        display: none;
    }

    .about-content-wrapper {
        box-shadow: none;
    }

    .about-content {
        padding: 20px 0;
    }

    .about-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    .about-reveal,
    .about-reveal-left,
    .about-reveal-right,
    .about-reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .about-subnav a,
    .about-content img,
    .about-content .feature-card {
        transition: none;
    }
}

/* Focus styles for accessibility */
.about-subnav a:focus,
.about-content a:focus {
    outline: 2px solid #fa6c24;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .about-content h2::before {
        background: #000;
    }

    .about-content ul li::before,
    .about-content ol li::before {
        background: #000;
    }
}