/* ============================================
   📱 RESPONSIVE STYLES FOR ALL PAGES
   Optimized for index, art, culture, innovation, travel
============================================ */

/* ====== Tablet (≤ 992px) ====== */
@media (max-width: 992px) {
  .header-left {
    display: flex;
    align-items: center;
    margin-left: 0px
  }



  /* Header & Navigation */
  .logo {
    font-size: 18px;
    justify-content: flex-start;
  }

  .auth-buttons {
    width: auto;
    justify-content: end;
    gap: 6px;
  }

  nav.navbar {
    display: none; 
  }

  .menu-btn {
    display: block;
    font-size: 20px;
  }

  main {
    padding: 100px 20px;
  }

  .sidebar {
    width: 240px;
  }

  /* Custom Section */
  .custom-section {
    padding: 30px 20px;
  }

  .custom-section .row {
    flex-direction: column;
  }

  .custom-section .col {
    width: 100% !important;
    flex: 1 1 100%;
  }

  .custom-section .row:first-child .col:nth-child(2) {
    flex: 1 1 100%;
  }

  /* Section 2 */
  .section-2 {
    padding: 0 30px;
  }

  .section-2-subsection {
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
  }

  /* Section 3 */
  .section-3 {
    padding: 0 30px;
  }

  .section-3-subsection {
    height: auto !important;
  }

  .section-3-subdiv {
    flex-direction: column;
  }

  .section-3-subdiv div:nth-child(1),
  .section-3-subdiv div:nth-child(2) {
    width: 100% !important;
  }

  .section-3-subdiv img {
    height: auto;
  }

  /* Section 4 */
  .section-4 {
    padding: 30px 30px;
  }

  .section-4-row1 {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .section-4-row1 div:nth-child(1) {
    grid-column: 1 / 5;
  }

  .section-4-row1 div:nth-child(2) {
    grid-column: 1 / 5;
  }

  .section-4-row1 div:nth-child(3) {
    grid-column: 1 / 3;
  }

  .section-4-row1 div:nth-child(4) {
    grid-column: 3 / 5;
  }

  .section-4-row1 div:nth-child(5),
  .section-4-row1 div:nth-child(6),
  .section-4-row1 div:nth-child(7),
  .section-4-row1 div:nth-child(8),
  .section-4-row1 div:nth-child(9) {
    grid-column: span 2;
  }

  /* Section 5 */
  .section-5 {
    padding: 20px 30px;
    height: auto;
  }

  .section-5-list li {
    width: 40%;
    min-width: 250px;
  }

  /* Section 6 */
  .section-6 {
    padding: 20px 30px;
  }

  .section-6-grid-box-subdiv {
    grid-template-columns: 1fr;
    height: auto;
  }

  .section-6-grid-box-subdiv div:nth-child(1) {
    grid-column: 1;
    padding-left: 0;
  }

  .section-6-grid-box-subdiv div:nth-child(2) {
    grid-column: 1;
  }

  .section-6-grid-box-subdiv div:nth-child(2) img {
    height: 250px;
  }

  /* Culture Page */
  .culture-row-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .culture-row-2 .col:nth-child(1) {
    grid-column: 1 / 2 !important;
  }

  .culture-row-2 .col:nth-child(2) {
    grid-column: 2 / 3 !important;
  }

  .culture-row-3-subsection {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .culture-row-4-subdiv {
    grid-template-columns: 1fr !important;
    height: auto;
  }

  .culture-row-5-grid-container div:nth-child(1),
  .culture-row-5-grid-container div:nth-child(2) {
    grid-column: 1 / 5;
  }

  .culture-row-5-grid-container div:nth-child(3),
  .culture-row-5-grid-container div:nth-child(4),
  .culture-row-5-grid-container div:nth-child(5),
  .culture-row-5-grid-container div:nth-child(6) {
    grid-column: span 2;
  }

  /* Travel Page */
  .travel-row {
    grid-template-columns: 1fr;
  }

  .travel-row .col:nth-child(1),
  .travel-row .col:nth-child(2),
  .travel-row .col:nth-child(3) {
    grid-column: 1;
  }

  .travel-content-box p {
    padding-right: 0;
  }

  .travel-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .travel-grid-container-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Art Page */
  .art-row {
    grid-template-columns: 1fr;
  }

  .art-row .col:nth-child(1),
  .art-row .col:nth-child(2),
  .art-row .col:nth-child(3) {
    grid-column: 1 !important;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .language-list {
    padding: 29px 50px;
  }
}

/* ====== Mobile (≤ 768px) ====== */
@media (max-width: 768px) {
  
  /* Header */
  header {
    justify-content: space-between;
    padding: 15px 20px;
  }

  .logo {
    font-size: 16px;
    justify-content: center;
  }

  .nav.navbar {
    display: none !important; 
  }

  .auth-buttons {
    justify-content: center;
    margin-top: 10px;
  }

  .auth-buttons button.Register,
  .auth-buttons button.sign {
    display: none; 
  }

  .auth-icon {
    display: flex; 
  }

  .auth-dropdown.show {
    display: flex;
  }

  .auth-buttons button {
    font-size: 13px;
    padding: 6px 10px;
  }

  .menu-btn {
    font-size: 18px;
  }

  .sidebar {
    width: 220px;
    padding: 15px;
  }

  .sidebar ul li {
    font-size: 0.85rem;
  }

  .submenu li a {
    font-size: 0.75rem;
  }

  main {
    padding: 90px 15px;
  }

  /* Custom Section */
  .custom-section {
    margin: 80px auto 20px;
    padding: 20px 15px;
  }

  .custom-section .col img {
    height: 180px;
  }

  .custom-section .col h3 {
    font-size: 1rem;
  }

  .custom-section .col p {
    font-size: 14px;
  }

  /* Section 2 */
  .section-2 {
    padding: 0 15px;
  }

  .section-2-subsection {
    grid-template-columns: 1fr;
  }

  .section-2-subdiv {
    height: auto;
  }

  /* Section 3 */
  .section-3 {
    padding: 0 15px;
  }

  .section-3-subsection {
    overflow-x: hidden;
  }

  .section-3-subdiv img {
    height: auto !important;
  }

  #sm-box {
    overflow-y: auto;
  }

  /* Section 4 */
  .section-4 {
    padding: 30px 15px;
  }

  .section-4-row1 {
    grid-template-columns: 1fr;
  }

  .section-4-row1 div:nth-child(1),
  .section-4-row1 div:nth-child(2),
  .section-4-row1 div:nth-child(3),
  .section-4-row1 div:nth-child(4),
  .section-4-row1 div:nth-child(5),
  .section-4-row1 div:nth-child(6),
  .section-4-row1 div:nth-child(7),
  .section-4-row1 div:nth-child(8),
  .section-4-row1 div:nth-child(9) {
    grid-column: 1 !important;
  }

  .section-4-row1 div:nth-child(1) h1 {
    font-size: 1.5rem;
  }

  .section-4-row1 div:nth-child(1) p {
    font-size: 16px;
  }

  /* Section 5 */
  .section-5 {
    padding: 20px 15px;
  }

  .section-5-list li {
    width: 60%;
    min-width: 200px;
    height: auto;
  }

  /* Section 6 */
  .section-6 {
    padding: 20px 15px;
  }

  .section-6-grid-box-subdiv div:nth-child(1) h2 {
    font-size: 1.3rem;
  }

  .section-6-grid-box-subdiv div:nth-child(1) p {
    font-size: 14px;
  }

  /* Culture Page */
  .culture-row-2 {
    grid-template-columns: 1fr !important;
  }

  .culture-row-2 .col:nth-child(1),
  .culture-row-2 .col:nth-child(2) {
    grid-column: 1 !important;
  }

  .culture-row-3 {
    height: auto;
  }

  .culture-row-3-subsection {
    grid-template-columns: 1fr !important;
  }

  .culture-row-4-subdiv {
    height: auto;
  }

  .culture-row-4-subdiv > div img {
    height: auto;
  }

  .culture-row-5-grid-container div:nth-child(1),
  .culture-row-5-grid-container div:nth-child(2),
  .culture-row-5-grid-container div:nth-child(3),
  .culture-row-5-grid-container div:nth-child(4),
  .culture-row-5-grid-container div:nth-child(5),
  .culture-row-5-grid-container div:nth-child(6) {
    grid-column: 1 / 5 !important;
  }

  .culture-row-5-grid-container div img {
    height: auto !important;
  }

  .culture-row-5-grid-container div h3 {
    height: auto;
  }

  /* Travel Page */
  .travel-row .col h1 {
    font-size: 28px;
  }

  .travel-content-box h3 {
    font-size: 22px !important;
  }

  .travel-content-box p {
    font-size: 16px !important;
  }

  .travel-grid-container {
    grid-template-columns: 1fr;
  }

  .travel-grid-container div img {
    height: auto;
  }

  .travel-grid-container-2 {
    grid-template-columns: 1fr;
  }

  .travel-row4-content-box h3 {
    height: auto;
  }

  .art-row .col:nth-child(1) {
    height: auto !important;
  }

  .art-row .col:nth-child(1) img {
    height: auto;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-links-section ul {
    flex-direction: column;
    gap: 10px;
  }

  .language-content {
    padding: 25px 15px;
  }
  
  .language-list {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }

   .editor-section  {
    padding: 10px !important;
   }
   .container-Culture{
    padding: 10px !important;
    margin-bottom: 0px !important;
   }

   .Culture-main-div-child-card .Culture-card-link {
    grid-template-columns: 1fr ;
    grid-row: auto auto;
   }
}

/* ====== Small Mobile (≤ 480px) ====== */
@media (max-width: 480px) {
  
  /* Header */
  header {
    flex-direction: row;
    align-items: center;
    padding: 10px;
  }

  .auth-dropdown.show {
    display: flex;
  }

  .logo {
    width: 33%;
    font-size: 12px;
  }

  .menu-btn {
    font-size: 12px;
  }

  .sidebar {
    width: 200px;
  }

  .sidebar ul li {
    font-size: 0.8rem;
  }

  .submenu li a {
    font-size: 0.7rem;
  }

  main {
    padding: 80px 10px;
  }

  /* Custom Section */
  .custom-section {
    padding: 15px 10px;
  }

  .custom-section .col img {
    height: 150px;
  }

  .custom-section .col h3 {
    font-size: 0.9rem;
  }

  .custom-section .col p {
    font-size: 13px;
  }

  /* Section 2 */
  .section-2 {
    padding: 0 10px;
  }

  .section-2 a {
    font-size: 16px;
  }

  /* Section 3 */
  .section-3 {
    padding: 0 10px;
  }

  .section-3-subsection h3 {
    font-size: 1rem;
  }

  /* Section 4 */
  .section-4 {
    padding: 20px 10px;
  }

  .section-4-row1 div:nth-child(1) h1 {
    font-size: 1.3rem;
  }

  .section-4-row1 div:nth-child(1) p {
    font-size: 14px;
  }

  .section-4-row1 div:nth-child(1) button {
    font-size: 14px;
    padding: 8px 15px;
  }

  /* Section 5 */
  .section-5 {
    padding: 15px 10px;
  }

  .section-5-list li {
    width: 80%;
    min-width: 180px;
  }

  /* Section 6 */
  .section-6 {
    padding: 15px 10px;
  }

  .section-6-grid-box-subdiv {
    height: auto;
    padding-bottom: 15px;
  }

  .section-6-grid-box-subdiv div:nth-child(1) h2 {
    font-size: 1.1rem;
  }

  .section-6-grid-box-subdiv div:nth-child(1) p {
    font-size: 13px;
    margin-top: 10px;
  }

  .section-6-grid-box-subdiv div:nth-child(2) img {
    height: 150px;
  }

  /* Travel Page */
  .travel-row .col h1 {
    font-size: 24px;
  }

  .travel-content-box h3 {
    font-size: 18px !important;
    margin: 15px 0;
  }

  .travel-content-box p {
    font-size: 14px !important;
  }

  .travel-row4-content-box h3 {
    font-size: 16px;
    margin-top: 20px;
  }

  .travel-row4-content-box p {
    font-size: 14px;
  }

  /* Culture Page */
  .culture-row-4-contentbox p {
    font-size: 13px;
  }

  /* Footer */
  .language-list {
    padding: 15px;
  }
}

/* ====== Extra Small Mobile (≤ 500px) ====== */
@media (max-width: 500px) {
  .footer-menu {
    flex-direction: column;
    gap: 8px;
  }
  
  .language-list {
    grid-template-columns: 1fr;
  }

  .bbc-footer {
    padding: 30px 15px;
  }
}
