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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* Container utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: #0077cc;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* ===========================
   Header
=========================== */
header {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    height: 40px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

header nav ul li a {
    font-weight: 500;
    color: #333;
}

header .theme-toggle button {
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===========================
   Hero Section
=========================== */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0077cc, #00c6ff);
    color: #fff;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.widget-clock,
.widget-weather {
    font-size: 1rem;
    margin-top: 10px;
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* ===========================
   Team Spotlight
=========================== */
.team-spotlight {
    padding: 40px 20px;
}

.team-spotlight h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.team-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.view-profile {
    margin-top: 10px;
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===========================
   Upcoming Events
=========================== */
.upcoming-events {
    padding: 40px 20px;
    background: #f1f5f9;
}

.upcoming-events h2 {
    text-align: center;
    margin-bottom: 30px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.event-card {
    flex: 0 0 280px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===========================
   Quick Links
=========================== */
.quick-links {
    padding: 40px 20px;
}

.quick-links h2 {
    text-align: center;
    margin-bottom: 30px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.link-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: scale(1.05);
}

.link-card img {
    width: 50px;
    margin-bottom: 15px;
}

.link-card a {
    display: inline-block;
    margin-top: 10px;
    color: #0077cc;
    font-weight: 600;
}

/* ===========================
   Footer
=========================== */
footer {
    text-align: center;
    padding: 15px;
    background: #0077cc;
    color: #fff;
    font-size: 0.9rem;
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 768px) {
    header nav ul {
        display: none; /* Will convert to hamburger menu later */
    }

    .hero h2 {
        font-size: 1.6rem;
    }
}

/* ===========================
   Dark Mode Styles
=========================== */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

body.dark-mode header {
    background: #1e1e1e;
    border-bottom: 1px solid #333;
}

body.dark-mode nav ul li a {
    color: #f1f1f1;
}

body.dark-mode .theme-toggle button {
    background: #333;
    color: #fff;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #222, #444);
    color: #f1f1f1;
}

body.dark-mode .team-card,
body.dark-mode .link-card,
body.dark-mode .event-card {
    background: #1f1f1f;
    color: #f1f1f1;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode footer {
    background: #1e1e1e;
    color: #ccc;
}

body.dark-mode .widget-clock,
body.dark-mode .widget-weather {
    background: rgba(255,255,255,0.05);
}
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    text-align: center;
    margin-top: 15px;
}

.carousel-indicators .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-indicators .dot.active {
    background: #0077cc;
}
.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}
/* ===========================
   Sticky Sidebar
=========================== */
.sidebar {
    position: fixed;
    top: 80px;
    right: 0;
    width: 280px;
    background: #f9f9f9;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #ddd;
    height: calc(100% - 80px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-toggle {
    position: absolute;
    left: -40px;
    top: 10px;
    background: #0077cc;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    font-size: 20px;
}

.sidebar-content {
    padding: 20px;
}

.sidebar .widget {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Dark Mode for Sidebar */
body.dark-mode .sidebar {
    background: #1e1e1e;
    border-left: 1px solid #333;
}

body.dark-mode .sidebar .widget {
    background: #2a2a2a;
    color: #f1f1f1;
}

body.dark-mode .sidebar-toggle {
    background: #333;
}

/* Sidebar collapse for mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

.content {
    padding: 20px;
    margin-right: 300px; /* space for sidebar */
}

@media (max-width: 768px) {
    .content {
        margin-right: 0; /* sidebar collapses on mobile */
    }
}
/* Dragging effect */
.widget.dragging {
    opacity: 0.5;
    background: #e8f0ff;
    border: 2px dashed #0077cc;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
