
body {
    font-family: 'Poppins', sans-serif;
    /* Main background is a very dark purple */
    background-color: #180529;
    /* Main body text is a clean off-purple white */
    color: #f0e6ff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    min-height: 100vh;
    position: relative;
    /* Assuming a similar aesthetic, a dark, purple-toned background image is needed */
    background-image: url('BODY-BG.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}
.highlighted-theme {
    color: #A120F2;
    font-weight: bold;
}

.event-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #f0e6ff;
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Add this to your e-styles.css file */
.aesthetic-text {
    text-align: center;
    color: #E8B9FF;
    font-family: 'Dancing Script', cursive;
    /* Use a consistent font size that looks good for all phrases */
    font-size: 1.4em; 
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 20px;
}


/* ------------------------------------------- */
/* 2. Header and Navigation */
/* ------------------------------------------- */

.blue-container {
  /* This element now has the desired negative margin */
  width: 100%;
  background-color: #2D1A3E;
  padding: 10px;
  border-bottom: 2px solid #432E58;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
}

.centered-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 50px;
    width: auto;
}

.titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.college-name {
    font-size: 16px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.site-title {
    font-size: 14px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #2D1A3E;
    border-bottom: 2px solid #432E58;
    /* Add these lines to make it full width */
    width: 100%; 
    margin: 0; /* Ensures no default margins are pushing it in */
}

.b-nav-button {
    background: none;
    border: 2px solid #A120F2;
    color: #A120F2;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.b-nav-button:hover,
.b-nav-button.active-nav-button {
    background-color: #A120F2;
    color: #180529;
    box-shadow: 0 0 10px rgba(161, 32, 242, 0.6);
}

/* ------------------------------------------- */
/* 3. Main Content Area & Event Navigation */
/* ------------------------------------------- */
.coordinator-list {
  margin: 15px auto 25px; /* Centers the block horizontally and sets top/bottom margin */
  width: fit-content; /* Makes the div only as wide as its content */
  text-align: center; /* Centers the text inside */
}

.coordinator-list p {
  font-size: 1.1em;
  color: #f0e6ff;
  margin-bottom: 5px;
}

.coordinator-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.coordinator-list li {
  font-size: 1em;
  margin-bottom: 5px;
  color: #d8cde9;
}

.poster-container {
    width: 100%;
    max-width: 800px; /* Or a width that fits your design */
    margin: 40px auto 20px; /* Add some space around the poster */
    border-radius: 20px; /* This rounds the corners of the container */
    overflow: hidden; /* This is crucial to hide the sharp corners of the image */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* A subtle shadow for depth */
}

.poster-image {
    width: 100%;
    height: auto;
    display: block; /* Removes any extra space below the image */
}

#content-placeholder {
    padding: 40px;
    min-height: 500px;
    overflow-x: hidden;
}

.content-container-wrapper {
    background-color: rgba(24, 5, 41, 0.75);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    max-width: 1200px;
    overflow-x: hidden;
}

/* Event Navigation (Sliding Buttons) */
.events-navigation {
    position: relative;
    display: inline-flex;
    background-color: #432E58;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.events-button {
    background: transparent;
    border: none;
    color: #b0a0d0;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10;
    font-weight: 600;
}

.events-button.active {
    color: #ffffff;
}

.slider {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: 0;
    background-color: #E8B9FF;
    border-radius: 50px;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 5;
}

/* Event Content Blocks */
.events-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.events-content.active {
    display: block;
}

.event-details {
    background-color: #432E58;
    border: 1px solid #58416E;
    border-radius: 8px;
    display: none;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-block {
    background-color: #2D1A3E;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-top: 30px;
}

.content-block h3 {
    text-align: center;
    color: #A120F2;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}

.event-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.event-logo {
    max-width: 50%;
    height: auto;
}

/* ------------------------------------------- */
/* 4. Table Styles */
/* ------------------------------------------- */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.content-block-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #432E58;
    border-radius: 8px;
    overflow: hidden;
}

.content-block-table thead {
    background-color: #2D1A3E;
}

.content-block-table th {
    padding: 18px 25px;
    text-align: left;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 2px solid #58416E;
}

.content-block-table td {
    padding: 15px 25px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #58416E;
    color: #d8cde9;
}

.content-block-table td ul {
    margin: 0;
    padding-left: 20px;
}

.content-block-table td li {
    margin-bottom: 8px;
}

.content-block-table tbody tr {
    background-color: #2D1A3E;
}

.content-block-table a {
    color: #E8B9FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-block-table a:hover {
    color: #f7d2ff;
    text-decoration: underline;
}

/* ------------------------------------------- */
/* 5. Dropdown and iframe Styles */
/* ------------------------------------------- */

.event-selector-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #2D1A3E;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.event-selector {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.event-selector label {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #f0e6ff;
}

.event-selector select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #432E58;
    background-color: #432E58;
    color: #f0e6ff;
    font-size: 1em;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.event-selector select:focus {
    border-color: #A120F2;
    box-shadow: 0 0 5px rgba(161, 32, 242, 0.5);
    outline: none;
}

.iframe-container {
    background-color: #432E58;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.iframe-container iframe {
    width: 100%;
    height: 1200px;
    border: none;
    background-color: #ffffff;
    border-radius: 8px;
}

.table-container {
    background-color: #432E58;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.table-container h3 {
    text-align: center;
    color: #A120F2;
    text-transform: uppercase;
    margin-bottom: 25px;
    margin-top: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.event-selector-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #2D1A3E;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.hackathon-themes-container h3 {
    color: #A120F2;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.hackathon-themes-container h4 {
    color: #f0e6ff;
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ------------------------------------------- */
/* 6. Footer */
/* ------------------------------------------- */

footer {
    text-align: center;
    padding: 20px;
    background-color: #2D1A3E;
    color: #b0a0d0;
    border-top: 2px solid #432E58;
    margin-top: 20px;
    /* Add this line to make it full width */
    width: 100%;
}

/* ------------------------------------------- */
/* 7. Dropdown styles for the new event section */
/* ------------------------------------------- */
.dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dropdown-container label {
    white-space: nowrap;
    margin-right: 5px;
    color: #f0e6ff;
    width: 250px;
    text-align: right;
}

.dropdown-container select {
    flex-grow: 1;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #432E58;
    border-radius: 5px;
    appearance: none;
    background-color: #432E58;
    color: #f0e6ff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23A120F2%22%20d%3D%22M287%20163.6H5.4c-7.4%200-11.4-9.3-6.1-15.5L140.7%204.6c5.5-6.2%2015.1-6.2%2020.6%200l141.4%20143.5c5.3%206.2%201.3%2015.5-6.1%2015.5z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px 15px;
    cursor: pointer;
}

.dropdown-container button {
    padding: 10px 15px;
    background-color: #A120F2;
    color: #180529;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.dropdown-container button:hover {
    background-color: #9019E0;
}

.event-details {
    margin-top: 20px;
    padding: 20px;
    background-color: #432E58;
    border: 1px solid #58416E;
    border-radius: 8px;
    display: none;
}

.event-details h3 {
    color: #A120F2;
    margin-top: 0;
}

.event-details ul {
    list-style-type: disc;
    padding-left: 20px;
}

.event-details li {
    margin-bottom: 10px;
}

.event-details b {
    color: #f0e6ff;
}
/* Styling for the scroll down animation container */
.scroll-down-animation {
    text-align: center;
    margin: 20px 0;
    color: #f0e6ff;
    font-size: 1.2em;
    opacity: 0.8;
    animation: fadeIn 1.5s ease-in-out;
}

/* Styling for the animated arrow */
.arrow-down {
    width: 30px;
    height: 30px;
    margin: 10px auto 0;
    border: 2px solid #A120F2;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    animation: bounce 2s infinite;
}

/* Creating the arrow shape using pseudo-elements */
.arrow-down::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #A120F2;
    border-bottom: 2px solid #A120F2;
    transform: translate(-50%, -50%) rotate(45deg);
}
.scroll-link,
.scroll-link:hover,
.scroll-link:active,
.scroll-link:visited {
  text-decoration: none;
  color: inherit; /* This ensures the text color also doesn't change to blue */
}
/* Keyframe animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ------------------------------------------- */
/* 8. Keyframe Animations */
/* ------------------------------------------- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    * {
  box-sizing: border-box;
}
    body {
        font-size: 14px;

    }
    /* Create a pseudo-element for the fixed background on mobile */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('BODY-BG.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        z-index: -1; /* Place it behind the content */
    }

    /* Restore the original desktop header styles here */
    .blue-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 15px; /* Adjust padding for mobile screens */
        
    }

    .centered-header-content {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 15px; /* Keep the same gap as desktop */
    }

    .header-logo {
        height: 50px; /* Keep the same logo height as desktop */
        width: auto;
    }

    .titles {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .college-name {
        font-size: 10px; /* Keep the same font size as desktop */
        margin: 0;
    }

    .site-title {
        font-size: 9px; /* Keep the same font size as desktop */
        margin: 0;
    }
    .poster-container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 10px; /* Smaller rounding for mobile */
    }

    .content-container-wrapper {
        margin: 15px 0;
        padding: 20px 10px;
        overflow-x: hidden;
    }
    
    .button-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }

    .b-nav-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .event-logo {
        max-width: 90%;
    }

    /* Main Content Area & Event Navigation */
    #content-placeholder {
        padding: 20px;
        min-height: auto;
    }

    .content-container-wrapper {
        padding: 20px;
        margin: 15px 6px;
    }

    .events-navigation {
        display: flex;
        justify-content: space-around;
        width: 100%;
        border-radius: 30px;
        padding: 5px;
    }

    .events-button {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 0.9em;
        font-weight: 500;
    }

    .slider {
        display: none;
    }

    .content-block {
        padding: 15px;
        margin-top: 20px;
    }

    .content-block h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    /* Table Styles - Redesigned for better mobile layout */
    .table-responsive {
        overflow-x: hidden;
        width: 100%;
    }

    .content-block-table {
        display: block;
        min-width: 0;
    }

    .content-block-table,
    .content-block-table thead,
    .content-block-table tbody,
    .content-block-table th,
    .content-block-table td,
    .content-block-table tr {
        display: block;
    }

    .content-block-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .content-block-table tr {
        border: 1px solid #432E58;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .content-block-table td {
        border-bottom: 1px solid #432E58;
        position: relative;
        padding: 10px 15px;
        padding-left: 15px;
        text-align: left;
    }

    .content-block-table td::before {
        content: attr(data-label);
        display: block;
        width: 100%;
        padding-right: 10px;
        white-space: normal;
        font-weight: bold;
        text-align: left;
        color: #ffffff;
        margin-bottom: 5px;
    }

    .content-block-table tr td:last-child {
        border-bottom: none;
    }

    .content-block-table td ul {
        padding-left: 20px;
        margin-top: 10px;
    }

    /* Dropdown and iframe Styles */
    .event-selector-container {
        padding: 15px;
        margin-top: 20px;
    }

    .event-selector label {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .event-selector select {
        font-size: 0.9em;
        max-width: none;
    }

    .iframe-container {
        padding: 15px;
        width: 100%;
        height: 1200px;
    }

    .iframe-container iframe {
        width: 100%;
        height: 1200px;
        border: none;
        background-color: #ffffff;
        border-radius: 8px;
    }

    .dropdown-container {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-container label {
        margin-bottom: 5px;
    }

    .dropdown-container select {
        width: 100%;
        margin-bottom: 10px;
    }

    .dropdown-container button {
        width: 100%;
    }

    .event-details {
        padding: 15px;
    }
    
    /* Footer */
    footer {
        padding: 15px;
        font-size: 0.9em;
    }

    /* Scroll Button */
    .scroll-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #A120F2;
        color: #180529;
        border: none;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        font-size: 1.5em;
        line-height: 45px;
        text-align: center;
        cursor: pointer;
        display: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: background-color 0.3s ease;
    }

    .scroll-to-top:hover {
        background-color: #9019E0;
    }

    .scroll-to-top::before {
        content: '↑';
        font-weight: bold;
    }
}

@media only screen and (max-width: 480px) {
    /*
     * Blue container related tags for very small screens
     * These adjustments provide a better fit for devices like the iPhone SE.
     */
    .blue-container {
        padding: 8px;
    }
    
    .centered-header-content {
        gap: 10px; /* Adjust gap to be a bit smaller if needed for space */
    }

    .header-logo {
        height: 40px; /* A slightly smaller logo may be necessary here for very small screens */
    }

    .college-name {
        font-size: 10px; /* Maintain font size, but feel free to adjust if it causes wrapping issues */
    }

    .site-title {
        font-size: 9px;
    }
}

/* ------------------------------------------- */
/* Dedicated Styles for very small screens (e.g., iPhone SE) */
/* ------------------------------------------- */

@media (max-width: 400px) {
    .event-logo {
        max-width: 80%;
    }

    .content-container-wrapper {
        margin: 15px 0;
        padding: 20px 10px;
    }
    
    .event-selector-container,
    .iframe-container,
    .table-container {
        padding: 10px;
        margin: 10px auto;
    }
}
