body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    padding-top: 70px; /* Fixed header space */
}

/* Responsive header spacing */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 55px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding-top: 50px;
    }
}

html {
    overflow-x: hidden;
}

#bg-video {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    height: 100vh;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.7);
}
/* Гарчиг */
.section-title {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 24px;
  font-weight: bold;
  display: inline-block;
  padding-bottom: 5px;
}
.section-topic {
  text-align: center;
  margin: 40px 274px 20px;
  font-size: 24px;
  font-weight: bold;
  display: inline-block;
  padding-bottom: 5px;
}
.black-line {
  border: none;
  height: 2px;          /* зураасын өндөр */
  background-color: black;
  margin: 20px 0;        /* дээр доорх зай */
}


/* Container: Responsive Grid */
.goals-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Зураг бүр */
.goal-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* квадрат */
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
}

/* Зураг */
.goal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
  display: block;
}

/* Текст - анх харагдахгүй */
.goal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Hover үед зураг бүдэгрэх, текст ил гарах */
.goal-item:hover img {
  filter: brightness(50%) blur(1px);
  transform: scale(1.05);
}

.goal-item:hover .goal-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* Гар утас - багана 2 болж багасна */
@media screen and (max-width: 600px) {
  .goals-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 18px;
  }

  .goal-text {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* Topic Container - Larger items in 2 rows of 3 */
.topic-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topic {
  display: contents;
}

.topic-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.topic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
  display: block;
}

.topic-item a {
  text-decoration: none;
  color: inherit;
}

.topic-item .goal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.topic-item:hover img {
  filter: brightness(50%) blur(1px);
  transform: scale(1.05);
}

.topic-item:hover .goal-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* Mobile responsive for topic container */
@media screen and (max-width: 768px) {
  .topic-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 15px;
  }
}

@media screen and (max-width: 480px) {
  .topic-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  
  .topic-item {
    aspect-ratio: 16 / 9;
  }
  
  .topic-item .goal-text {
    font-size: 12px;
    padding: 5px 8px;
  }
}

header {
    background-color: rgba(44, 62, 80, 0.85);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 15px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    justify-content: center;
}

