/*
Theme Name: Daynamic Web Site
Theme URI: https://example.com/daynamic-web-site
Author: Md. Zosim Uddin
Author URI: https://example.com
Description: A dynamic and responsive school website theme for WordPress.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dws
Tags: custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* Remove default browser margin/padding */
body, html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}
/*=== Container ===*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/*=== Site Main ===*/
.site-main {
  max-width: 100%;
  overflow-x: auto;
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #007bff;
  padding: 10px 20px;
  box-sizing: border-box;
  color: #fff;
  margin-bottom: 0;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-title img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
}

/* ===================== */
/* Desktop Menu Styles */
/* ===================== */

.main-menu {
  /* no styles needed here */
}

.main-menu ul.menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 5px;
}

.main-menu ul.menu li {
  position: relative;
}

.main-menu ul.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  display: block;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 15px;
}

.main-menu ul.menu li a:hover {
  background-color: #0056b3;
}

.main-menu ul.menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #007bff;
  display: none;
  min-width: 150px;
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 0 0 4px 4px;
}

.main-menu ul.menu li:hover > ul {
  display: block;
}

.main-menu ul.menu li ul li a {
  padding: 8px 12px;
  font-weight: normal;
  white-space: nowrap;
}

/* ===================== */
/* Mobile Menu Styles */
/* ===================== */

