/* About Section Styles */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    /* Increased max-width to accommodate the 4-column effective layout */
    margin: 0 auto;
    padding: 0 20px;
}

.about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
}

/* Left Side Wrapper (50%) */
.about-left-side {
    width: 50%;
    padding-right: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Inside Left Side: Flex Row for Image + VM */
.about-left-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left Image Section */
.about-image-section {
    flex: 1;
    /* 50% of the left side */
    width: 50%;
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, #f58221 0%, #ff9d5c 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Decorative Element */
.about-image-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f58221 0%, #ff9d5c 100%);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

/* Vision Mission Section (Right part of Left Side) */
.about-vm-section {
    flex: 1;
    /* 50% of the left side */
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Right Content Section (50%) */
.about-text-section {
    width: 50%;
    padding-left: 30px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center the content */
}

/* creature Grid Styles */
.creature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(160px, auto);
    /* Ensure consistent row height */
    gap: 25px;
    /* Adjust gap to match design */
    width: 100%;
    height: 100%;
    /* Fill the container */
    align-content: center;
}

/* creature Item Base Styles */
.creature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    /* Reduced side padding slightly to ensure text fit */
    color: white;
    width: 100%;
    /* Force fill */
    height: 100%;
    /* Force fill grid cell height */
    min-height: 100%;
    /* Ensure it takes full height of the row */
    margin: 0;
    /* Remove any default margins */
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.creature-item:hover {
    transform: translateY(-5px);
}

/* Colors matching the image/site */
.item-primary {
    background-color: #6B4226;
    /* Rich Coffee Brown */
    color: #FFFFFF;
}

.item-secondary {
    background-color: #deb122;
    /* Updated Secondary Color */
    color: #FFFFFF;
}

/* Hover Effects */
.creature-item:hover {
    transform: translateY(-5px);
}

.item-primary:hover {
    background-color: #deb122;
    /* Gold on hover */
}

.item-secondary:hover {
    background-color: #6B4226;
    /* Brown on hover */
}

/* Grid Spanning */
.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

/* Icons */
.creature-icon {
    margin-bottom: 15px;
}


.creature-icon svg,
.creature-icon i {
    font-size: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    /* Allow auto width */
    height: auto;
}

/* Text */
.creature-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Ensuring consistently matched font */
    letter-spacing: 0.5px;
}

.mission-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #f58221;
    border-radius: 2px;
}

.mission-text {
    font-size: 14px;
    /* Reduced slightly */
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

/* Core Values Row (Between Vision and Mission) */
.core-values-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
}

.core-value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.core-value-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
    object-position: bottom;
}

.core-value-item span {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 40px;
    /* Force minimum height for 2 lines */
    font-size: 13px;
    font-weight: 700;
    color: #6B4226;
    /* Primary brand color */
    line-height: 1.3;
    letter-spacing: 0.5px;
}

/* Vision Section Styles override/adjust */
.about-vision {
    margin-top: 0;
    /* Reset margin */
}

.vision-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #f58221;
    border-radius: 2px;
}

.vision-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

.mission-title {
    font-size: 20px;
    /* Reduced slightly for the narrower column */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-mission {
    margin-top: 0;
    /* Reset margin since it's in a flex col now */
}

/* Animation Classes */
.about-image-section.animated {
    opacity: 1;
    transform: translateX(0);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text-section.animated {
    opacity: 1;
    transform: translateX(0);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .creature-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }

    .span-2,
    .span-3 {
        grid-column: span 2;
        /* Full width or half */
    }

    .span-3 {
        grid-column: span 2;
    }

    /* Adjust specific items if needed for flow */
}

@media screen and (max-width: 1024px) {
    .about-section {
        padding: 60px 0;
    }

    .about-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .about-left-side,
    .about-text-section {
        width: 100%;
        padding: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .about-left-content {
        /* Keep them side by side on tablet or stack? Maybe stack on smaller tablets */
        display: flex;
    }

    .about-title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    .about-section {
        padding: 10px 0 50px 0;
        /* Reduced top padding */
    }

    .about-left-content {
        flex-direction: column;
        /* Stack image and VM on mobile */
        gap: 40px;
    }

    .about-image-section,
    .about-vm-section {
        width: 100%;
    }

    /* Main layout already stacks to single column on mobile, so the grid is inside full width */
    .creature-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols on mobile or switch to 1? Image shows complex grid usually needs space. Let's try 2 cols. */
        gap: 10px;
    }

    .creature-item {
        min-height: 140px;
        padding: 15px 10px;
    }

    .creature-text {
        font-size: 12px;
    }

    .about-image-section,
    .about-text-section {
        transform: none;
        opacity: 1;
    }

    .about-title {
        font-size: 32px;
    }

    .about-label {
        font-size: 12px;
        padding-left: 35px;
    }

    .about-label::before {
        width: 25px;
    }

    .mission-title,
    .vision-title {
        font-size: 22px;
    }

    .mission-text,
    .vision-text {
        font-size: 15px;
    }

    .about-image-decoration {
        width: 100px;
        height: 100px;
        bottom: -20px;
        right: -20px;
    }
}

@media screen and (max-width: 480px) {
    .about-section {
        padding: 0 0 40px 0;
        /* Removed top padding */
        margin-left: 5%;
    }

    .about-container {
        padding: 0 15px;
    }

    .about-title {
        font-size: 28px;
    }

    .about-description {
        font-size: 15px;
    }

    .about-content-wrapper {
        gap: 30px;
    }

    .creature-grid {
        display: flex;
        flex-direction: column;
    }

    .creature-item {
        width: 100%;
        min-height: auto;
        padding: 20px;
    }
}

/* Name Tag Styles - Smt. Velammal */
.person-name-tag {
    margin-top: 25px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 5;
    background: transparent;
}

.name-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6B4226;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #deb122;
    transition: all 0.3s ease;
}

.person-name-tag:hover .name-text {
    letter-spacing: 4px;
    border-color: #8B5A2B;
}

@media screen and (max-width: 768px) {
    .name-text {
        font-size: 18px;
        letter-spacing: 2px;
        margin-top: 15px;
    }
}