/* Base Styles */
:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f9f9f9;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #8ab4f8;
    --secondary-color: #81c995;
    --accent-color: #f28b82;
    --text-color: #e8eaed;
    --light-text: #9aa0a6;
    --bg-color: #202124;
    --card-bg: #303134;
    --border-color: #5f6368;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tagline {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.quote-of-the-day {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    max-width: 500px;
}

.quote-of-the-day p {
    font-style: italic;
    margin-bottom: 5px;
}

.quote-of-the-day small {
    color: var(--light-text);
    font-size: 0.9rem;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 200px;
}

.weather-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.temp {
    font-size: 1.5rem;
    font-weight: 700;
}

.location {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Search Bar */
.search-bar {
    display: flex;
    margin-bottom: 30px;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.search-bar button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #3367d6;
}

/* Section Headers */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

section h2 i {
    color: var(--primary-color);
}

/* Upcoming Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

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

.event-details {
    padding: 15px;
    flex: 1;
}

.event-details h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.event-details p {
    font-size: 0.9rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.event-details i {
    color: var(--primary-color);
}

/* Quick Links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    padding: 20px 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.link-card span {
    font-size: 0.9rem;
    text-align: center;
}

/* Team Spotlight */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s;
    text-align: center;
    padding: 20px;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-card .role {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.team-card .bio {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Announcements */
.announcement-carousel {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    min-height: 180px;
}

.announcement {
    display: none;
}

.announcement.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.announcement h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.announcement p {
    margin-bottom: 10px;
}

.announcement .date {
    font-size: 0.8rem;
    color: var(--light-text);
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.carousel-controls button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
}

.carousel-controls button:hover {
    color: var(--accent-color);
}

.indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
}

.indicator.active {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 30px 0 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section p, .footer-section ul {
    font-size: 0.9rem;
    color: var(--light-text);
}

.footer-section p i {
    margin-right: 8px;
    color: var(--primary-color);
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.2s;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-of-the-day {
        margin: 0 auto;
    }
    
    .weather-widget {
        margin: 0 auto;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .events-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}