/* Search Container Styles */
.search-container {
    position: relative;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.search-form:hover,
.search-form:focus-within {
    background: rgba(255, 255, 255, 0.2);
}

.search-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form input:focus {
    width: 250px;
}

.search-form button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-form button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 300px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    display: none;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover,
.search-result-item.active {
    background-color: #f8f9fa;
}

.search-result-item.active {
    border-left: 3px solid #3498db;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4px;
}

.search-result-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.search-result-type {
    display: inline-block;
    padding: 2px 6px;
    background: #e74c3c;
    color: white;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-see-all {
    padding: 12px 16px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.search-see-all a {
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.search-see-all a:hover {
    color: #2980b9;
}
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #3498db;
}

.nav-item {
    position: relative;
    padding: 0 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
    user-select: none;
}
.nav-item:hover {
    background-color: #34495e;
}
.nav-item > span {
    display: flex;
    align-items: center;
    
    
}
.nav-item > span::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}
.nav-item.open > span::after {
    transform: rotate(180deg);
}
.dropdown {
    display: none;
    position: absolute;
    top: 50px; /* reduced from 60px to reduce gap */
    left: 0;
    background-color: #34495e;
    min-width: 220px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1001;
    flex-direction: column;
}
.dropdown a {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    white-space: normal;
}
.dropdown a:hover {
    background-color: #3d566e;
}
.nav-item.open .dropdown {
    display: flex;
}
.nav-single {
    padding: 0 15px;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.nav-single:hover,
.nav-single:focus,
.nav-single.active {
    border-bottom: 2px solid #2980b9; /* blue underline */
}
main.content {
    padding: 210px 80px 20px 80px;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    text-transform: uppercase;
    line-height: 1.3;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Add hover styles for dropdown */
.nav-item:hover .dropdown,
.nav-item.open .dropdown {
    display: flex !important;
}
.nav-item > span::after {
    pointer-events: none;
}

/* News Section Styles */
.news-section {
    background-color: white;
    padding: 210px 80px 20px 80px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.news-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.see-all-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-all-link:hover {
    color: #1f5f8b;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-article {
    position: relative;
}

.featured-article img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px 30px 30px;
    border-radius: 0 0 8px 8px;
}

.featured-content h3 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: white;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.article-date {
    font-weight: bold;
}

.article-category {
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-item-content h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #2c3e50;
}

.news-item-content .article-meta {
    margin-top: 8px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .featured-content h3 {
        font-size: 22px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
        height: 200px;
    }
    
    main.content {
        padding: 210px 20px 20px 20px;
        max-width: none;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-links {
        flex-direction: column;
    }
    .footer-left, .footer-column, .footer-social {
        min-width: 100%;
    }
    .footer-left {
        flex-direction: row;
        gap: 10px;
    }
}

.section-header {
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    font-size: 20px;
    color: #000;
}

/* Mobile Responsive Nav Menu */
@media screen and (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 15px;
    }

    .logo {
        height: 60px !important;
        left: 15px !important;
        top: 5px !important;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

   
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .nav-item, .nav-single {
        width: 100%;
        padding: 18px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-sizing: border-box;
        font-size: 17px;
        background: none;
    }
    .nav-item:last-child, .nav-single:last-child {
        border-bottom: none;
    }
    .dropdown {
        position: static;
        background-color: #2c3e50;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    .nav-item.open .dropdown {
        max-height: 400px;
        transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
    }
    .dropdown a {
        padding: 15px 38px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: none;
    }
    .search-container {
        width: 100%;
        padding: 18px 24px;
        background-color: rgba(44, 62, 80, 0.98);
        box-sizing: border-box;
    }
    .search-form {
        width: 100%;
    }
    .search-form input {
        width: calc(100% - 50px);
    }
}

@media screen and (max-width: 480px) {
    header {
        height: 60px;
        padding: 0 6px;
    }
    .logo {
        height: 44px !important;
        left: 8px !important;
    }
    .nav-item, .nav-single {
        padding: 13px 10px;
        font-size: 15px;
    }
    .dropdown a {
        padding: 11px 22px;
        font-size: 14px;
    }
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* --- NEW MOBILE MENU STYLES --- */
@media (max-width: 900px) {
  .mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100vw;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(44,62,80,0.98);
    box-shadow: -4px 0 24px rgba(0,0,0,0.25);
    z-index: 2001;
    padding: 80px 24px 24px 24px;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }
  .mobile-menu.active {
    display: flex !important;
    right: 0;
    z-index: 2001;
  }
  .mobile-menu .nav-item, .mobile-menu .nav-single {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 18px;
    color: #fff;
    background: none;
  }
  .mobile-menu .dropdown {
    background: #2c3e50;
    margin-top: 6px;
    border-radius: 6px;
    box-shadow: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .mobile-menu .nav-item.open .dropdown {
    max-height: 400px;
  }
  .mobile-menu .dropdown a {
    padding: 12px 18px;
    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: block;
  }
  .mobile-menu .dropdown a:last-child {
    border-bottom: none;
  }
  .mobile-menu .search-container {
    display: block !important;
    width: 100%;
    margin: 24px 0 0 0;
    background: none;
    padding: 0;
  }
  .mobile-menu .search-form {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
  }
  .mobile-menu .search-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 10px;
    font-size: 15px;
    outline: none;
    width: 100%;
  }
  .mobile-menu .search-form button {
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-backdrop {
    display: none;
    z-index: 2000;
  }
  .mobile-menu.active ~ .mobile-menu-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    animation: fadeIn 0.3s;
  }
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle, .mobile-menu, .mobile-menu-backdrop {
    display: none !important;
  }
  .nav-menu, .search-container {
    display: flex !important;
  }
}
