/* 
  ================================
  GLOBAL RESET
  ================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
    ================================
    BODY & FONTS
    ================================
  */
body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    /* Black background */
    color: #fff;
    /* White text */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 
    ================================
    LINKS
    ================================
  */
a {
    color: #ff2e2e;
    /* Bright red links */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #fff;
    /* Hover: white */
}

/* 
    ================================
    HEADER
    ================================
  */
header {
    background-color: #111;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid #ff2e2e;
}

.logo-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    max-height: 60px;
    margin-right: 15px;
}

header h1 {
    font-size: 1.8rem;
    color: #ff2e2e;
    /* Red accent for the heading */
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 4px;
}

nav a.active,
nav a:hover {
    background-color: #ff2e2e;
    color: #000;
    /* Invert colors on hover or active link */
}

/* 
    ================================
    HERO SECTION (HOME)
    ================================
  */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #111, #222);
    border-bottom: 2px solid #ff2e2e;
    animation: fadeIn 1.5s ease;
}

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

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

.btn {
    display: inline-block;
    background-color: #ff2e2e;
    color: #000;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* 
    ================================
    SECTIONS
    ================================
  */
section {
    padding: 20px;
    margin: 20px;
    background-color: #111;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.4);
    animation: fadeInUp 1s ease;
}

section h2 {
    margin-bottom: 15px;
    color: #ff2e2e;
}

/* 
    ================================
    LATEST NEWS (HOME)
    ================================
  */
.latest-news .news-item {
    background-color: #222;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #ff2e2e;
    animation: fadeIn 1s ease;
}

.news-item h3 {
    margin-bottom: 8px;
    color: #ff2e2e;
}

/* 
    ================================
    FEATURED ROBOT (HOME)
    ================================
  */
.featured-robot .robot-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.robot-img {
    max-width: 250px;
    border: 2px solid #ff2e2e;
    border-radius: 8px;
}

.robot-details {
    flex: 1;
}

/* 
    ================================
    SPONSORS (HOME)
    ================================
  */
.sponsors ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* 
    ================================
    ABOUT PAGE: TEAM GALLERY
    ================================
  */
.team-gallery .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.member-card {
    background-color: #222;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 180px;
    animation: fadeIn 1s ease;
}

.member-card img {
    width: 100%;
    border: 2px solid #ff2e2e;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 
    ================================
    EVENTS PAGE
    ================================
  */
.event-list {
    display: grid;
    gap: 20px;
}

.event-item {
    background-color: #222;
    padding: 15px;
    border-left: 4px solid #ff2e2e;
}

.past-events {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.past-event img {
    max-width: 250px;
    border: 2px solid #ff2e2e;
    border-radius: 8px;
}

/* COUNTDOWN SECTION */
.countdown-section {
    text-align: center;
}

/* 
    ================================
    CONTACT PAGE
    ================================
  */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 10px;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 2px solid #ff2e2e;
    border-radius: 4px;
    background-color: #222;
    color: #fff;
    outline: none;
}

.contact-form button {
    margin-top: 20px;
}

/* 
    ================================
    FOOTER
    ================================
  */
footer {
    text-align: center;
    background-color: #111;
    padding: 10px;
    border-top: 2px solid #ff2e2e;
}

/* 
    ================================
    ANIMATIONS
    ================================
  */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Cabinet Styles */
#fileCabinet {
    margin: 20px;
}

#fileCabinet h2 {
    margin-bottom: 15px;
    color: #ff2e2e;
    /* Red accent */
}

.folder {
    border: 2px solid #ff2e2e;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #222;
}

.folder-header {
    padding: 10px;
    background-color: #111;
    color: #ff2e2e;
    cursor: pointer;
    font-weight: bold;
}

.folder-content {
    padding: 10px;
    display: none;
    /* Hidden by default; toggles on click */
    max-height: 300px;
    /* Adds scroll if content overflows */
    overflow-y: auto;
    background-color: #000;
}

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

.folder-content li {
    margin-bottom: 5px;
}

.folder-content a {
    color: #ff2e2e;
    text-decoration: none;
}

.folder-content a:hover {
    text-decoration: underline;
}

.doc-preview-wrapper {
    width: 600px;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    /* Ensures content outside the container is hidden */
    border: 3px solid transparent;
    /* Base border, which will be overridden by the pseudo-element */
    border-radius: 10px;
    position: relative;
    margin: 20px auto;
    /* Centered horizontally with auto margins */
    background-color: #fff;
    /* Optional: sets a background for the preview area */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Subtle shadow for depth */
}

.doc-preview-wrapper::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(45deg, #ff2e2e, #000);
    /* Gradient border from red to black */
}

.doc-preview-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Countdown Timer Container */
#countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
    flex-wrap: wrap;
}

/* Each Countdown Box */
.countdown-box {
    background-color: #222;
    color: #ff2e2e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 100px;
}

/* Larger number style */
.countdown-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Label styling */
.countdown-box br+span {
    font-size: 1rem;
    color: #ccc;
}

.past-events {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.past-event {
    color: #000;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 45%;
    /* Adjust the basis so two items fit per row on larger screens */
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.past-event img {
    max-width: 150px;
    /* Adjust width as needed */
    height: auto;
    border-radius: 8px;
}

.past-event p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}