
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

nav {
    background-color: #e9e9e9;
    color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5;    
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    padding: 1rem;
    margin-right: 1rem;
}

nav ul li a {
    display: inline;
    color: #333;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #bababa;
  }

.logo img{
    width:3rem;
    height:auto;
}

.logo{
    margin-left: 5%;
    margin-top: 2.5px;
}

.logo_links{
    margin-left: 5%;
}

.logo_n_links{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* -- Small menu --- */

.navbar-toggle {
    display: none; /* Initially hide the checkbox */
  }
  
  .navbar-toggle-label {
    display: none; /* Initially hide the label */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }
  
  .navbar-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
  }
/* -- Small menu --- */


footer {
    background-color: #e9e9e9;
    color: #333;
    padding: 1em;
    text-align: left;
    z-index: 5;
}

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

footer ul li {
    /* display: inline; */
    margin-right: 0.3rem;
}

footer ul li a {
    color: #333;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
  }

.foot_cols{
    display: flex;
    flex-direction: row;
    align-items: top;
    justify-content:space-evenly; 
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.foot_end{
    display: flex;
    flex-direction: row;
    align-items: top;
    justify-content:center; 
    margin-bottom: 1.5rem;
}

.news_hero .social-icons {
    text-align: right;
}

/* Social Icons in Footer */
.social-icons a { color: #666464; margin: 0 7px; font-size: 1em; /* Adjust icon size */ text-decoration: none; }
.social-icons a:hover { color: #fff; /* Or your brand color */ }

.container{
    max-width: 1140px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}


.bookmark {
    display: block;
    padding-top: 5rem;
    margin-top: -5rem;
}


/* Newsletter  ------------------------------ */

.newsletter{
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 2rem;

}

.alt_newsletter{
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;    
}

.newsletter #signup_email:focus {
    border-color:#c5c6bf; 
    background-color:#f9f5d1;
    background-image:none;
    color:#000;
  }

.newsletter .bluebutton{
    background-color:#333333;
    color:#FFF;
    -moz-border-radius:13px;
    -webkit-border-radius:13px;
    border-radius:13px;
    padding:0.375rem 0.85rem 0.375rem 0.85rem;
    text-shadow: 1px 1px 1px #111111;      
}

.newsletter .signup_email{
    max-width: 200px;
    padding: .375rem .75rem;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;    
}

.your_event_info, .event_list_card{
    margin: 1rem;
    margin-left: 1.75rem;
    margin-right: 2rem;
}

.your_event_form{
    width: 35%;
    margin: 1rem;
    margin-left: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.add_event{
    text-align: right;
    max-width: 50%;
    margin-top: 3rem;
    margin-bottom: 3rem;
}


.your_event_card, .index_container, .speakers_page, .nextyear_page, .upcoming_page{
    margin-top: 0.75rem;
    margin-bottom: 2rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}



hr.solid {
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-top: 3px solid #bbb;
    max-width: 60%;
  }

  /* ---- Form control ---------------------------------------------------------- */
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: black;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  }

.mb-2 {
    margin-bottom: .5rem !important;
}

.form-label {
    margin-bottom: .5rem;
}

label {
    display: inline-block;
}

.btn-primary{
    background-color:#333333;
    color:#FFF;
    -moz-border-radius:13px;
    -webkit-border-radius:13px;
    border-radius:13px;
    padding:0.375rem 0.85rem 0.375rem 0.85rem;

    text-shadow: 1px 1px 1px #111111;     
}

.invalid-feedback{
    color: rgb(199, 0, 0);
}
/* ---- Bordered table ---------------------------------------------------------- */

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered td, .table-bordered th {
    border: 1px solid #dee2e6;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

table {
    border-collapse: collapse;
  }

.table .thead-light th {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
  }

/* ------------------------------------------------------------------ */

.hero{
    margin: 1rem;
    margin-top: 7rem;
}

.like-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 8px;
    background-color: white;
    cursor: pointer;
    font-size: 16px;
    border: none;
}

.like-button:hover {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff0f0;
}

/* Style for the SVG icon itself */
.like-button svg {
    width: 20px;
    height: 20px;
} 

.event_item_desc_with_like{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.event_item_desc{
    align-self: flex-start;
}

.like_form_item{
    align-self: flex-end;
}

.most_voted{
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: darkred;
}

/* ------------------------------------------------------------------ */

.calendar {
    width: 35%;
}
       
.calendar th, .calendar td {
    padding: 1rem;
    vertical-align: middle;
    text-align: center;
    
}
.event {
    background-color: #f8d7da;
    padding: 0 !important;
}

.calendar td a {
    display: block !important; 
    padding: 1rem;    
}

.calendar .event:hover { 
    background-color: red; 
}

.two_calendars{
    display: flex;
    flex-direction: row;
}

.cal_left, .cal_right{
    margin: 1%;
}

.event_item{
    display: flex;
    margin: 0.7rem;
    margin-top: 1rem;
    justify-content: flex-start;
    width: 80%;
    border-style: groove;
    border-width: 1px;
    border-radius: 5px;
    padding: 1rem;
    border-color: rgb(152, 197, 165);
}

.event_item_link{
    margin-right: 1rem;
    min-width: 15rem;
    margin-bottom: 0.8rem;
}

.event_item_link a{ 
    text-decoration: none;
}

.event_item_desc{
    width: auto;
    text-align: left;
    margin-bottom: 0.2rem;
}

.event_item_ext{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    gap: 1rem;
}

.event_item_logo img{
    width: 10rem;
    height: auto;
    margin-right: 1rem;
}

.event_item_ext  .event_item_link{
    text-align: center;
    margin-bottom: 0rem;
}


.event_day{
    margin-top: 1.0rem;
}


.event_list{
    margin-top: 2rem;
}

/* ------- Stopwatch--------------------------- */
.stopwatch_container{
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    display: none;
}

.stopwatch_container.visible {
    display: flex; /* Show the container when JavaScript is enabled */
}

.stopwatch_page{
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#display {
    margin-top: 0.5rem;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600; /* Semi-bold */
}

.controls button {
    padding: 0.375rem 0.85rem 0.375rem 0.85rem;
    font-size: 1rem;
    border: none;
    -moz-border-radius:13px;
    -webkit-border-radius:13px;
    border-radius:13px;
    text-shadow: 1px 1px 1px #111111;
    background-color: #333333;
    color: white;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.stopwatch_page .controls button a{
    text-decoration: none;
    color: white;
}

/* .controls button:hover {
    background-color:#f9f5d1;
    color:#000;
} */

.controls button:active {
    background-color:#f9f5d1;
    border-color:#c5c6bf;
    color:#000;
    transform: translateY(1px);
}


body.green {
    background-color: #8bf98b;
}

body.yellow {
    background-color: #FFEF00;
}

body.red {
    background-color: #e85050;
}

/* Trigger Settings Styles */
.trigger-settings {
    margin-top: 3rem;
    text-align: center; /* Align to the left for better readability */
}

.trigger-duration-settings{
    display: flex;
    align-items: center;
    justify-content: center;
}

.trigger-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}



.trigger-group label {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    text-indent: -9999px; /* Hide the label text */
    overflow: hidden;
}

/* Color definitions */
.color-label.green {
    background-color:#8bf98b;
}

.color-label.yellow {
    background-color: #faf203;
}

.color-label.red {
    background-color: #e85050;
}

.trigger-group input[type="number"] {
    width: 4rem; /* Adjust as needed for input width */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
}

.trigger-settings button {
    padding: 7px 50px;
    font-size: 0.75rem;
    background-color: #007bff; /* Example blue color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.trigger-settings button:hover {
    background-color: #0056b3;
}

.trigger-settings h4 {
    margin-bottom: 10px;
    text-align: center;
}

/* ------- No script ------------------------------ */
.javascript-required {
    background-color: #fdd; /* Light red background */
    color: #800; /* Dark red text */
    text-align: center;
    padding: 20px;
    margin: 2rem;
    margin-top: 7rem;
    border: 1px solid #800;
    border-radius: 5px;
    font-size: 1.2em;
}

/* ------- News ------------------------------ */
.news_page, .speakers_page, .learn_page, .article_page, .nextyear_page, .upcoming_page, .focus_page{
    margin-top: 7rem; 
}

.news_hero, .speakers_hero {
    margin-bottom: 3rem;
    margin-left: 1.5rem;
}

/* Card Styling */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Important to prevent content overflow */
    transition: transform 0.2s ease-in-out; /* Add a hover effect */
}

.news_container .card:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

.index_container .card:hover, .event_container .card:hover, .speakers_container .card:hover, .learn_container .card:hover, .upcoming_container .card:hover{
    transform: scale(1.01); /* Slight zoom on hover */
}

.news_page .card-image {
    width: 100%;
    height: 15rem; /* Adjust as needed */
    object-fit: cover; /* Fill the area while preserving aspect ratio */
    display: block; /* Removes extra space below images */
}

.news_page .card-body {
    padding: 20px;
}

.news_page .card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #222;
}

.news_page .card-text {
    font-size: 0.9rem;
    color: #555;
}

/* Button Styling */
.news_page .card-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff; /* A classic blue */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.2s ease-in-out;
}

