/* Skip to Content Link - Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    height: 80px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Navigation Styles */
nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    background-color: #f8f9fa;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

nav ul li a.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    background-color: #f8f9fa;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    background: white;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

section:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

section h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
    font-weight: 700;
    letter-spacing: -0.5px;
}

section p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

section ul {
    margin-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

section ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Events Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-left: 4px solid #667eea;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.25);
}

.event-date-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    min-width: 100px;
}

.event-date-badge .event-month {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-badge .event-year {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-content .event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.3;
}

.event-content .event-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.event-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: auto;
}

.event-details > div {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.event-details strong {
    color: #333;
    min-width: 70px;
}

.section-intro {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.no-events-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

.no-events-message p {
    color: #666;
    font-size: 1.1rem;
}

/* Upcoming Events Styles */
.upcoming-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.event-card.upcoming {
    border-left-color: #28a745;
}

.event-card.upcoming .event-date-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.upcoming-events-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    font-size: 2rem;
}

/* Event Photos Styles */
.event-photos {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.event-photos h3 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.event-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.event-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.event-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    loading: lazy;
}

.event-photo-item .photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    loading: lazy;
}

.gallery-item .photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-item .photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .photo-info {
    transform: translateY(0);
}

.photo-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.photo-date {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: none;
}

.form-success.show {
    display: block;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 4px solid #667eea;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-details a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contact-details p {
    margin: 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-form-header p {
    color: #666;
    font-size: 1.05rem;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Cabinet Members Hierarchy Styles */
.cabinet-hierarchy {
    margin: 2rem 0;
}

.cabinet-level {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cabinet-level:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

.cabinet-level-1 {
    border-left-color: #667eea;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.1) 0%, #f8f9fa 10%);
}

.cabinet-level-2 {
    border-left-color: #764ba2;
    margin-left: 1rem;
}

.cabinet-level-3 {
    border-left-color: #9b59b6;
    margin-left: 2rem;
}

.cabinet-level-4 {
    border-left-color: #8e44ad;
    margin-left: 2rem;
}

.cabinet-position {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cabinet-name {
    color: #333;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.cabinet-names-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cabinet-names-list .cabinet-name {
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.cabinet-member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    margin-right: 1rem;
    flex-shrink: 0;
}

.cabinet-member-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    margin-right: 1.5rem;
}

.cabinet-member-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    margin-right: 1rem;
    border: 3px solid #667eea;
    flex-shrink: 0;
}

.cabinet-member-photo-placeholder-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin-right: 1.5rem;
    border: 4px solid #667eea;
}

.cabinet-member-with-photo {
    display: flex;
    align-items: center;
}

.cabinet-member-info {
    flex: 1;
}

.cabinet-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.cabinet-description-small {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.25rem;
    text-align: center;
}

.cabinet-name-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Founder Section Styles */
.founder-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.founder-photo {
    flex: 0 0 200px;
}

.founder-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.founder-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    border: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.founder-content {
    flex: 1;
    min-width: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        height: 60px;
        max-width: 100px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .header-content {
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        padding: 0.8rem 1rem;
        text-align: center;
    }

    section {
        padding: 2rem 1.5rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .contact-hero h2 {
        font-size: 1.75rem;
    }

    .event-content .event-title {
        font-size: 1.15rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card {
        padding: 0;
    }

    .event-content .event-title {
        font-size: 1.2rem;
    }

    .contact-hero h2 {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .cabinet-level-2,
    .cabinet-level-3,
    .cabinet-level-4 {
        margin-left: 0.5rem;
    }

    .cabinet-names-list {
        grid-template-columns: 1fr;
    }

    .cabinet-name-item {
        flex-direction: column;
        text-align: center;
    }

    .cabinet-member-photo,
    .cabinet-member-photo-placeholder {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .cabinet-member-with-photo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cabinet-member-photo-large {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .founder-section {
        flex-direction: column;
        text-align: center;
    }

    .founder-photo {
        flex: 0 0 auto;
        margin: 0 auto;
    }
}
