/*
Theme Name: Azmoni School and College Theme
Author: Azmoni BHSAC
Description: আজমনি বহুমুখী হাই স্কুল এন্ড কলেজের জন্য কাস্টম ওয়ার্ডপ্রেস থিম।
Version: 1.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* গ্লোবাল জাস্টিফাই সেটিংস */
p, 
.school-desc,
.about-text-content p,
.main-content-area p,
.card p,
.page-content p {
    text-align: justify !important;
    text-justify: inter-word !important;
}

/* প্রধান হেডার সেকশন */
.main-header {
    background-color: #ffffff;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 3px solid #006a4e;
}
.school-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    object-fit: contain;
}
.main-header h1 {
    color: #006a4e;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}
.header-meta {
    font-size: 15px;
    color: #555;
    font-weight: 500;
}
.header-meta span {
    margin: 0 10px;
    display: inline-block;
}

/* নেভিগেশন মেনুবার */
nav {
    background-color: #006a4e; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}
nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap; 
    justify-content: center;
    padding: 5px 10px;
    width: 100%;
}
nav ul li {
    margin: 3px;
    position: relative;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px 14px;
    border-radius: 4px;
    display: inline-block;
}
nav ul li a:hover, nav ul li a.active {
    color: #fff;
    background-color: #004d34;
}

/* ডেস্কটপে মোবাইল বাটন হাইড */
.menu-toggle {
    display: none;
}

/* ডেস্কটপ ড্রপডাউন মেনু স্টাইল */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    border-top: 3px solid #006a4e;
    z-index: 1001;
    padding: 5px 0;
}
.dropdown-menu li {
    width: 100%;
    margin: 0;
}
.dropdown-menu li a {
    color: #444 !important;
    background: none !important;
    width: 100%;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    font-size: 14px;
    text-align: left;
    display: block;
}
.dropdown-menu li:last-child a {
    border-bottom: none;
}
.dropdown-menu li a:hover {
    background-color: #f4f6f9 !important;
    color: #006a4e !important;
    padding-left: 25px;
}
nav ul li:hover .dropdown-menu {
    display: block;
}

/* নিউজ ট্রিকার স্টাইল */
.ticker-container {
    background-color: #ffeb3b; 
    color: #222;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e0d020;
}
.ticker-title {
    background-color: #d32f2f; 
    color: white;
    padding: 6px 15px;
    white-space: nowrap;
    z-index: 10;
    position: relative;
    box-shadow: 3px 0 5px rgba(0,0,0,0.2);
}
.ticker-text-wrapper {
    width: 100%;
    overflow: hidden;
}
marquee {
    display: block;
    padding: 6px 0;
}
marquee span {
    margin-right: 50px;
    color: #333;
}

