/* ==========================================
   ALTA iHUB Announcements Page Styles
   Dark Navy Blue Theme with Light Mode Support
   ========================================== */

/* Root Variables - Dark Theme (Default) */
:root {
    --color-background: #09274a;
    --color-foreground: #ffffff;
    --color-primary: #1e2749;
    --color-primary-light: #2a3a5f;
    --color-secondary: #f59e0b;
    --color-secondary-dark: #d97706;
    --color-accent: #7c3aed;
    --color-muted: #94a3b8;
    --color-border: rgba(148, 163, 184, 0.2);
    --color-card: #131832;
    --color-success: #10b981;
    --color-error: #ef4444;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --transition: all 0.3s ease;
}

/* Light Theme */
.light {
    --color-background: #f8fafc;
    --color-foreground: #0f172a;
    --color-primary: #1e40af;
    --color-primary-light: #3b82f6;
    --color-secondary: #f59e0b;
    --color-secondary-dark: #d97706;
    --color-accent: #7c3aed;
    --color-muted: #64748b;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-card: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-background);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f1535 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-glow-right {
    top: 2.5rem;
    right: 2.5rem;
    width: 16rem;
    height: 16rem;
    background: rgba(245, 158, 11, 0.2);
}

.hero-glow-left {
    bottom: 2.5rem;
    left: 2.5rem;
    width: 20rem;
    height: 20rem;
    background: rgba(124, 58, 237, 0.2);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 48rem;
    margin: 0 auto;
}

/* ==========================================
   Main Content
   ========================================== */
.main-content {
    min-height: 100vh;
    background: var(--color-background);
    padding: 3rem 0;
}

.announcements-section {
    margin-bottom: 4rem;
}

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

.section-icon {
    font-size: 2rem;
    color: var(--color-secondary);
}

.ongoing-icon {
    color: #10b981;
}

.upcoming-icon {
    color: #60a5fa;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-foreground);
}
.announcement-image {
    width: 100%;
    height: 220px; /* or your preferred height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
/* ==========================================
   Featured Announcement Card
   ========================================== */
.featured-announcement-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(124, 58, 237, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    margin-right: auto;
}

.announcement-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.announcement-content.has-title-image {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.announcement-text-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.announcement-header-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap; 
}

.announcement-image-side {
    width: 300px;        
    max-width: 100%;
    height: auto;       
    border-radius: 8px;
    object-fit: contain; 
    flex-shrink: 0;
}
.announcement-icon-large {
    width: 4rem;
    height: 4rem;
    background: var(--color-secondary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon-large i {
    font-size: 2rem;
    color: white;
}

.announcement-info {
    flex: 1;
}

.badges-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
}

.badge-high {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.3);
}

.badge-low {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-priority {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.announcement-title-large {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.announcement-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.announcement-title-row .announcement-title-large {
    margin-bottom: 0;
}

.announcement-title-image {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 4.25rem;
    object-fit: cover;
    display: block;
}

.announcement-title-image-wrap {
    align-self: stretch;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 280px;
    max-width: 560px;
    flex: 0 0 40%;
}

.announcement-subtitle {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.announcement-desc {
    font-size: 1rem;
    color: #d1d5db;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(19, 24, 50, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.625rem;
}

.detail-card i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0;
}

.detail-value {
    font-weight: 600;
    color: white;
    margin: 0;
}

.highlights {
    background: rgba(19, 24, 50, 0.3);
    padding: 1.5rem;
    border-radius: 0.625rem;
}

.highlights h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlights ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #d1d5db;
}

.highlights li::before {
    content: "•";
    color: var(--color-secondary);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ==========================================
   Announcement Cards Grid
   ========================================== */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.announcements-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.announcement-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.625rem;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.announcement-card:hover {
    background: rgba(19, 24, 50, 0.8);
    transform: translateY(-4px);
}

.announcement-card:hover.announcement-card {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.announcements-grid.three-col .announcement-card:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon.ongoing {
    background: rgba(16, 185, 129, 0.2);
}

.card-icon.ongoing i {
    color: #10b981;
    font-size: 1.5rem;
}

.card-icon.upcoming {
    background: rgba(59, 130, 246, 0.2);
}

.card-icon.upcoming i {
    color: #60a5fa;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 1rem 0 0.5rem;
}

.card-description {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.card-footer i {
    font-size: 1rem;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.card-location i {
    font-size: 1rem;
}

/* ==========================================
   Modal
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--color-card);
    margin: 2% auto;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-primary);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* ==========================================
   Registration Form
   ========================================== */
.form-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.625rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.form-header p {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.form-header .deadline {
    font-weight: 600;
    color: white;
}

.form-header .contact {
    font-size: 0.75rem;
}

.form-header a {
    color: var(--color-secondary);
    text-decoration: none;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.form-guidelines {
    font-size: 0.875rem;
    color: #d1d5db;
    margin: 0;
}

.form-guidelines-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    color: #d1d5db;
    font-size: 0.875rem;
}

.form-guidelines-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-guidelines-list li::before {
    content: "•";
    color: var(--color-secondary);
    line-height: 1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--color-border);
    background: var(--color-primary);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(30, 39, 73, 0.3);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover,
.checkbox-option:hover {
    background: rgba(30, 39, 73, 0.5);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option span,
.checkbox-option span {
    color: white;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-option.consent {
    background: rgba(30, 39, 73, 0.5);
}

.form-footer-note {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .announcement-header-row {
        flex-direction: column;
    }

    .announcements-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .announcement-content.has-title-image {
        flex-direction: column;
    }

    .announcement-title-image {
        max-height: 220px;
    }

    .announcement-title-image-wrap {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .announcement-title-large {
        font-size: 1.5rem;
    }

    .featured-announcement-card {
        padding: 1.5rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .announcement-title-large {
        font-size: 1.25rem;
    }

    .announcement-subtitle {
        font-size: 1rem;
    }
}
/* Wrapper for image + card */
.announcement-side-wrapper {
    display: flex;
    gap: 2rem; /* space between image and card */
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 3rem;
}

/* Poster image styling */
.announcement-image-wrapper-side {
    flex-shrink: 0;
}

.announcement-image-side {
    width: 450px; /* bigger poster */
    max-width: 100%;
    height: auto; /* maintain aspect ratio */
    border-radius: 8px;
    object-fit: contain;
}

/* Make card take remaining space */
.featured-announcement-card {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
}

/* Responsive: stack on mobile */
@media (max-width: 1024px) {
    .announcement-side-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .announcement-image-side {
        width: 100%;
    }
}