/*
Theme Name: Online Exam
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Theme đơn giản và hiện đại cho hệ thống thi online. Phù hợp với plugin Thi Online System.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: online-exam-system
Tags: education, exam, online-test, simple, modern
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.entry-title {
  display: none;
}
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}
/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
  position: relative;
  background: #1a4d7a;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Background với grid pattern (blueprint style) */
.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a4d7a;
  opacity: 1;
  z-index: 0;
}

.header-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(100, 150, 200, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 150, 200, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  position: relative;
  z-index: 1;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Logo Section */
.header-logo-section {
  flex-shrink: 0;
}

.header-logo-link {
  display: block;
  text-decoration: none;
}

.header-logo {
  height: 100px;
  width: auto;
  display: block;
}

/* Company Info Section */
.header-company-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.parent-company-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.main-company-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.company-name-vn {
  font-size: 20px;
  font-weight: 700;
  color: #ffd700;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.company-name-en {
  font-size: 16px;
  font-weight: 500;
  color: #87ceeb;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

/* Contact Buttons */
.header-contact-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 12px;
  font-size: 13px;
  color: #87ceeb;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: auto;
  overflow: hidden;
  position: relative;
  /* Gradient/Glossy effect */
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.25) 0%, rgba(135, 206, 235, 0.15) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-button-icon-circle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-button-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.contact-button-icon .icon-svg {
  width: 18px;
  height: 18px;
  color: #fff;
  fill: currentColor;
}

.contact-button-text {
  flex: 1;
  line-height: 1.4;
  padding: 10px 10px 10px 0;
  font-weight: 500;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  min-height: calc(100vh - 200px);
}

.content-area {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.exam-pagination {
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.exam-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.exam-pagination .page-numbers:hover {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.exam-pagination .page-numbers.current {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
  font-weight: 600;
  cursor: default;
}

.exam-pagination .page-numbers.current:hover {
  background: #2271b1;
  color: #fff;
}

.exam-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
  padding: 8px 4px;
}

.exam-pagination .page-numbers.dots:hover {
  background: transparent;
  color: #333;
}

.exam-pagination .page-numbers.prev,
.exam-pagination .page-numbers.next {
  font-weight: 500;
  padding: 8px 16px;
}

.exam-pagination .page-numbers.prev:hover,
.exam-pagination .page-numbers.next:hover {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
  position: relative;
  background: #3698f7;
  color: #fff;
  padding: 40px 0 16px;
  margin-top: 40px;
  overflow: hidden;
}

/* Background với các chấm trắng (bokeh effect) */
.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a4d7a;
  opacity: 1;
  z-index: 0;
}

.footer-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px),
    radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 200px 200px, 150px 150px, 100px 100px, 180px 180px, 120px 120px, 90px 90px;
  background-position: 0 0, 50px 50px, 100px 100px, 150px 150px, 200px 200px, 250px 250px;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 28px;
}

.footer-column {
  position: relative;
}

/* Logo Section */
.footer-logo-section {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.logo-image {
  width: auto;
  height: 100px;
  display: block;
  background-color: #fff;
}

.company-name {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #fff;
}

.icon-svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #fff;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-item a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.contact-item a:hover {
  opacity: 0.8;
}

/* Footer Titles */
.footer-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

/* Links */
.footer-link-list,
.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list li,
.footer-legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.link-arrow {
  color: #ccc;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-link-list a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-link-list a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-legal-list li span:last-child {
  color: #fff;
}

/* Copyright */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #fff;
}

.footer-copyright p {
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .header-content {
    gap: 20px;
  }

  .header-logo {
    height: 80px;
  }

  .company-name-vn {
    font-size: 18px;
  }

  .company-name-en {
    font-size: 14px;
  }

  .header-contact-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .contact-button {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 16px 16px;
  }
  .footer-container {
    padding: 0 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    align-items: center;
  }

  .header-logo {
    height: 60px;
  }

  .parent-company-name {
    font-size: 12px;
  }

  .company-name-vn {
    font-size: 16px;
  }

  .company-name-en {
    font-size: 12px;
  }

  .contact-button {
    font-size: 12px;
  }

  .contact-button-icon {
    width: 18px;
    height: 18px;
  }

  .contact-button-icon .icon-svg {
    width: 18px;
    height: 18px;
  }

  .site-main {
    margin: 20px auto;
    padding: 0 15px;
  }

  .content-area {
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .site-footer {
    padding: 40px 0 15px;
  }

  .footer-content {
    gap: 25px;
  }

  .footer-title {
    font-size: 16px;
  }

  .contact-item,
  .footer-link-list li,
  .footer-legal-list li {
    font-size: 13px;
  }

  .exam-pagination .page-numbers {
    padding: 6px 10px;
    margin: 0 2px;
    font-size: 14px;
    min-width: 36px;
  }

  .exam-pagination .page-numbers.prev,
  .exam-pagination .page-numbers.next {
    padding: 6px 12px;
    font-size: 14px;
  }
}
