/* ==========================================================================
   normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
   ========================================================================== */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}


/* ==========================================================================
   Owl Carousel Theme Overrides (White & Blue Minimalist)
   ========================================================================== */

.owl-theme .owl-dots,
.owl-theme .owl-nav {
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.owl-theme .owl-nav {
  margin-top: 10px;
}

.owl-theme .owl-nav [class*=owl-] {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0.25rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-blue-dark);
  display: inline-block;
  cursor: pointer;
  border-radius: 0.35rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.owl-theme .owl-nav [class*=owl-]:hover {
  background: var(--color-blue-light);
  color: #ffffff;
  text-decoration: none;
}

.owl-theme .owl-nav .disabled {
  opacity: 0.5;
  cursor: default;
}

.owl-theme .owl-nav.disabled + .owl-dots {
  margin-top: 10px;
}

.owl-theme .owl-dots .owl-dot {
  display: inline-block;
  zoom: 1;
  margin: 0 0.25rem;
}

.owl-theme .owl-dots .owl-dot span {
  width: 0.75rem;
  height: 0.75rem;
  margin: 0.4rem 0.5rem;
  background: var(--color-gray-medium);
  display: block;
  -webkit-backface-visibility: visible;
  transition: background 0.3s ease, opacity 0.2s ease;
  border-radius: 50%;
  opacity: 0.8;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--color-blue-dark);
  opacity: 1;
}


/* ==========================================================================
   Custom Styles (White & Blue Theme, Minimalist, Responsive)
   ========================================================================== */

/* 1. Color Variables & Base Typography */
:root {
  --color-blue-dark: #0056b3;
  --color-blue-light: #017bff;
  --color-gray-light: #f8f9fa;
  --color-gray-medium: #e0e0e0;
  --color-gray-dark: #555555;
  --color-white: #ffffff;
  --color-text: #333333;
  --bg-color: #ffffff;
  --font-primary: 'Vazirmatn', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--bg-color);
  text-align: right;
}

/* 2. Links & Text Elements */
a {
  color: var(--color-blue-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--color-blue-light);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-blue-dark);
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #444444;
}

/* 3. Layout Helpers & Containers */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Flex Utility */
.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-row {
  flex-direction: row !important;
}

/* 4. Header / Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  box-shadow: none;
}

header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-white);
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-medium);
}

header .navbar-brand {
  color: var(--color-blue-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.35rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-blue-light);
  background-color: var(--color-gray-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 5px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.navbar.scroll {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--color-white);
  z-index: 999;
}

/* 5. Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--color-gray-light);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* 6. Main Content & Section Headers */
main {
  margin-top: 80px; /* height of header */
}

.main-content {
  padding: 2rem 1rem;
  min-height: 70vh;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-blue-dark);
  font-size: 2rem;
  font-weight: 600;
}

/* 7. Hero Section */
.hero {
  margin-top: 10px;
  position: relative;
}

.slider {
  height: 600px;
  overflow: hidden;
  position: relative;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s;
}

.slider img.active {
  opacity: 1;
}

.countdown {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: auto;
  min-width: 300px;
}

.countdown h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--color-blue-dark);
}

#timer {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: center;
}

#timer div {
  text-align: center;
  background: rgba(0, 86, 179, 0.1);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  min-width: 80px;
}

#timer span {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-blue-dark);
  display: block;
  margin-bottom: 0.3rem;
  text-align: center;
}

/* 8. Categories Section */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 5rem 2rem;
  background: var(--color-gray-light);
}

.category-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.category-card h3 {
  padding: 1.5rem 1.5rem 1rem;
  color: var(--color-text);
  font-size: 1.25rem;
}

.category-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-gray-dark);
}

/* 9. About Section */
.about {
  padding: 5rem 2rem;
  text-align: right;
  background: var(--color-white);
}

.about h2 {
  color: var(--color-blue-dark);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  color: #444444;
}

.schedule-img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Extra spacing between header and about */
.about-hero {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem;
}

/* 10. Activities Section */
.activities {
  padding: 5rem 2rem;
  background: var(--color-gray-light);
}

.activities h2 {
  text-align: center;
  color: var(--color-blue-dark);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.activity-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.activity-card h3 {
  color: var(--color-blue-dark);
  margin-bottom: 1rem;
}

/* 11. Upcoming Events Section */
.upcoming-events {
  padding: 5rem 2rem;
  background: var(--color-white);
}

.upcoming-events h2 {
  text-align: center;
  color: var(--color-blue-dark);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.event-list {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-item h3 {
  color: var(--color-blue-dark);
  margin-bottom: 1rem;
}

/* 12. Register Form Section */
.register {
  padding: 5rem 2rem;
  background: var(--color-gray-light);
}

.register h2 {
  text-align: center;
  color: var(--color-blue-dark);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.register-form {
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.register-form input,
.register-form select {
  padding: 1rem;
  border: 2px solid var(--color-gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.register-form input:focus,
.register-form select:focus {
  border-color: var(--color-blue-dark);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.register-form button {
  background: var(--color-blue-dark);
  color: var(--color-white);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.register-form button:hover {
  background: var(--color-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* 13. Sponsors Section */
.sponsors {
  padding: 5rem 2rem;
  background: var(--color-white);
}

.sponsors h2 {
  text-align: center;
  color: var(--color-blue-dark);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.sponsors-grid {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.sponsor-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sponsor-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* 14. Footer */
footer {
  background: var(--color-blue-dark);
  color: var(--color-white);
  padding: 5rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--color-blue-light);
}

.contact-info p {
  margin-bottom: 1rem;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-link {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  color: var(--color-blue-light);
}

.footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Footer Layout */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* 15. Miscellaneous Responsive Tweaks */

@media (max-width: 768px) {
  #timer {
    gap: 0.8rem;
  }

  .countdown {
    width: 90%;
    padding: 1.5rem;
  }

  .slider {
    height: 400px;
  }

  #timer div {
    min-width: 60px;
    padding: 0.6rem 0.8rem;
  }

  #timer span {
    font-size: 1.5rem;
  }
}

img.img-fluid {
  max-width: 100%;
  height: auto;
}

.text-center {
  text-align: center !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.hidden {
  display: none !important;
}
