/* About Page Specific Styles */

/* Enhanced About Section */
.about {
    background: linear-gradient(135deg, #fff8ee 0%, #f7ffe0 50%, #fff8ee 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(167, 201, 87, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56, 102, 65, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--main-green);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-green), var(--accent-brown));
    border-radius: 2px;
}

.about>.container>p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    opacity: 0.9;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Mission, Vision, Service Sections */
.about h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--main-green);
    margin: 3rem 0 1.5rem 0;
    position: relative;
    padding-left: 2rem;
    font-weight: 600;
    animation: slideInLeft 0.6s ease-out;
}

.about h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    background: linear-gradient(180deg, var(--main-green), var(--accent-brown));
    border-radius: 3px;
}

.about h3+p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Enhanced About Flex Layout */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: stretch;
}

.about-info {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(56, 102, 65, 0.1);
    border: 1px solid rgba(167, 201, 87, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.about-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-green), var(--accent-brown));
}

.about-info p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.about-info p strong {
    color: var(--main-green);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Enhanced Map Area */
.map-area {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(56, 102, 65, 0.15);
    background: white;
    padding: 1rem;
    animation: slideInRight 0.8s ease-out 0.6s both;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.map-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(56, 102, 65, 0.05), rgba(167, 201, 87, 0.05));
    pointer-events: none;
    z-index: 1;
}

.gmap {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    flex-grow: 1;
}

.map-area:hover .gmap {
    transform: scale(1.02);
}

/* Registration Information Styling */
.registration-info {
    background: linear-gradient(135deg, rgba(56, 102, 65, 0.08), rgba(167, 201, 87, 0.08));
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(56, 102, 65, 0.15);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.registration-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-green), var(--accent-brown));
    transition: width 0.3s ease;
}

.registration-info:hover::before {
    width: 12px;
}

.registration-info h4 {
    margin: 0 0 1.5rem 0;
    color: var(--main-green);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 1rem;
}

.registration-info h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 1rem;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-green), var(--accent-brown));
    border-radius: 1.5px;
}

.reg-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding-left: 1rem;
}

.reg-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--main-green);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reg-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-green), var(--accent-brown));
    transition: width 0.3s ease;
}

.reg-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(56, 102, 65, 0.1);
}

.reg-item:hover::before {
    width: 6px;
}

.reg-item strong {
    color: var(--main-green);
    font-weight: 700;
}

