/* Hero Section */
.about-hero {
    height: 55vh;
    min-height: 500px;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bg index.jpg') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-modern.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-modern.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-modern.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

body {
    background: linear-gradient(135deg, #ffeaf3 0%, #ffd2e6 100%);
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Vision & Mission Section */
.vision-mission-section {
    background: white;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vision-card,
.mission-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.vision-card.show,
.mission-card.show {
    opacity: 1;
    transform: translateY(0);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.card-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
}

.vision-card .card-decoration {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mission-card .card-decoration {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Officials Section */
.officials-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.official-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.official-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.official-card.featured {
    grid-column: span 2;
}

.card-image {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.official-card:hover .card-image img {
    transform: scale(1.05);
}

.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
}

.default-avatar i {
    font-size: 5rem;
    opacity: 0.7;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.official-card:hover .image-overlay {
    opacity: 1;
}

.card-content {
    padding: 2rem;
}

.position-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    background: #e9ecef;
    color: #495057;
    border: 3px solid #FF3AAE;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.committee-badge {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-left: 8px;
    border: 1px solid #e6dee5;
}

.committee-badge i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.contact-info i {
    color: #667eea;
    width: 16px;
}

/* History Section - Redesigned */
.history-section {
    background: white;
    padding: 100px 0;
}

.history-introduction {
    margin-bottom: 5rem;
}

.history-intro-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 20%);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

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

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FF3AAE 0%, #FF73C3 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    padding-right: 4rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 4rem;
}

.timeline-marker {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border: 4px solid #FF3AAE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF3AAE;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 58, 174, 0.3);
    z-index: 10;
}

.timeline-item.left .timeline-marker {
    right: -2rem;
    transform: translateX(50%);
}

.timeline-item.right .timeline-marker {
    left: -2rem;
    transform: translateX(-50%);
}

.timeline-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item.left .timeline-card::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent white;
}

.timeline-item.right .timeline-card::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent white transparent transparent;
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.timeline-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.timeline-image {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.timeline-image:hover img {
    transform: scale(1.05);
}

.footer {
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
    width: 100%;
}

.alert {
    border-radius: 15px;
    padding: 1.5rem;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .officials-grid .official-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
    
    .officials-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 1rem;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        padding-left: 5rem;
    }

    .timeline-item.left .timeline-marker,
    .timeline-item.right .timeline-marker {
        left: 0;
        transform: translateX(0);
    }

    .timeline-item.left .timeline-card::before,
    .timeline-item.right .timeline-card::before {
        left: -15px;
        border-width: 15px 15px 15px 0;
        border-color: transparent white transparent transparent;
    }

    .history-intro-card {
        flex-direction: column;
        padding: 2rem;
    }

    .intro-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .committee-badge {
        display: block;
        margin: 8px 0;
        margin-left: 0;
    }

    .timeline-item {
        padding-left: 4rem;
    }
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

#loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #973BED, #007CFF, #FFC800, #00E0ED, #973BED);
    background-size: 400%;
    animation: gradientMove 4s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.official-card.featured .card-image {
    height: 400px;
}

.official-card.featured .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (hover: none) and (pointer: coarse) {
    .btn-modern:hover {
        transform: none;
        box-shadow: none;
    }
    
    .official-card:hover {
        transform: none;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    
    .image-overlay {
        opacity: 1;
        background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
    }
}