/* About Page Specific Styles */
 
/* Hero Section */
.about-hero {
    position: relative;
    
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-background-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bg-2.png') repeat, #1d1f23;
    z-index: -1;
}

.about-header-section {
    position: relative;
    z-index: 1;
}

.about-page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #838a91;
    margin-bottom: 56px;
    line-height: normal;
}

.about-subtitle-image {
    margin-bottom: 0;
}

.about-subtitle-image img {
    width: 100%;
    height: auto;
}

/* Main About Section */
.main-about-section {
    
    padding: 120px 0;
}

/* Story Content */
.story-content {
    margin-bottom: 120px;
}

.story-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #ffffff;
    line-height: 39px;
    margin-bottom: 0;
}

/* Cards Section */
.cards-section {
    margin-bottom: 120px;
}

.card-item {
    height: 390px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card-item:hover .card-image img {
    transform: scale(1.05);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(142, 97, 165, 0.8);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.card-item:hover .card-overlay {
    top: auto;
    bottom: 0;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 0;
    line-height: normal;
    transition: all 0.3s ease;
}

.card-item:hover .card-title {
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

/* Additional text for hover state */
.card-overlay::after {
    content: '';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-item:hover .card-overlay::after {
    content: attr(data-description);
    opacity: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
    line-height: 24px;
    text-align: center;
    display: block;
    margin-top: 20px;
}

/* What We Stand For Section */
.stand-for-section {
    margin-bottom: 0;
}

.stand-for-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 48px;
    line-height: normal;
}

.stand-for-content {
    position: relative;
    width: 100%;
    height: 622px;
    overflow: hidden;
    border-radius: 12px;
}

.stand-for-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stand-for-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Stand For Overlay */
.stand-for-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 604px;
    height: 620px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 200px 51px;
    z-index: 1;
}

.overlay-content h3.overlay-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #000000;
    margin-bottom: 63px;
    line-height: normal;
    width: 502px;
    height: 91px;
    display: flex;
    align-items: center;
}

.overlay-content p.overlay-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #838a91;
    line-height: 40px;
    margin-bottom: 0;
    text-align: left;
}
.rtl .overlay-content p.overlay-description {
    text-align: right;
}

/* Footer Styles (inherited from other pages) */
.footer {
    
    color: #ffffff;
}

.footer-main {
    padding: 99px 0;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bg-2.png') repeat, #1d1f23;
    z-index: -1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.footer-logo {
    height: 46px;
    width: 174px;
}

.footer-address {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    line-height: normal;
}

.footer-address p {
    margin-bottom: 0;
    line-height: 21.373px;
}

.footer-contact {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    position: relative;
    padding-left: 29px;
}

.footer-contact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #838a91;
}

.footer-contact h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 13px;
    width: min-content;
}

.footer-contact p {
    color: #838a91;
    margin-bottom: 13px;
    line-height: normal;
}

.footer-contact .email {
    color: #8e61a5;
}

.footer-about {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    position: relative;
    padding-left: 29px;
}

.footer-about::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #838a91;
}

.footer-about h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 13px;
    width: min-content;
}

.footer-about p {
    color: #838a91;
    line-height: normal;
    margin-bottom: 0;
}

.footer-bottom {
    background: #ffffff;
    padding: 45px 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
}

.footer-links a {
    color: #8e61a5;
    text-decoration: none;
}

.footer-links span {
    color: #bcbdc0;
}

.footer-copyright {
    text-align: right;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #838a91;
}

.footer-copyright p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .stand-for-overlay {
        width: 500px;
        padding: 150px 40px;
    }
    
    .overlay-content h3.overlay-title {
        font-size: 36px;
        width: 420px;
        height: 80px;
        margin-bottom: 50px;
    }
    
    .overlay-content p.overlay-description {
        font-size: 24px;
        line-height: 36px;
    }
}

@media (max-width: 991.98px) {
    .about-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .about-page-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .main-about-section {
        padding: 80px 0;
    }
    
    .story-content {
        margin-bottom: 80px;
    }
    
    .story-text {
        font-size: 24px;
        line-height: 34px;
    }
    
    .cards-section {
        margin-bottom: 80px;
    }
    
    .card-item {
        height: 350px;
        margin-bottom: 30px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .stand-for-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .stand-for-content {
        height: 500px;
    }
    
    .stand-for-overlay {
        width: 100%;
        height: 100%;
        padding: 100px 30px;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .overlay-content h3.overlay-title {
        font-size: 32px;
        width: 100%;
        height: auto;
        margin-bottom: 40px;
    }
    
    .overlay-content p.overlay-description {
        font-size: 20px;
        line-height: 30px;
    }
    
    .footer-main {
        padding: 60px 0;
    }
    
    .footer-contact,
    .footer-about {
        margin-top: 30px;
        padding-left: 0;
    }
    
    .footer-contact::before,
    .footer-about::before {
        display: none;
    }
    
    .footer-copyright {
        text-align: left;
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .about-hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .about-page-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .main-about-section {
        padding: 60px 0;
    }
    
    .story-content {
        margin-bottom: 60px;
    }
    
    .story-text {
        font-size: 20px;
        line-height: 28px;
    }
    
    .cards-section {
        margin-bottom: 60px;
    }
    
    .card-item {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .stand-for-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .stand-for-content {
        height: 400px;
    }
    
    .stand-for-overlay {
        padding: 80px 20px;
    }
    
    .overlay-content h3.overlay-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .overlay-content p.overlay-description {
        font-size: 18px;
        line-height: 26px;
    }
}

/* Dark theme overrides for existing elements */
body.about-page {
    
}

.about-page .header {
    
}

.about-page .nav-link.active {
    color: #8e61a5;
}

.about-page .nav-link.active::after {
    background: #8e61a5;
}