.registration-info:hover {
    background: linear-gradient(135deg, rgba(56, 102, 65, 0.12), rgba(167, 201, 87, 0.12));
    border-color: rgba(56, 102, 65, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 102, 65, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.about-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(56, 102, 65, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about h3:hover {
    color: var(--accent-brown);
    transition: color 0.3s ease;
    cursor: default;
}

.about h3:hover::before {
    background: linear-gradient(180deg, var(--accent-brown), var(--main-green));
    transition: background 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-flex {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about h2 {
        font-size: 2.5rem;
    }

    .about h3 {
        font-size: 1.8rem;
    }

    .reg-items {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
    }
}

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

    .about h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
        padding-left: 1.5rem;
    }

    .about h3::before {
        width: 4px;
        height: 30px;
    }

    .about h3+p {
        padding-left: 1.5rem;
        font-size: 1rem;
    }

    .about-info {
        padding: 2rem;
        margin: 0 1rem;
    }

    .map-area {
        margin: 0 1rem;
    }

    .gmap {
        height: 250px;
    }

    .about>.container>p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 730px) {
    .about-flex {
        gap: 2rem;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 0.8rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 2rem 0;
    }

    .about h2 {
        font-size: 1.8rem;
    }

    .about h3 {
        font-size: 1.3rem;
        padding-left: 1rem;
    }

    .about h3+p {
        padding-left: 1rem;
        font-size: 0.95rem;
    }

    .about-info {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .map-area {
        margin: 0 0.5rem;
    }

    .gmap {
        height: 200px;
    }

    .about-info p {
        font-size: 1rem;
    }

    .registration-info {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }

    .reg-items {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding-left: 0.5rem;
    }

    .reg-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .registration-info h4 {
        font-size: 1rem;
        padding-left: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .about {
        background: white !important;
        padding: 1rem 0;
    }

    .about::before {
        display: none;
    }

    .about-info,
    .map-area {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .gmap {
        display: none;
    }

    .map-area::after {
        content: 'Interactive map available online';
        display: block;
        text-align: center;
        padding: 2rem;
        color: #666;
        font-style: italic;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .about-info {
        background: white;
        border: 2px solid var(--main-green);
    }

    .about h2::after {
        background: var(--main-green);
    }

    .about h3::before {
        background: var(--main-green);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .about h2,
    .about>.container>p,
    .about h3,
    .about h3+p,
    .about-info,
    .map-area {
        animation: none;
    }

    .about-info:hover,
    .map-area:hover .gmap {
        transform: none;
    }
}

/* Team Section Styles */
.team-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Inline Team Section Styles */
.team-section-inline {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid rgba(56, 102, 65, 0.1);
    border-bottom: 2px solid rgba(56, 102, 65, 0.1);
}

.team-section-inline h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--main-green);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    font-weight: 600;
    animation: slideInLeft 0.6s ease-out;
}

.team-section-inline h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    background: linear-gradient(180deg, var(--main-green), var(--accent-brown));
    border-radius: 3px;
}

.team-section-inline p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(56, 102, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(167, 201, 87, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.team-section .container {
    position: relative;
    z-index: 2;
}

.team-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--main-green);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
}

.team-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-green), var(--accent-brown));
    border-radius: 2px;
}

.team-section>.container>p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    opacity: 0.9;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.team-table-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(56, 102, 65, 0.1);
    border: 1px solid rgba(167, 201, 87, 0.2);
    overflow-x: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.team-table thead {
    background: linear-gradient(135deg, var(--main-green), var(--accent-brown));
    color: white;
}

.team-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
}

.team-table th:first-child {
    border-top-left-radius: 12px;
}

.team-table th:last-child {
    border-top-right-radius: 12px;
}

.team-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.team-table tbody tr:last-child {
    border-bottom: none;
}

.team-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(56, 102, 65, 0.05), rgba(167, 201, 87, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 102, 65, 0.1);
}

.team-table td {
    padding: 1.2rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    border: none;
}

.team-table td:first-child {
    font-weight: 700;
    color: var(--main-green);
    font-family: 'Courier New', monospace;
}

.team-table td:nth-child(2) {
    font-weight: 600;
    color: #2c3e50;
}

.team-table td:nth-child(3) {
    color: var(--accent-brown);
    font-weight: 500;
}

.team-table td:nth-child(4) {
    font-family: 'Courier New', monospace;
    color: #666;
}

.team-table td:last-child {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Loading state */
.team-table-container.loading {
    position: relative;
    min-height: 200px;
}

.team-table-container.loading::after {
    content: 'Loading team data...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--main-green);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Empty state */
.team-table-container.empty::after {
    content: 'No team members found.';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

/* Responsive team table */
@media (max-width: 1024px) {
    .team-section h2 {
        font-size: 2.5rem;
    }

    .team-table-container {
        padding: 1.5rem;
    }

    .team-section-inline h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 3rem 0;
    }

    .team-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .team-section>.container>p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .team-table-container {
        margin: 0 1rem;
        padding: 1rem;
    }

    .team-table th,
    .team-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    .team-table td:last-child {
        font-size: 0.85rem;
    }

    .team-section-inline {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }

    .team-section-inline h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
        padding-left: 1.5rem;
    }

    .team-section-inline h3::before {
        width: 4px;
        height: 30px;
    }

    .team-section-inline p {
        padding-left: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 2rem 0;
    }

    .team-section h2 {
        font-size: 1.8rem;
    }

    .team-section>.container>p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .team-table-container {
        margin: 0 0.5rem;
        padding: 0.8rem;
    }

    .team-table th,
    .team-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .team-table td:last-child {
        font-size: 0.75rem;
    }

    .team-section-inline {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }

    .team-section-inline h3 {
        font-size: 1.3rem;
        padding-left: 1rem;
    }

    .team-section-inline p {
        padding-left: 1rem;
        font-size: 0.95rem;
    }
}