/* ===== Shared Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
}

a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* ===== Header ===== */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    opacity: 0.9;
    font-size: 0.95rem;
}

nav a.active {
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.container {
    max-width: 800px;
    width: 100%;
}

/* ===== Hero Section ===== */
.hero-split {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.hero-image-container {
    flex: 0 0 50%;
}

.hero-image-container .hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .hero-image-container {
        display: block;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-image-container .hero-image {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.coming-soon {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== Announcements ===== */
.announcements {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
}

.event-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 400px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.events-container {
    flex: 1;
    position: relative;
}

.event-slide {
    display: none;
    width: 100%;
}

.event-slide h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

.event-date {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.event-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.applications-list {
    margin-bottom: 1.5rem;
}

.app-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.applications-list ul {
    list-style: none;
    margin-left: 1rem;
}

.applications-list ul li {
    padding: 0.25rem 0;
}

.applications-list ul li a {
    text-decoration: underline;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease;
}

.dot.active {
    background: white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.calendar-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.calendar-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Candidate Pages ===== */
.candidate-split {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
}

.candidate-image-container {
    flex: 0 0 50%;
}

.candidate-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.candidate-info {
    flex: 1;
}

.candidate-header {
    margin-bottom: 2rem;
}

.candidate-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.candidate-tagline {
    font-size: 1.5rem;
    opacity: 0.9;
}

.candidate-content {
    display: grid;
    gap: 2rem;
    text-align: left;
    width: 100%;
    margin: 2rem 0 0 0;
}

.tabs {
    width: 100%;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
    color: white;
    border-bottom-color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.section p {
    line-height: 1.7;
    opacity: 0.95;
}

.section ul {
    list-style: none;
    line-height: 1.7;
}

.section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
}

.priority-item {
    margin-bottom: 1.5rem;
}

.priority-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.priority-item p {
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== Footer ===== */
footer {
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.2);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 1rem;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: underline;
    font-size: 0.95rem;
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-split {
        flex-direction: column;
        gap: 1rem;
    }

    .candidate-split {
        flex-direction: column;
        gap: 1rem;
    }

    .candidate-image-container {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .candidate-image-container .candidate-image {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }

    .candidate-name {
        font-size: 1.75rem;
    }

    .event-carousel {
        flex-direction: column;
        min-height: auto;
    }

    .carousel-btn {
        padding: 0.5rem 1rem;
    }

    .events-container {
        width: 100%;
    }

    .event-slide h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .candidate-name {
        font-size: 2.5rem;
    }

    .candidate-content {
        padding: 0 0.25rem;
    }

    .section {
        padding: 1rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}