/*==========================================
Theme Name: DWS
Theme URI: https://example.com/dws-theme
Author: Md. Zosim Uddin
Author URI: #
Description: একটি আধুনিক, ক্লিন ও সম্পূর্ণ রেসপনসিভ স্কুল থিম, যা WordPress এর জন্য তৈরি করা হয়েছে।
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zosim
Requires at least: 4.9.6
Requires Php: 6.8.2
Tags: responsive, school, education, clean, customizable
============================================*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

.container, .header, .footer {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: white;
}

.container, .content-wrapper, .home-slider, .main-navbar .container {
    width: 100%;
    max-width: 1200px; /* অথবা তোমার ডিজাইনের সর্বোচ্চ প্রস্থ */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;  /* একটু প্যাডিং দাও */
    padding-right: 15px;
}

@media (max-width: 768px) {
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* overflow রোধে */
        width: 100%;
    }

    .content-wrapper,
    .main-navbar .container,
    .home-slider {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
}


/* Header part */
.site-header {
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
}

.site-header .logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.site-header .school-name {
    flex: 1;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    padding: 10px;
}

/* Contact + Social Icon */
.contact-social {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

/* Mobile Number Style */
.contact-social .phone-number {
    cursor: pointer;
    transition: color 0.3s ease;
    color: white;
}

.contact-social .phone-number:hover {
    color: #007bff; /* Hover color */
}

/* Icon Styles */
.contact-social a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-social a i {
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* WhatsApp Hover */
.contact-social a[href*="wa.me"] i:hover {
    color: #25D366;
}

/* Facebook Hover */
.contact-social a[href*="facebook.com"] i:hover {
    color: #1877F2;
}

@media (max-width: 768px) {
    .site-header .school-name {
        font-size: 18px;  /* মোবাইলে ফন্ট সাইজ কমানো হলো */
        padding: 8px 5px;
    }

    .site-header .logo img {
        width: 50px;
        height: auto;
    }
}


/*=========================================== 
Slider Section 
=============================================*/
.home-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
.home-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-wrapper {
    display: flex;
    animation: slide 12s infinite;
}

.slide {
    min-width: 100%;
    position: relative;
    text-align: center;
}

.slide img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

@keyframes slide {
    0%, 25%   { transform: translateX(0); }
    33%, 58%  { transform: translateX(-100%); }
    66%, 91%  { transform: translateX(-200%); }
    100%      { transform: translateX(0); }
}

/*================
 Responsive slider padding fix
==================*/
@media (max-width: 768px) {
    .home-slider {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/*=========================================== 
Menubar
=============================================*/
.main-navbar {
    background-color: #000;
    padding: 12px 0;
}

.main-navbar .container {
    max-width: 1300px;
    margin: auto;
}

.main-navbar .menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-navbar .menu li {
    position: relative;
}

.main-navbar .menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.main-navbar .menu li a:hover {
    color: #00f;
    background-color: #fff;
    border-radius: 5px;
}

/* Submenu Dropdown */
.main-navbar .menu li ul {
    display: none;
    position: absolute;
    background: #111;
    top: 100%;
    left: 0;
    min-width: 160px;
    z-index: 0 !important;
    padding: 10px 0;
}

.main-navbar .menu li:hover ul {
    display: block;
}

.main-navbar .menu li ul li a {
    padding: 10px 15px;
    display: block;
    color: #fff;
}

/* মেনু টগল বাটন (মোবাইলের জন্য) */
.menu-toggle {
    display: none; /* Desktop এ লুকানো থাকবে */
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* Responsive মোবাইল স্টাইল */
@media (max-width: 768px) {

    /* মেনু টগল বাটন দেখাবে */
    .menu-toggle {
        display: block;
    }

    /* Mobile menu toggle styles */
    .main-navigation {
        display: none;
    }

    .main-navigation.toggled {
        display: block;
    }

    /* মেনু প্রথমে লুকানো থাকবে */
    #primary-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #000;
        padding: 10px 20px;
        border-radius: 5px;
    }

    /* active ক্লাস এলে মেনু দেখাবে */
    #primary-menu.active {
        display: flex;
    }

    /* মেনু লিংক স্টাইল */
    #primary-menu li a {
        color: white;
        padding: 8px 12px;
        display: block;
        text-decoration: none;
        border-radius: 3px;
        transition: background-color 0.3s ease;
    }

    #primary-menu li a:hover {
        background-color: #007bff;
        color: white;
    }

    /* মেনু flex থেকে block এ পরিবর্তন */
    .main-navbar .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navbar .menu li {
        width: 100%;
    }

    /* === সাবমেনু স্টাইল === */
    .main-navbar .menu li ul {
        display: none;
        position: static;
        background: #111;
        padding-left: 15px;
    }

    .main-navbar .menu li ul.active-submenu {
        display: block;
    }
}


/*=========================================== 
Left and Right side
=============================================*/
/* ===========================
   Layout Wrapper
=========================== */
.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff; /* সাদা ব্যাকগ্রাউন্ড */
    align-items: flex-start; /* টপ লেভেলে রাখে */
    max-width: 1500px; /* ফুল উইডথ আটকাবে */
    margin: 0 auto; /* সেন্টার করবে */
    box-sizing: border-box;
}

/* ===========================
   Left & Right Sidebar
=========================== */
.left-sidebar {
    flex: 0 0 70%;
    max-width: 70%;
}

.right-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

/* =============================
   Responsive: মোবাইলের জন্য
============================== */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column; /* এক কলামে নামাবে */
  }
  .left-content,
  .right-content {
    width: 100% !important; /* মোবাইলে পুরো প্রস্থ দাও */
  }
}


