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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

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

/* Header Styles */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e53e3e;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2d3748;
    margin: 3px 0;
    transition: 0.3s;
}

/* Button Styles */
.btn-primary {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-primary:hover {
    background: #c53030;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #e53e3e;
    border: 2px solid #e53e3e;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #e53e3e;
    color: white;
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Programmes Section */
.programmes-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.programmes-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-card i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.category-card p {
    color: #718096;
    margin-bottom: 1rem;
}

.programme-count {
    background: #e53e3e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Information Events Section */
.events-section {
    padding: 80px 20px;
    background: white;
}

.events-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.events-section > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 3rem;
}

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

.event-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.event-date {
    background: #e53e3e;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

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

.event-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-content h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.event-content p {
    color: #718096;
    margin-bottom: 0.5rem;
}

.event-content i {
    margin-right: 0.5rem;
    color: #e53e3e;
}

.event-content .btn-primary {
    margin-top: 1rem;
}

/* Why IU Section */
.why-iu-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.why-iu-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

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

.feature {
    text-align: center;
    padding: 2rem;
}

.feature i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature p {
    color: #718096;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e53e3e;
}

.consent-section {
    margin: 2rem 0;
}

.consent-section h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.1rem;
}

.consent-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: auto;
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    color: #718096;
}

.modal-footer a {
    color: #e53e3e;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.dashboard-header h2 {
    color: #2d3748;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

/* Footer */
.main-footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e53e3e;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .programmes-section,
    .events-section,
    .why-iu-section {
        padding: 60px 20px;
    }
    
    .programmes-section h2,
    .events-section h2,
    .why-iu-section h2 {
        font-size: 2rem;
    }
    
    .programme-categories,
    .info-events {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero,
    .programmes-section,
    .events-section,
    .why-iu-section {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Hide dashboard initially and show login/signup by default */
body:not(.logged-in) .dashboard {
    display: none;
}

body.logged-in .hero,
body.logged-in .programmes-section,
body.logged-in .events-section,
body.logged-in .why-iu-section {
    display: none;
}

body.logged-in .dashboard {
    display: block;
}

/* IU Logo */
.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e53e3e;
    display: flex;
    align-items: center;
}

.nav-logo::before {
    content: "IU";
    background: #e53e3e;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin-right: 8px;
}

.nav-logo::after {
    content: "International University";
    font-size: 0.9rem;
    color: #2d3748;
}

/* Hero image styling */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.hero-image::before {
    content: "🎓 Student Success Stories";
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}