/* AECAS Professional Website Styles */
/* Theme colors extracted from logo: Blue (#1e3a8a, #3b82f6) and Orange (#f97316, #ea580c) */

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

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --primary-orange: #eab308;
    --secondary-orange: #ca8a04;
    --light-blue: #dbeafe;
    --light-orange: #fef3c7;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Afacad Flux', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-right: auto;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    max-width: 280px;
    justify-content: space-between;
    height: 50px;
}

.nav-logo-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo-subtitle {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.1;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-orange);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-orange);
}

.nav-menu .btn-primary {
    box-shadow: none !important;
}

.nav-menu .btn-primary:hover {
    color: var(--white) !important;
    box-shadow: none !important;
    transform: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(59, 130, 246, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Afacad Flux', sans-serif;
}

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

.btn-primary:hover {
    background: var(--secondary-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section.compact {
    padding: 50px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

.card-icon {
    display: none;
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--gray-200);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-200);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-blue);
    font-weight: 600;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--gray-600);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-blue);
}

.modal-body {
    padding: 25px;
}

.modal-body h4 {
    margin: 0 0 15px 0;
    color: var(--primary-blue);
    font-weight: 600;
}

.modal-body p {
    margin: 0 0 10px 0;
    color: var(--gray-800);
}

.modal-body ol {
    margin: 15px 0;
    padding-left: 20px;
    color: var(--gray-800);
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-footer {
    padding: 15px 25px 25px;
    text-align: right;
    border-top: 1px solid var(--gray-200);
}

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

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.scroll-to-top:hover {
    background: var(--secondary-orange);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .event-image {
        height: 220px;
    }
    
    .event-overlay h3 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .close {
        font-size: 24px;
        right: 15px;
        top: 12px;
    }
    
    /* Stack payment input and button on mobile */
    [style*="display: flex; gap: 10px;"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    [style*="display: flex; gap: 10px;"] .btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 10px;
        max-height: 100vh;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
        padding-right: 30px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-image {
        height: 180px;
    }
    
    .event-overlay h3 {
        font-size: 1.3rem;
    }
    
    .event-description {
        padding: 15px;
    }
    
    .event-date-badge {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }
}

/* Event Flyers */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-flyer {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-flyer:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.event-image.career-fair {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
}

.event-image.workshop {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-blue);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.event-date-badge.orange {
    color: var(--primary-orange);
}

.event-date-badge .month {
    display: block;
    font-size: 0.9rem;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-overlay {
    text-align: center;
    padding: 20px;
}

.event-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-details p {
    margin: 5px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.event-description {
    padding: 25px;
}

.event-description p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Department Lists */
.card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.95rem;
}

.card ul li:last-child {
    border-bottom: none;
}

.card ul li:before {
    content: "•";
    color: var(--primary-orange);
    font-weight: bold;
    margin-right: 10px;
}

/* Past Events Styles */
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.past-event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.past-event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.past-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.event-date-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(30, 58, 138, 0.9);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.past-event-content {
    padding: 25px;
}

.past-event-content h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.3rem;
}

.past-event-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Announcements Banner */
#announcementsBanner {
    margin-top: 80px;
}

.announcement-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.announcement-item.normal {
    background: var(--light-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.announcement-item.high {
    background: var(--light-orange);
    border-color: var(--primary-orange);
    color: var(--secondary-orange);
}

.announcement-item.urgent {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.announcement-item i {
    font-size: 1.5rem;
}

.announcement-item strong {
    display: block;
    margin-bottom: 5px;
}

.announcement-item p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .past-events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .past-event-image {
        height: 180px;
    }
    
    .past-event-content {
        padding: 20px;
    }
    
    .announcement-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Student Type Selection Styles */
.student-type-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.student-type-buttons .btn {
    min-width: 200px;
    padding: 20px 30px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.student-type-buttons .btn i {
    font-size: 1.3rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Back button styling */
.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Mobile responsiveness for student type selection */
@media (max-width: 768px) {
    .student-type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .student-type-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}