.news_page .card-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Flexbox Layout */
.news_row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 3rem;
    margin-bottom: 20px;
    margin-left: 20px;
    gap: 20px;  /* Adds space between flex items */
}

/* Responsive Columns - Adjust breakpoints as needed */
.col-md-6 {
    flex: 0 0 calc(50% - 20px);  /* Two columns on medium screens */
}

.col-md-4 {
    flex: 0 0 calc(33.333% - 20px);  /* Three columns on medium screens */
}

.col-md-12 {
    flex: 0 0 100%; /* Full width on medium screens */
}

/* Smaller Images */
.small-card-image {
    height: 5rem; /* Adjust as needed */
    object-fit: cover;
    width: 100%;
}

/* List Styling */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* Subtle dividers */
}

.news_row a{
    text-decoration: none;
}

.rest_of_news{
    display: flex;
    flex-direction: row;
}

.rest_of_news_date{
    margin-right: 0.5rem;
}

/* News Pagination */


.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333333;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination .current {
    background-color: #333333;
    color: #fff;
    border: 1px solid #333333;
}

.pagination .ellipsis {
    padding: 0.5rem 1rem;
    color: #999;
}

.hr_class{
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.single_post_end{
    display: flex;
    justify-content:space-between; 
}

/* ------- Next Year ------------------------------ */

/* 3.1 Reset and root variables */
:root {
  --thumb-size: 10rem;
  --gap: 1rem;
}

.nextyear_hero {
    padding: var(--gap);
    box-sizing: border-box;

    margin-bottom: 2rem;
    margin-left: 1.5rem;
}

.nextyear_hero h1 {
    margin-bottom: 2.5rem;
}


/* 3.2 Responsive grid gallery */
.nextyear_page .gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-size), 1fr));
  grid-gap: var(--gap);
}

