:root {
    --cream-color: #c2d2db; /*deadline background color and topics default color c2d2db*/
    --light-color: #e7ecf0; /*the light colour used in text sections, like keynotes, photos etc*/
    --dark-cream-color: #a3bde1;/*color when hovering accordeon*/

    --tan-color: #30445d;   /*Dark color for text Headers and top menu*/
    --gold-color: #7999bd;  /*lighter color than the previous, but dark enough to support both white and black letters*/

    --light-bg: #f8f9fa;    /*menu text color- almost white*/
    --dark-bg: #243243;     /*menu hover color*/
    
    --text-color: #333;
}
/* Add side padding and max width to all section containers */

.soft-section,
.light-section, .container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;   /*changes in all text, the distance between 2 lines*/
    color: var(--text-color);
    padding-top: 56px; /* Reduced from 76px to match navbar height */
    /* background-color: var(--cream-color);*/
    width: 100%;
    overflow-x: hidden;
    font-size: 1rem; /*changes almost all text sizes*/
}



/* Gallery Toggle Button in index.php */
.gallery-toggle-btn {
    background: transparent;
    border: none;
    color: var(--tan-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .gallery-toggle-btn:hover {
    color: var(--gold-color);
    transform: scale(1.05);
  }


/*Main picture in all pages*/
/* Header with original image*/
#header-photo {
    background-image: url('../images/iceland1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 300px; /* Adjust this value as needed */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Center text vertically */
    padding-bottom: 2rem;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    width: 100%;
}

#header-photo h1, #header-photo h2 {
    position: relative;
    z-index: 2;
    color: white; /* Ensure all text is white */
}
/* Gamesec 2025 inside the picture */
#logo-text a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
/* Slogans below Gamesec 2025 : Conference on Game theory... */
#slogan {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
#slogan2 {
    font-size: 1.2rem;
    font-weight: 600; /* Increased from 400 to 600 for bolder text */
    opacity: 1; /* Changed from 0.9 to 1 for full opacity */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}


/* The headers have Tan color*/
h1, h2, h3 {
    color: var(--tan-color);
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 500;
}



/* How links appear */
a {
    color: var(--tan-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--gold-color);
    text-decoration: none;
}

/* Lists (like in sponsors.php)
<ul>
<li>• Sponsors </li>
<li>• Opportunity</li>
</ul>
it doesn't add automatically bullets and adds an indend on the left*/
ul {
    list-style-type: none;
    padding-left: 0;
}
ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Tables */
th, td {
    padding: 0.75rem;   /* Increased padding (=bigger cells) */
}
/* Table header styling */
th {
    background-color: var(--gold-color);
    color: white;
    font-weight: 600;
}


/* Footer adjustments, don't know where the rest are */
.footer {
    padding: 0.9rem 0rem 0rem 0rem !important; /* reduce bottom padding to 0rem */
}



/* Utility Classes */
/*these get used as: <h1 class="text-primary">...</h1> and we ask they are of specific color*/
.text-primary {
    color: var(--tan-color) !important;
}

.text-secondary {
    color: var(--gold-color) !important;
}


/* new addition */
/* 1. Universal section layout for centered, max-width content */
/*this is used for keynotes*/
.section-wrapper {
    max-width: 960px !important;
    margin: 0 auto;
    padding: 1.5rem;
}

/* 3. Subtle section with light background (optional use) */
.light-section {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1rem !important;
    margin-bottom: 1rem;
}



/* Deadlines Section !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
/* Deadlines Section */
.deadlines-section {
    padding: 1rem 0 0rem 0; /* reduce bottom padding to 0rem */
    margin-bottom: 1rem; /*from the following text*/
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* subtle shadow on the bottom*/
}

/* Individual Deadline Items transition settings, for smoothe transitions */
.deadline-item {
    transition: transform 0.3s ease;
}
.deadline-item:hover {
    transform: translateY(-3px);
}
/*deadline titles like submission, decision...*/
.deadline-item h3 {
    margin-bottom: 0.3rem;
    font-weight: 700;
}
/*deadline dates like June 30, 2025*/
.deadline-item p {
    font-size: 1.1rem;
}
/* Background color for deadlines section! */
.cream-bg {
    background-color: var(--cream-color);
}
/* Deadlines Section End!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/


/* FOR THE TOPICS ACCORDION!!!!!!!!! */
/* Container */
.accordion-container {
    margin: 2rem auto;
    padding: 0 0.5rem;
  }
  
  /* Accordion button */
  .accordion-button {
    width: 100%;
    background-color:var(--cream-color) !important;
    border: none;
    border-bottom: 2px solid black;
    padding: 0.75rem 1rem;
    font-size: 1.1rem; 
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 1rem; /* spacing between icon and text */
  }
  
  .accordion-button:hover {
    background-color: var(--dark-cream-color)!important;
  }
  
  /* Icon rotation */
  .accordion-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
  }
  
  .accordion-button.open svg {
    transform: rotate(180deg);
  }
  
  /* Accordion content */
  .accordion-content {
    background-color:  var(--light-color);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    display: none;
    border-radius: 0 0 0.75rem 0.75rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 2px solid black;
  }
  
  /* Active content */
  .accordion-content.show {
    display: block;
  }
  
  /* List style */
  .accordion-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
  }
  
  .accordion-content li {
    margin-bottom: 0.5rem;
  }
/* END OF THE TOPICS ACCORDION!!!!!!!!! */




  /* TOP MENU !!!!!!*/
  /* Custom dropdown menu  for the HEADER MENU!*/
  /* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--tan-color) !important;
    width: 100%;
    padding: 0.2rem 0.2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem; /* menu size*/ 
    color: white !important;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem; /* Increased from default */
    transition: color 0.3s ease;
    color: white !important;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--cream-color) !important;
}

.dropdown-menu {
    background-color: var(--tan-color); /* or any hex color like #fffbe6 */
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    font-size: 1rem; /* Increased from default */
    padding: 0.2rem 0.2rem;

  }
  .dropdown-menu li {
    margin: 0;
    padding: 0;
  }
  
  /* Custom dropdown links */
  .dropdown-menu .dropdown-item {
    font-weight: 500;
    font-size: 500;
    padding: 0.2rem 0.5rem;
    color: var(--light-bg);
    transition: background-color 0.2s ease;
  }
  
  .dropdown-menu .dropdown-item:hover {
    background-color: var(--dark-bg); /* or any highlight color */
    color: var(--light-bg);
    border-radius: 0.4rem;
  }
  /* TOP MENU ENDS HERE !!!!!*/