/* ===========================
   Notice Board
=========================== */
.notice-board {
    background-color: #ffffff;
    border: 1px solid #4CAF50;
    border-radius: 12px;
    padding: 5px 30px;
    box-shadow: 0 6px 12px rgba(0, 128, 0, 0.2);
    margin-bottom: 40px;
    max-height: 500px;
    overflow-y: auto;
}

.notice-board h3 {
    color: #2e7d32;
    font-size: 28px;
    margin-bottom: 25px;
    border-bottom: 3px solid #388e3c;
    padding-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.notice-list {
    list-style: none;
    padding-left: 0;
}

.notice-list li {
    margin-bottom: 12px;
}

.notice-list li a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.notice-list li a:hover {
    color: #388e3c;
    text-decoration: underline;
}

/* Single Notice Page */
.notice-single-content h1 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.notice-single-content .notice-content {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

/* ===========================
   News Slider
=========================== */
.news-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-slider .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.news-slider .slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background: #f1f9f1;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    margin-right: 15px;
}

.news-slider .slide h4 {
    margin-top: 10px;
    color: #006400;
}

.news-slider .slide p {
    color: #333;
    font-size: 14px;
}

/* ===========================
   Services
=========================== */
.services-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* দুই কলাম */
    gap: 30px;
}

/* প্রতিটি সেবা বিভাগের বক্স */
.service-category {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.service-category h4 {
    margin-top: 0;
    color: #2e7d32;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

/* Responsive: ছোট স্ক্রিনে এক কলাম */
@media (max-width: 768px) {
    .services-section {
        grid-template-columns: 1fr;
    }
}

/* ভেতরের সেবা লিস্ট */
.single-service {
    display: flex;
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    align-items: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.service-image {
    width: 20%;
    margin-right: 15px;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.service-content {
    width: 80%;
}

.service-title {
    font-size: 18px;
    color: #2e7d32;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title:hover {
    color: #388e3c;
    text-decoration: underline;
}

/* Responsive: ছোট স্ক্রীনে ভেতরের সেবা এক কলামে */
@media (max-width: 768px) {
    .single-service {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-image,
    .service-content {
        width: 100%;
        margin-right: 0;
    }
}

/* ===========================
   President & Headmaster Messages, Important Links Styles
=========================== */

/* Container wrapper for messages and important links */
.messages-wrapper {
    width: 100%;  /* প্যারেন্টের ৩০% এর পুরো প্রস্থ */
    max-width: none; /* বা সরিয়ে দিতে পারো */
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* ===========================
   Message Boxes (President, Headmaster)
=========================== */
.message-box {
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.message-image {
  width: 200px;
  height: 250px; /* স্কয়ার ফিক্সড করলে ভাল হয় */
  overflow: hidden;
  margin: 0 auto;
  border-radius: 10%;
}

.message-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* ছবিকে কন্টেইনারে সুন্দর করে ফিট করাবে */
  display: block;
  margin-bottom: 15px;
  border-radius: 10%;
}


.message-name a {
  color: #007bff;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  margin-bottom: 5px;
}

.message-name a:hover {
  text-decoration: none !important; /* হোভারেও আন্ডারলাইন বন্ধ রাখবে */
  background-color: #ffd54f; /* তোমার পছন্দমতো */
  color: #000000;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.message-role {
  font-weight: 600;
  color: #555;
  margin-top: 10px;
  font-size: 14px;
}

.message-excerpt {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

/* ===========================
   Headmaster Specific Message Styling
=========================== */
.headmaster-message {
  background: #f1f9f1;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
  color: #333333;
}

.headmaster-message h3 {
  background-color: #008000;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 20px;
  margin-bottom: 15px;
}

/* ===========================
   Important Links Box
=========================== */
.important-links-box {
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  max-width: none;
  margin-top: 20px; /* প্রয়োজনে রাখো */
}

.important-links-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #0073aa;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 6px;
}

.important-links-box ul {
  list-style: disc inside;
  padding-left: 0;
}

.important-links-box ul li {
  margin-bottom: 8px;
}

.important-links-box ul li a {
  text-decoration: none;
  color: #333;
}

.important-links-box ul li a:hover {
  color: #0073aa;
  text-decoration: underline;
}

/* ===========================
   Flex container for layouts if needed
=========================== */
.container-flex {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  align-items: flex-start; /* উপরের অংশে সবকিছু ঠিক করবে */
  flex-wrap: wrap; /* মোবাইলেও ঠিক থাকবে */
}

.section-box {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 280px; /* মিনিমাম width দিলে খুব ছোট হবে না */
}

/* ===========================
   Responsive Styles
=========================== */
@media (max-width: 768px) {
  .messages-wrapper {
    padding: 10px;
  }

  .message-box,
  .important-links-box {
    padding: 15px;
  }

  .container-flex {
    flex-direction: column;
  }

  .section-box {
    width: 100%;
    margin-top: 20px;
  }
}

/*=====================================
Footer 
======================================*/
:root {
  --footer-bg: #222222;
  --footer-text: #eeeeee;
  --footer-link: #ffffff;
  --footer-link-hover: #007bff;
}

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--footer-link-hover);
}

.site-footer .footer-widgets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-widget {
  min-width: 200px;
  max-width: 300px;
}

.footer-widget h4 {
  margin-bottom: 15px;
  color: var(--footer-text);
  font-size: 18px;
  border-bottom: 2px solid var(--footer-link-hover);
  padding-bottom: 8px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li a {
  color: var(--footer-link);
  font-size: 14px;
}

.footer-widget ul li a:hover {
  color: var(--footer-link-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer .footer-widgets {
    flex-direction: column;
    gap: 20px;
  }
}
