/* Reset & Container */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f4f4f4; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header Design (Logo Left) */
.main-header { background: #5d7c1d; color: #fff; padding: 15px 0; border-bottom: 4px solid #fdf500; }
.header-content { display: flex; align-items: center; gap: 20px; }
.logo-box img { width: 90px; height: auto; border-radius: 5px; padding: 2px; }
.title-box h1 { font-size: 2rem; color: #fdf500; text-shadow: 2px 2px 4px #000; }

/* Navigation & Responsive Menu */
.main-nav { background: #004d00; position: sticky; top: 0; z-index: 1000; }
.nav-links { list-style: none; display: flex; justify-content: center; }
.nav-links li a { color: #fff; text-decoration: none; padding: 14px 18px; display: block; font-weight: bold; }
.nav-links li a:hover { background: #006400; color: #fdf500; }
#menu-toggle, .menu-icon { display: none; }

/* Address Stripe */
.address-stripe { background: #4a6316; color: #fff; text-align: center; padding: 8px; font-size: 14px; border-bottom: 1px solid #fff; }

/* Seamless Ticker (No Gap) */
.news-wrapper { display: flex; height: 38px; align-items: center; overflow: hidden; margin-top: 2px; color: #fff; }
.bg-green { background: #004d00; }
.bg-blue { background: #1976D2; }
.news-tag { padding: 0 15px; font-weight: bold; background: rgba(0,0,0,0.3); height: 100%; display: flex; align-items: center; border-right: 2px solid #fff; z-index: 5; }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker { display: inline-block; white-space: nowrap; animation: ticker-scroll 30s linear infinite; }
.ticker-slow { animation-duration: 50s; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-33.33%); } }

/* Main Grid Layout */
.main-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top: 20px; }

/* Sidebar Cards */
.side-card { background: #fff; border: 1px solid #2e7d32; margin-bottom: 20px; text-align: center; overflow: hidden; }
.card-head { background: #2e7d32; color: #fff; padding: 10px; font-weight: bold; }
.side-card img { width: 150px; height: 180px; margin: 15px 0; border: 1px solid #ddd; object-fit: cover; }
.side-card p { font-weight: bold; padding-bottom: 15px; }

/* Dynamic Mini Sliders (Sidebar) */
.dynamic-slider { min-height: 280px; }
.mini-slideshow { padding: 15px; position: relative; }
.mini-slideshow img { width: 130px !important; height: 150px !important; margin: 0 auto 10px !important; display: block; }
.teacherSlide, .staffSlide { display: none; }
.mini-slideshow p { font-size: 14px; margin-bottom: 2px; color: #333; }
.mini-slideshow small { color: #666; font-size: 12px; display: block; padding-bottom: 10px; }

/* Content & Slider */
.slider-box { background: #fff; border: 5px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.mySlides { display: none; }
.fade { animation: fadeEffect 1.5s; }
@keyframes fadeEffect { from {opacity: .4} to {opacity: 1} }

/* Notice Board */
.notice-board { background: #fff; border: 1px solid #2e7d32; margin-bottom: 20px; }
.pdf-list { list-style: none; }
.pdf-list li { padding: 12px 15px; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; }
.pdf-list li a { text-decoration: none; color: #333; font-weight: 500; }
.pdf-list li a:hover { color: #2e7d32; }
.date { font-size: 12px; color: #777; }
.card-footer { background: #f9f9f9; padding: 10px; text-align: right; }
.card-footer a { color: #2e7d32; text-decoration: none; font-weight: bold; }

/* 3-Column Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.info-card { background: #fff; border: 1px solid #2e7d32; display: flex; flex-direction: column; min-height: 250px; }
.card-header { background: #2e7d32; color: #fff; padding: 10px; text-align: center; font-weight: bold; font-size: 15px; }
.item-list { list-style: none; padding: 10px; flex-grow: 1; }
.item-list li { font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f1f1f1; color: #444; }
.item-list li i { color: #2e7d32; margin-right: 8px; }
.see-more { background: #f8fafc; padding: 8px 12px; text-align: right; border-top: 1px solid #eee; }
.see-more a { font-size: 13px; color: #2e7d32; font-weight: bold; text-decoration: none; }
.see-more a:hover { text-decoration: underline; }

/* --- New Updates: Attendance, Special Day & Quotes CSS --- */
.attendance-content { flex-grow: 1; }
.mini-card-slideshow { position: relative; flex-grow: 1; overflow: hidden; background: #fff; }
.specialSlide, .quoteSlide { display: none; width: 100%; text-align: center; }

/* Ensuring images fit properly in small cards */
.mini-card-slideshow img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}

.mini-card-slideshow p {
    padding: 0 10px 10px;
    color: #333;
    line-height: 1.4;
}


/* দিনপঞ্জি সেকশন স্টাইল */
.calendar-wrapper {
    padding: 15px;
    text-align: left; /* বাম দিকে অ্যালাইনমেন্ট */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.calendar-wrapper p { 
    font-weight: bold; 
    color: #333; 
    line-height: 1.8; /* লাইনের মাঝের গ্যাপ বাড়ানো হয়েছে */
    margin-bottom: 5px;
    font-size: 14px;
}


.calendar-wrapper .bn-text { color: #2e7d32; font-size: 16px; }

/* স্লাইডার ইমেজ এবং কার্ড কন্টেন্ট ফিক্স */
.mini-card-slideshow { 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.mini-card-slideshow img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* See More বাটনকে একদম নিচে সেট করা */
.see-more { 
    background: #f8fafc; 
    padding: 8px 12px; 
    text-align: right; 
    border-top: 1px solid #eee; 
    margin-top: auto; /* এটি বাটনকে নিচে ঠেলে দিবে */
}

.see-more a, .click-btn { 
    font-size: 13px; 
    color: #2e7d32; 
    font-weight: bold; 
    text-decoration: none; 
}

.click-btn {
    display: inline-block;
    background: #5cb85c;
    color: #fff !important;
    padding: 5px 15px;
    border-radius: 4px;
    margin-top: 5px;
}

/* আজকের এই দিনে বক্সের জন্য বিশেষ স্টাইল */
.today-history-box {
    padding: 10px;
    background: #fff;
}

.history-item {
    text-align: center;
}

/* আপনার সাইডবারের অন্য ছবির সাথে মিল রেখে স্টাইল */
.history-item img {
    width: 100% !important; /* বক্সের পুরোটা নিবে */
    height: 150px !important; /* উচ্চতা ফিক্সড করা হলো */
    object-fit: cover !important; /* ছবি যেন ফেটে না যায় */
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

.history-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    padding: 0 5px 10px;
    margin: 0;
}



/* সামাজিক যোগাযোগ ড্রপডাউন স্টাইল */
.social-dropdown-container {
    background: #fff;
    padding: 10px;
}

.social-item {
    margin-bottom: 5px;
    border-bottom: 1px solid #f1f1f1;
}

.social-btn {
    width: 100%;
    background: #fff;
    border: none;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.social-btn:hover {
    background: #f8fafc;
    color: #2e7d32;
}

.social-btn i.fab {
    margin-right: 10px;
    width: 20px;
    font-size: 16px;
}

/* আইকন কালার */
.fa-facebook { color: #1877F2; }
.fa-youtube { color: #FF0000; }
.fa-twitter { color: #1DA1F2; }
/* নতুন আইকনগুলোর কালার */
.fa-linkedin { color: #0077B5; }
.fa-instagram { color: #E4405F; }
.fa-envelope { color: #D44638; }

/* বাকি ড্রপডাউন CSS আগের মতোই থাকবে */

.social-content {
    display: none; /* শুরুতে বন্ধ থাকবে */
    background: #f9f9f9;
    padding-left: 30px;
    animation: fadeIn 0.3s;
}

.social-content a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    border-bottom: 1px dashed #ddd;
}

.social-content a:hover {
    color: #2e7d32;
    background: #eee;
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.active .arrow {
    transform: rotate(180deg);
}

/* সামাজিক যোগাযোগ বাটনের সাধারণ স্টাইল */
.social-btn {
    width: 100%;
    background: #fff;
    border: none;
    padding: 10px 15px;
    display: flex; /* আইকন এবং লেখাকে এক লাইনে রাখবে */
    align-items: center; /* লম্বালম্বিভাবে মাঝখানে রাখবে */
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    text-align: left; /* লেখা বাম দিক থেকে শুরু হবে */
}

/* আইকনগুলোর জন্য নির্দিষ্ট গ্যাপ এবং সাইজ */
.social-btn i {
    width: 25px; /* প্রতিটি আইকনের জন্য সমান জায়গা */
    font-size: 18px;
    margin-right: 12px; /* আইকন থেকে লেখার দূরত্ব */
    display: inline-flex;
    justify-content: center; /* আইকনটিকে নির্দিষ্ট জায়গার মাঝে রাখবে */
}

/* ড্রপডাউন অ্যারোকে একদম ডানে পাঠানোর জন্য */
.social-btn .arrow {
    margin-left: auto; /* এটি অ্যারোকে ডান দিকে ঠেলে দিবে */
    font-size: 12px;
}



/* যোগাযোগ সেকশন স্টাইল */
.contact-wrapper {
    background: #fff;
    padding: 10px;
}

.contact-box {
    background: #fdfdfd;
    border: 1px solid #333; /* ছবির মতো কালো চিকন বর্ডার */
    padding: 10px;
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2); /* ছবির মতো শ্যাডো */
}

.contact-box p {
    font-size: 14px;
    color: #000;
    line-height: 1.6;
    margin: 0;
}

.contact-box strong {
    display: block;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
    padding-bottom: 2px;
}










/* হাজিরা কার্ডের আধুনিক ডিজাইন */
.info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.attendance-container {
    height: 120px; /* স্লাইডারের উচ্চতা */
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.attendance-slide {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.class-info {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 8px;
    font-size: 16px;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    border-radius: 6px;
}

.stat-item small { font-size: 11px; color: #64748b; text-transform: uppercase; }
.stat-item b { font-size: 16px; }

.total b { color: #2563eb; }
.present b { color: #10b981; }
.absent b { color: #ef4444; }

.no-data {
    text-align: center;
    padding: 40px 10px;
    color: #94a3b8;
    font-style: italic;
}

/* স্লাইডার অ্যানিমেশন */
.attendance-wrapper {
    transition: transform 0.8s ease-in-out;
}










/* Footer */
.footer { background: #333; color: #fff; text-align: center; padding: 20px; margin-top: 40px; }

/* Mobile Responsive Design */
@media (max-width: 992px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .main-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    
    .menu-icon { display: block; color: #fff; padding: 14px; cursor: pointer; background: #003300; font-weight: bold; text-align: center; }
    .nav-links { display: none; flex-direction: column; background: #004d00; width: 100%; }
    #menu-toggle:checked ~ .nav-links { display: flex; }
    .nav-links li { border-bottom: 1px solid #006400; }
    
    .title-box h1 { font-size: 1.5rem; }
    .ticker { animation-duration: 15s; }
}