/* মূল কন্টেইনার */
.container {
    max-width: 1300px;
    margin: 25px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* পেজ ট্রানজিশন */
.page-content {
    display: none; 
    animation: fadeIn 0.4s ease-in-out;
}
.page-content.active-page {
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ৩ কলামের থ্রি-গ্রিড লেআউট (হোম পেজ) */
.home-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px; 
    gap: 20px;
}
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.card-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #006a4e;
    color: #006a4e;
}
.school-main-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}
.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    color: #006a4e;
    border-left: 5px solid #006a4e;
    padding-left: 10px;
}
.sub-section-title {
    font-size: 20px;
    margin: 20px 0 15px 0;
    color: #004d34;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

/* তালিকা স্টাইল */
.list-item {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 14px;
}
.list-item:last-child {
    border-bottom: none;
}
.list-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
}
.list-item a:hover {
    color: #006a4e;
    text-decoration: underline;
}
.date {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* কর্মকর্তাদের গ্রিড ও কার্ড ডিজাইন */
.officer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}
.officer-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.officer-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #006a4e;
    margin-bottom: 15px;
}
.officer-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}
.designation {
    color: #006a4e;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

.view-details-btn {
    background-color: #006a4e;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
    font-weight: bold;
    width: 100%;
}
.view-details-btn:hover {
    background-color: #004d34;
}

/* পপ-আপ মডাল উইন্ডো স্টাইল */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.modal-box {
    background-color: #fff;
    width: 100%;
    max-width: 650px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalSlide 0.3s ease-out;
    overflow: hidden;
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    background-color: #006a4e;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 { font-size: 18px; }
.close-modal-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.modal-body { padding: 20px; max-height: 80vh; overflow-y: auto; }
.details-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.details-table th, .details-table td { border: 1px solid #ddd; padding: 10px 12px; font-size: 14px; text-align: left; }
.details-table th { background-color: #f4f6f9; color: #333; width: 30%; font-weight: 600; }

/* আমাদের সম্পর্কে সাব-পেজগুলোর জন্য লেআউট */
.about-detail-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}
.about-large-img {
    width: 240px;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid #f4f6f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.about-text-content {
    flex: 1;
}
.about-text-content h3 {
    color: #006a4e;
    font-size: 22px;
    margin-bottom: 8px;
}
.about-text-content h4 {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}
.about-text-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ফুটার */
footer {
    background-color: #222;
    color: white;
   text-align: center !important;
    padding: 15px;
    margin-top: auto;
    font-size: 14px;
}

/* ==========================================================================
    মোবাইল ও ট্যাবলেট রেসপন্সিভ মিডিয়া কুয়েরি 
   ========================================================================== */

@media (max-width: 992px) {
    .home-grid { 
        grid-template-columns: 1fr; 
    }
    .middle-column { 
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .main-header h1 { 
        font-size: 22px; 
    }
    .header-meta {
        font-size: 13px;
    }
    .header-meta span {
        margin: 0 5px;
    }
    .container {
        padding: 0 12px;
        margin: 15px auto;
    }

    /* ৩-লাইন হ্যামবার্গার আইকন */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 12px 20px;
        align-self: flex-start;
        z-index: 1002;
    }
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    
    /* বাটন ক্রস চিহ্নে (X) রূপান্তরের জন্য */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* মোবাইল মেনু ডিফল্ট স্টেট (হাইড থাকবে) */
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        width: 100%;
        background-color: #006a4e;
    }

    /* ৩ লাইনে ক্লিক করলে মেনু খোলার জন্য */
    nav ul.menu-open {
        max-height: 2000px; /* সাব-মেনু যেন নিচে নেমে আটকে না যায় তাই যথেষ্ট বড় হাইট */
        overflow: visible;  /* এটি গুরুত্বপূর্ণ, যেন কন্টেন্ট কেটে না যায় */
    }

    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #00523d;
        position: relative;
    }
    nav ul li a {
        display: block;
        padding: 12px 20px;
        border-radius: 0;
        font-size: 15px;
        text-align: left;
    }

    /* মোবাইলে হোভার ইফেক্ট সম্পূর্ণ বন্ধ */
    nav ul li:hover .dropdown-menu { 
        display: none; 
    }

    /* মোবাইলে ড্রপডাউনের ডিফল্ট রুলস (লুকানো থাকবে) */
    nav ul li .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #004d34;
        padding: 0;
        border-top: none;
        border-radius: 0;
    }

    /* জাভাস্ক্রিপ্ট যখন open-target ক্লাস দিবে তখন ড্রপডাউন শো হবে */
    nav ul li.open-target .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a { 
        color: #e0f2f1 !important; 
        background-color: #004d34 !important; 
        border-bottom: 1px solid #005c3f !important;
        padding-left: 35px !important;
    }
    .dropdown-menu li a:hover {
        background-color: #003322 !important;
        padding-left: 40px !important;
    }

    .about-detail-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    .about-large-img {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 4/5;
    }
    .modal-box {
        width: 100%;
        margin: 10px;
    }
    .details-table th, .details-table td {
        padding: 8px;
        font-size: 13px;
    }
    .ticker-container {
        font-size: 13px;
    }
    .ticker-title {
        padding: 6px 10px;
    }
}
/* --- ছাত্র-ছাত্রী পেজের ইমেজ ও কন্টেন্ট স্টাইল --- */
#page-students .card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 20px auto;
    max-width: 900px; /* পেজের সৌন্দর্য বাড়ানোর জন্য একটি স্ট্যান্ডার্ড চওড়া সাইজ */
    border-top: 4px solid #006a4e; /* স্কুলের থিম কালার সবুজ বর্ডার */
    text-align: center;
}

#page-students .card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ইমেজের ওপর মাউস নিলে হালকা জুম ইফেক্ট (ঐচ্ছিক) */
#page-students .card img:hover {
    transform: scale(1.01);
}

#page-students .card p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    text-align: justify; /* লেখাটিকে দুই পাশে সমান রাখার জন্য */
    max-width: 850px;
    margin: 0 auto;
}

/* মোবাইল স্ক্রিনের জন্য সামান্য অ্যাডজাস্টমেন্ট */
@media (max-width: 768px) {
    #page-students .card {
        padding: 15px;
        margin: 10px;
    }
    #page-students .card p {
        font-size: 15px;
        text-align: left; /* মোবাইলে জাস্টিফাই লেখা অনেক সময় ফাঁকা দেখায়, তাই লেফট অ্যালাইন */
    }
}