.nextyear_page .gallery-container a{
    text-decoration: none;
}

/* 3.3 Card wrapper */
.nextyear_page .card {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* 3.4 Thumbnail container */
.nextyear_page .thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 1rem;
}

/* 3.5 Image fit */
.nextyear_page .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 3.6 Caption info */
.nextyear_page .card-info {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.nextyear_page .card-info .title {
  font-weight: bold;
}

.nextyear_page .card-info .date,
.nextyear_page .card-info .place {
  font-size: 0.9rem;
  color: #555;
}

.nextyear_page .pagination {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

/* ------- Focus --------------------------------- */

/* 3.1 Reset and root variables */
:root {
  --thumb-size-focus: 15rem;
}

.focus_page{
    margin-bottom: 4rem;
}

.focus_hero {
    padding: var(--gap);
    box-sizing: border-box;

    margin-bottom: 2rem;
    margin-left: 1.5rem;
}

.focus_hero h1 {
    margin-bottom: 2.5rem;
}


/* 3.2 Responsive grid gallery */
.focus_page .gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-size-focus), 1fr));
  grid-gap: var(--gap);
}


.focus_page .gallery-container a{
    text-decoration: none;
}

/* 3.3 Card wrapper */
.focus_page .card{
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* 3.4 Thumbnail container */
.focus_page .thumb {
  width: var(--thumb-size-focus);
  height: var(--thumb-size-focus);
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 1rem;
}

/* 3.5 Image fit */
.focus_page .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 3.6 Caption info */
.focus_page .card-info {
  text-align: center;
  margin: 0.5rem;
  max-width: var(--thumb-size-focus * 1.5);
  margin-bottom: 1rem;

}

.focus_page .card-info .title {
  font-weight: bold;
}

.focus_page .card-info .date,
.focus_page .card-info .place {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.4rem;
}



/* ------- Speakers ------------------------------ */
.black_bkg{
    background-color: black; 
}

.white_bkg{
    background-color: white; 
}

.speakers_page .event_logo img{
    width: 10rem;
    height: auto;
    margin-right:2rem;
    display: inline-block;
}

.speakers_page .speaking_event_link{
    margin-right: 2rem;
    width: 12rem;
}

.speakers_page .speaking_event_link a{
    text-decoration: none;
}

.speakers_page .controls button a{
    text-decoration: none;
    color: white;
}

.speakers_event_item{
    display: flex;
    margin: 0.7rem;
    margin-top: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.speakers_page .event_list{
    max-width: 65%;
}

/* --- Upcoming ------------------------------------------------------------------ */

.upcoming_page {
    margin-bottom: 4rem;
}

.upcoming_hero h1, .upcoming_hero h3 {
    margin-bottom: 2.5rem;
}


.upcoming_event_item{
    display: flex;
    margin: 0.7rem;
    margin-top: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.upcoming_page .event_logo img{
    width: 10rem;
    max-height: 12rem;
    height: auto;
    margin-right:2rem;
}

.upcoming_page .upcoming_event_link{
    width: 15rem;
    margin-right: 2rem;
}

.upcoming_page .upcoming_event_link a{
    text-decoration: none;
}


.upcoming_event_desc{
    max-width: 35rem;
}

.upcoming_page .event_list{
    max-width: 95%;
}

/* --- Learn ------------------------------------------------------------------ */

.web_explained {
    padding: 1.75rem;
}

.learn_container{
   max-width: 85%;
}

/* --- articel ------------------------------------------------------------------ */

.article_container{
    max-width: 60%;
    min-height: 100vh;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.article_list h1{
    margin: 2rem;
    text-align: center;
}

.article_list img{
    max-width: 90%;
    height: auto;
    margin: 2rem;
}

.article_list li{
    margin-top: 1rem;
}

/* --- Auth ------------------------------------------------------------------ */

.outer_space{
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth{
    max-width: 500px;
    padding: 20px;
    margin-top: 4rem;
}

.auth_space{
    min-height: 100vh;
}


/* --- Errors ------------------------------------------------------------------ */
.errors_space{
    min-height: 100vh;
}

.errors_container{
    max-width: 500px;
    padding: 20px;
    text-align: center;
}

/* --- Flash Flash ------------------------------------------------------------------ */
/* Container that holds all flash messages */
.flash-container {
  position: fixed;
  top: 3rem;
  left: 3rem;
  right: auto;
  width: 85%;  /* optional cap */
  z-index: 1050;
}


/* Base alert tweaks */
.flash-container .alert {
  margin-bottom: 0.75rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.25rem 1.5rem;
  opacity: 0;
  font-size: medium;
  font-weight: 600;
  transform: translateY(-10px);
  animation: slideIn 0.3s forwards;
}

/* Success variant */
.alert-success {
  background: #e6f4ea;
  border-color: #a3d9a5;
  color: #2a5d34;
}

/* Info variant */
.alert-info {
  background: #e8f1fa;
  border-color: #a8c7e5;
  color: #1b3d5b;
}

/* Warning variant */
.alert-warning {
  background: #fff8e1;
  border-color: #ffecb3;
  color: #665200;
}

/* Danger variant */
.alert-danger {
  background: #fdecea;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Close button tweaks */
.flash-container .btn-close {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Slide-in animation */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auto-dismiss after 5s */
.flash-container .auto-dismiss {
  animation: slideIn 0.3s forwards, fadeOut 0.5s forwards 5s;
}

/* Fade-out animation */
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin: 0;
    padding: 0;
  }
}

.flash-container .alert {
  display: flex;
  align-items: center;       /* center vertically */
  justify-content: flex-start; 
  position: relative;        /* only needed if you still want pos-rel elsewhere */
}

.flash-container .alert p {
  margin: 0;                 /* collapse default paragraph margins */
}

.alert-close {
  margin-left: auto;         /* pushes button to the far right */
  background: transparent;   
  border: none;
  font-size: 1.25rem;        /* size of the “×” */
  line-height: 1;            
  padding: 0.25rem;          
  cursor: pointer;
  color: #333;               /* soften color */
  transition: color 0.2s;
}

.alert-close:hover {
  color: #000;               /* darker on hover */
}



/* ------- Media ------------------------------ */

@media (max-width: 1024px) {

   .upcoming_event_desc{
        max-width: 25rem;
    }
     
}


@media (max-width: 768px) {

    /* --- Small menu --- */
    .logo_links{
        margin-left: 0;
    }

    .logo_links {
        display: none; /* Initially hide the menu */
        position: absolute;
        top: 100%;      /* Position menu below the navbar */
        left: 0;
        width: 100%;
        background-color: #f0f0f0;
        text-align: center;  /* Center align the links */
        z-index: 10;      /* Ensure the menu is above other content */
    }

    .logo_links ul {
        flex-direction: column; /* Stack links vertically */
    }
    
    .logo_links li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #ccc; /* Add a separator between links */
    }

    .navbar-toggle-label {
        display: block; /* Show the label */
      }
    
      /* Target the menu when the checkbox is checked */
      #navbar-toggle:checked + .navbar-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
      }
    
      #navbar-toggle:checked + .navbar-toggle-label span:nth-child(2) {
        opacity: 0; /* Hide the middle line */
      }
    
      #navbar-toggle:checked + .navbar-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
      }
    
      #navbar-toggle:checked ~ .logo_links {
        display: block; /* Show the menu when the checkbox is checked */
    }
    
    /* --- Small menu --- */
    

    .two_calendars{
        flex-direction: column;
    }

    .calendar th, .calendar td {
        padding: 0.9rem;
       
    }
    
    .calendar td a {
        padding: 0.9rem;    
    }

    .your_event_form{
        min-width: 80%;
    }

    /* News styling */
    .news_row {
        flex-direction: column; /* Stack items vertically */
        margin-right: 20px;
        gap: 10px;
    }

    .col-md-6, .col-md-4, .col-md-12 {
        flex: 0 0 100%; /* Full width on smaller screens */
    }

    .rest_of_news{
        flex-direction: column;
    }

    .event_item, .speakers_event_item, .upcoming_event_item{
        flex-direction: column;
    }

    .speakers_page .event_logo img, .speakers_page .speaking_event_link,  
    .upcoming_page .event_logo img, .upcoming_page .upcoming_event_link{
        margin-right:0;
        margin-bottom: 1rem;
        text-align: center;
    }

    .upcoming_page .upcoming_event_desc{
        max-width: 100%;
        text-align: center;
    }
    
    .speakers_page .event_list, .upcoming_page .event_list {
        max-width: 100%;
    }

    .speakers_page .event_logo img, .upcoming_page .event_logo img{
        width: 17rem;
    }

    .news_hero, .speakers_hero, .nextyear_hero, .upcoming_hero{
        margin-left: 1rem;
    }

    .article_container{
        max-width: 90%;
    }

    /* 3.4 Thumbnail container */
    .nextyear_page .thumb {
        margin-top: 1rem;
    }

    .event_item_ext{
        flex-direction: column;
    }

    .focus_page .card{
        max-width: 95%;
        margin-left: 0.5rem;
    }

}

@media (max-width: 480px) {


    .calendar th, .calendar td {
        padding: 0.75rem;
       
    }
    
    .calendar td a {
        padding: 0.75rem;    
    }

}