/* ===================== */
/* Desktop: মোবাইল মেনু বাটন লুকানো থাকবে */
/* ===================== */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===================== */
/* মোবাইলে স্টাইল */
/* ===================== */
@media (max-width: 768px) {
  .titlebar {
    flex-direction: column;
    align-items: flex-start;
    position: relative; /* হ্যামবার্গার আইকন পজিশনিংয়ের জন্য */
  }

  /* হ্যামবার্গার আইকন */
  .mobile-menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 9999;
  }

  /* মেনু লুকিয়ে রাখবো মোবাইলে */
  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #007bff;
    padding: 10px 0;
  }

  /* মেনু visible হলে দেখাবে */
  .main-menu.show {
    display: flex;
  }

  .main-menu ul.menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-menu ul.menu li {
    margin: 0;
    width: 100%;
  }

  .main-menu ul.menu li a {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* সাবমেনু ডিফল্ট লুকানো */
  .main-menu ul.menu li.menu-item-has-children > ul {
    display: none;
    padding-left: 20px;
  }

  /* সাবমেনু খোলা হলে দেখাবে */
  .main-menu ul.menu li.menu-item-has-children.open > ul {
    display: block;
  }

  /* সাবমেনুর পাশে arrow আইকন */
  .main-menu ul.menu li.menu-item-has-children > a::after {
    content: "\f107"; /* Font Awesome down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    padding-left: 10px;
  }
}

/* ===================== */
/* Home Icon Only */
/* ===================== */
.menu li.home-icon a {
  position: relative;
  padding-left: 25px;
  display: flex;
  align-items: center;
}

/* হোম আইকন দেখাবে শুধুমাত্র */
.menu li.home-icon a::before {
  content: "\f015"; /* Font Awesome home icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-0%);
  color: #ffffff; /* সাদা রং */
  font-size: 16px;
  line-height: 1;
}

/* হোম টেক্সট লুকিয়ে দিবে */
.menu li.home-icon a .menu-icon-text {
  display: none;
}

/* হোভার এ আইকনের কালার পরিবর্তন */
.menu li.home-icon a:hover::before {
  color: #ffc107; /* গোল্ডেন ইয়েলো */
}




/* css fix
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* এটা মোবাইল ভিউর জন্য সহায়ক */
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.custom-logo-link img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}


/* Ensure body and html have no margin or padding */
body, html {
    margin: 0;
    padding: 0;
}


/*=== Table Styles ===*/
.wp-list-table,
.student-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.wp-list-table th, .wp-list-table td,
.student-table th, .student-table td {
  padding: 10px 12px;
  border: 1px solid #ccc;
  text-align: left;
  word-wrap: break-word;
}

.wp-list-table th {
  background-color: #0073aa;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #005177;
  transition: background-color 0.3s ease;
}

.wp-list-table th:hover {
  background-color: #005177;
}

/*=== Student Table Specific ===*/
.student-table th.roll, .student-table td:nth-child(1) { width: 10%; }
.student-table th.name, .student-table td:nth-child(2) { width: 70%; }
.student-table th.gender, .student-table td:nth-child(3) { width: 20%; }

.student-table th {
  background-color: #e91e63;
  color: #fff;
}

.student-table tbody tr:nth-child(odd) { background-color: #fff0f6; }
.student-table tbody tr:nth-child(even) { background-color: #fdeef4; }
.student-table tbody tr:hover { background-color: #fce4ec; }

/*=== Menu Hover ===*/
.main-menu ul li a:hover {
  background-color: #ff00ff !important;
  color: #ffffff !important;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/*=== Layout Sections ===*/
.home-sections-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: flex-start;
  flex-wrap: nowrap; /* nowrap করলাম যাতে দুই ভাগ পাশে থাকে */
}

.left-section {
  flex: 0 0 900px; /* ফিক্সড 900px */
  max-width: 900px;
  box-sizing: border-box;
}

.right-section {
  flex: 0 0 300px; /* ফিক্সড 300px */
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/*=== Notice, Headmaster Message, Important Links, Calendar Widget ===*/
.notice-board,
.headmaster-message,
.important-links,
.calendar-widget {
  background-color: #f9f9f9;
  border-left: 5px solid #ff00ff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(255, 0, 255, 0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 30px;
}

.notice-board h3,
.headmaster-message h3,
.important-links h3,
.calendar-widget h3 {
  color: #ff00ff;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 2px solid #ff00ff;
  padding-bottom: 5px;
}

.notice-board ul,
.important-links ul {
  list-style: disc inside;
  padding-left: 0;
}

.notice-board li,
.important-links li {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.notice-board a,
.important-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.notice-board a:hover,
.important-links a:hover {
  color: #ff00ff;
  text-decoration: underline;
}

/* ============================
   Single Teacher Page Styles
============================= */

.teacher-single-wrapper {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 12px;
  font-family: 'Noto Sans Bengali', sans-serif;
}

.teacher-profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.teacher-photo img {
  width: 250px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.teacher-info-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.teacher-field {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 8px;
}

.teacher-field .label {
  font-weight: bold;
  color: #333;
}

.teacher-field .value {
  display: block;
  margin-top: 5px;
  color: #555;
}



/*=== Services Section ===*/
.services-section,
.service-box-wrapper {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 20px;
  background: #f9f9f9;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.services-section h2,
.service-box-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

/*=== Services Grid ===*/
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/*=== Service Box ===*/
.service-category-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  box-sizing: border-box;
  height: 100%;
}

.service-box:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-box img.service-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.service-content h3 {
  margin: 0;
  font-size: 18px;
  color: #2980b9;
}

.service-content p {
  font-size: 14px;
  margin: 5px 0;
  color: #555;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 768px) {
    .service-category-box {
        width: 100% !important;
    }
}


/*=== Responsive ===*/
@media (max-width: 768px) {
  .home-sections-wrapper {
    flex-direction: column;
  }
  .left-section,
  .right-section {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .right-section {
    margin-top: 30px;
  }
  .main-menu ul {
    flex-direction: column;
  }
  .main-menu ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }
}

/*footer aria*/

#footer {
    background: #0a3d62;
    color: #fff;
    padding: 40px 0 0;
    font-size: 15px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
}

.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #1abc9c;
    padding-bottom: 5px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-widget ul li a:hover {
    color: #1abc9c;
    text-decoration: underline;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.fb-page-container {
    margin-bottom: 15px;
}

.yt-button {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.yt-button:hover {
    background: #c0392b;
}

.footer-bottom {
    background: #062840;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 14px;
    border-top: 1px solid #1abc9c44;
}

.services-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.single-service {
    background: #f4f9ff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.single-service:hover {
    background: #e0f0ff;
    transform: translateY(-4px);
}
.service-thumb img {
    width: 100%;
    border-radius: 8px;
}
.service-title {
    font-size: 20px;
    margin: 15px 0 10px;
    color: #075985;
}
.service-content {
    font-size: 15px;
    color: #333;
}

.home-sections-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.left-section {
  flex: 3;
}

.right-section {
  flex: 1;
}

.service-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px; /* উল্লম্ব ও অনুভূমিক গ্যাপ */
    align-items: start;
}

.service-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.service-fields input,
.service-fields textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 14px;
}

/* যদি Address textarea বড় হবে, তাহলে তাকে পুরো দুই কলাম জুড়ে দিতে চাইলে */
.service-fields textarea {
    resize: vertical;
}

/* Address textarea পুরো দুই কলাম জুড়ে */
.service-fields .full-width {
    grid-column: span 2;
}

/*class routin*/
.routine-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-sizing: border-box;
}

/*Calender wideget*/
.calendar-widget {
    background: #f7f7f7;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.calendar-widget h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.service-category-box {
  margin-bottom: 40px;
}
.service-category-box h3 {
  font-size: 20px;
  color: #2980b9;
  margin-bottom: 15px;
}
.service-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.service-image img {
  width: 120px;
  height: auto;
  border-radius: 5px;
}
.service-links {
  flex: 1 1 300px;
}
.service-links ul {
  list-style: disc inside;
  margin: 0;
  padding-left: 10px;
}
.service-links ul li {
  margin-bottom: 6px;
}
.service-image img {
  max-width: 120px;
  height: auto;
  border-radius: 5px;
  display: block;
}
.service-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}



/* ...footer rest continues... */
