/* --- Essential styles for জেলা পরিষদ, খুলনা website --- */

@import url(../fonts/kalpurush/stylesheet.css);

/* Base styles */
* {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: kalpurushregular !important;
}

body {
    font-family: kalpurushregular;
    font-size: 13px !important;
}

h1, h2, h3, h4, h5, h6,
#site-name, #slogan,
.bk-org.title,
.meganizr > li > a,
.right-side-bar .block h6,
.notices h6,
.latest_icon ul li,
.right-side-bar .block ul li a,
.footer-credit, #footer-menu, #footer-menu ul li a, .last-updated {
    font-size: 13px !important;
}

/* Container and Grid System */
.container {
    position: relative;
    width: 960px;
    margin: 0 auto;
    padding: 0;
}

.container .column,
.container .columns {
    float: left;
    display: inline;
}

.row {
    width: 100%;
    clear: both;
    overflow: hidden;
}

.eight.columns, .four.columns {
    float: left;
    min-height: 1px;
    box-sizing: border-box;
}

#left-content {
    margin-right: 20px;
}

.sidebar-area img {
    max-width: 100%;
    height: auto;
    display: block;
}

.column.alpha, .columns.alpha {
    margin-left: 0;
}

.column.omega, .columns.omega {
    margin-right: 0;
}

/* Grid columns */
.container .one.column,
.container .one.columns { width: 40px; }
.container .two.columns { width: 100px; }
.container .three.columns { width: 160px; }
.container .four.columns { width: 240px; }
.container .five.columns { width: 280px; }
.container .six.columns { width: 340px; }
.container .seven.columns { width: 400px; }
.container .eight.columns { width: 460px; }
.container .nine.columns { width: 520px; }
.container .ten.columns { width: 580px; }
.container .eleven.columns { width: 640px; }
.container .twelve.columns { width: 720px; }
.container .thirteen.columns { width: 760px; }
.container .fourteen.columns { width: 820px; }
.container .fifteen.columns { width: 880px; }
.container .sixteen.columns { width: 960px; }

.container .one-third.column { width: 300px; }
.container .two-thirds.column { width: 660px; }

/* Clearing */
.container:after {
    content: "\0020";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix:before,
.clearfix:after,
.row:before,
.row:after {
    content: '\0020';
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}

.row:after,
.clearfix:after {
    clear: both;
}

.row,
.clearfix {
    zoom: 1;
}

.clear {
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}

/* Top Navigation Bar */
.slide-panel-btns {
    float: left;
    width: 265px;
    height: 30px;
}

.slide-panel-button {
    display: table;
    margin-top: 5px;
}

.slide-panel-button a {
    color: white;
    font-size: .9em;
    text-decoration: none;
}

.slide-panel-button a:hover {
    text-decoration: underline;
}



/* Header Site Info */
#header-site-info {
    left: 20px;
    margin-bottom: 0;
    padding: 10px;
    position: absolute;
    top: 80px;
    z-index: 100;
    width: 90%;
}

#logo {
    display: block;
    margin: 0 0 10px 15px;
    float: left;
    width: 12%;
}

#logo img {
    display: block;
    width: 70px;
    height: auto;
}

#site-name-wrapper {
    float: left;
    padding: 10px 0;
}

#site-name {
    display: block;
    font-size: 24px !important;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#site-name a {
    color: #fff;
    text-decoration: none;
}

#site-name a:hover {
    text-decoration: underline;
}

#slogan {
    display: block;
    font-size: 16px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Main Content Area */
#contents {
    margin-top: 20px;
}

#left-content, #right-content {
    float: left;
    min-height: 1px;
}

/* Notices Box */
.notices {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 24px;
    padding: 5px 20px 10px 20px;
}

.notices h6.bk-org.title {
    background: #14532d;
    color: #fff;
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 1.15em;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.latest_icon ul {
    margin: 0 0 4px 0;
    padding: 0;
}

.latest_icon ul li {
    list-style: none;
    padding-left: 30px;
    background: url('../themes/responsive_npf/images/bg_block_list.html') no-repeat 10px center;
    font-size: 16px;
    color: #222;
    margin-bottom: 2px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.latest_icon ul li a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.latest_icon ul li a:hover {
    color: #06402b;
    text-decoration: underline;
}

.latest_icon {
    height: auto !important;
}

.latest_icon .btn.all {
    padding: 5px 11px;
    background: #06402b;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
    margin-top: 20px;
}

.latest_icon .btn.all:hover {
    background: #4a7a0f;
}

/* Right Sidebar */
.right-side-bar {
    width: 220px !important;
}

.right-side-bar .block {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
}

.right-side-bar .block h6 {
    background: #06402b;
    color: #fff;
    font-size: 14px;
    margin: -16px -16px 16px -16px;
    padding: 10px 16px;
    border-radius: 0px 0px 0 0;
}

.right-side-bar .block ul li a {
    font-size: 14px;
    color: #222;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.right-side-bar .block ul li a:hover {
    color: #06402b;
    text-decoration: underline;
}

.right-side-bar .block img {
    border: 1px solid #ddd;
    height: 170px;
    width: 160px;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.right-side-bar .block p {
    text-align: center;
    margin: 10px 0;
}

.right-side-bar .block p span {
    font-size: 16px;
}

.right-side-bar .block p a {
    color: #0000FF;
    text-decoration: none;
}

.right-side-bar .block p a:hover {
    text-decoration: underline;
}

/* List Service */
.list-service ul {
    margin: 0;
    padding: 0;
}

.list-service ul li {
    margin-bottom: 5px;
}

.list-service ul li:last-child {
    margin-bottom: 0;
}

.list-service ul li a {
    color: #222;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.list-service ul li a:hover {
    color: #06402b;
    text-decoration: underline;
}

.list-service ul li a::before {
    content: "\25B6";
    display: inline-block;
    margin-right: 8px;
    font-size: 13px;
    color: #06402b;
    vertical-align: middle;
}

.list-service ul li a::after {
    content: none;
}

/* Facebook Page */
.facebook-page iframe {
    width: 100%;
    border: none;
    border-radius: 4px;
}

/* Slider */
.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

.rslides li {
    position: absolute;
    display: none;
    width: 100%;
    left: 0;
    top: 0;
}

.rslides li:first-child {
    position: relative;
    display: block;
    float: left;
}

.rslides img {
    display: block;
    height: auto;
    float: left;
    width: 100%;
    border: 0;
}

/* Navigation Menu */
.meganizr {
    position: relative;
    z-index: 500;
    clear: both;
    width: 100%;
    height: 37px;
    background-color: #FAFAFA;
    border-bottom: 1px dotted #CCCCCC;
}

.meganizr:before,
.meganizr:after {
    content: '';
    clear: both;
}

.meganizr > li {
    position: relative;
    display: block;
    float: left;
    height: 37px;
    border-right: 1px dotted #ccc;
}

.meganizr > li > a {
    position: relative;
    z-index: 550;
    display: block;
    padding: 11px 15px;
    font-size: 13px;
    color: #525252;
    text-shadow: 0px 1px 1px white;
    text-decoration: none;
    transition: color .15s ease-in, background-image .2s linear .15s;
}

.meganizr > li > a:hover {
    color: #000000;
}

/* Menu Colors */
.meganizr > li > a { color: #333; }
.meganizr > li.col1 > a { color: #FF6600; }
.meganizr > li.col2 > a { color: #C40A2A; }
.meganizr > li.col3 > a { color: #84154D; }
.meganizr > li.col4 > a { color: #098346; }
.meganizr > li.col5 > a { color: #1399BE; }
.meganizr > li.col6 > a { color: #8768DE; }
.meganizr > li.col7 > a { color: #C40A2A; }

.meganizr > li:hover,
.meganizr > li > a:hover {
    color: #fff;
    background-color: #333;
}

.meganizr > li.col0:hover,
.meganizr > li.col0 > a:hover {
    background-color: #1399BE;
    color: #fff;
}

.meganizr > li.col1:hover,
.meganizr > li.col1 > a:hover {
    background-color: #FF6600;
}

.meganizr > li.col2:hover,
.meganizr > li.col2 > a:hover {
    background-color: #C40A2A;
    color: #fff;
}

.meganizr > li.col3:hover,
.meganizr > li.col3 > a:hover {
    background-color: #84154D;
    color: #fff;
}

.meganizr > li.col4:hover,
.meganizr > li.col4 > a:hover {
    background-color: #098346;
    color: #fff;
}

.meganizr > li.col5:hover,
.meganizr > li.col5 > a:hover {
    background-color: #1399BE;
    color: #fff;
}

.meganizr > li.col6:hover,
.meganizr > li.col6 > a:hover {
    background-color: #8768DE;
    color: #fff;
}

.meganizr > li.col7:hover,
.meganizr > li.col7 > a:hover {
    background-color: #C40A2A;
    color: #fff;
}

/* Dropdown Menu */
@media only screen and (min-width: 980px) {
    .meganizr > li > div,
    .meganizr > li > ul,
    .meganizr > li > ul li > ul {
        position: absolute;
        z-index: 600;
        padding: 10px 0;
        top: 37px;
        left: 0px;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        display: none;
        background-color: #ffffff;
    }

    .meganizr > li.mzr-drop:hover > div,
    .meganizr > li.mzr-drop:hover > ul,
    .meganizr > li > ul li.mzr-drop:hover > ul {
        top: 37px;
        opacity: 1;
        overflow: visible;
        visibility: visible;
        display: block;
    }

    .meganizr .drop-one-columns { width: 170px; }
    .meganizr .one-col { width: 150px; }
    .meganizr .one-col, .meganizr .two-col, .meganizr .three-col, .meganizr .four-col, .meganizr .five-col, .meganizr .six-col {
        float: left;
        margin: 10px;
    }

    .meganizr > li > ul,
    .meganizr > li > ul li > ul {
        width: 160px;
        padding: 10px;
    }

    .meganizr > li > ul li { position: relative; }
    .meganizr > li > ul li > ul {
        position: absolute;
        left: 100%;
    }

    .meganizr > li > ul a {
        display: block;
        line-height: 38px;
        border-bottom: 1px dotted #e1e1e1;
        font-size: 14px;
        color: #5e5e5e;
        text-shadow: 0px 1px 1px white;
        text-decoration: none;
        transition: color .15s ease-in;
    }

    .meganizr > li > ul li:last-child a { border: none; }
    .meganizr > li > ul a:hover { color: #888; }

    .mzr-content h6 { font-weight: bold; }
    .mzr-content .mzr-links a {
        display: block;
        padding: 5px 0 0 0;
        line-height: 20px;
        border-bottom: 1px dotted #e1e1e1;
        color: #000;
        font-size: 13px;
        text-decoration: none;
    }

    .mzr-content .mzr-links li:last-child a { border: none; }
    .mzr-content .mzr-links a:hover { color: #333; background-color: #eee; }
}

/* Responsive Menu */
.show-menu {
    display: none;
    background-color: #333333;
    font-size: 14px;
    padding: 5px;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

@media only screen and (max-width: 959px) {
    .mzr-responsive {
        height: auto;
        float: left;
        clear: both;
        margin: 25px 0;
    }

    .mzr-responsive > li,
    .mzr-responsive > li.mzr-align-right {
        display: inline-block;
        position: static;
        border: none;
        width: 33.2%;
    }

    .show-menu {
        display: block;
    }
}

@media only screen and (max-width: 767px) {
    .mzr-responsive > li,
    .mzr-responsive > li.mzr-align-right {
        width: 49.5%;
    }
}

@media only screen and (max-width: 479px) {
    .mzr-responsive > li,
    .mzr-responsive > li.mzr-align-right {
        display: block;
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    ul.meganizr li.col0 {
        display: none !important;
    }
}

/* Footer */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #EBEBEB;
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#footer-menu {
    text-align: left;
    flex: 1;
}

.footer-credit {
    text-align: right;
    flex: 1;
}

.footer-credit p {
    margin: 5px 0;
}

.footer-credit a {
    color: #06402b;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

#footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-menu ul li {
    display: inline-block;
    margin: 0 10px;
}

#footer-menu ul li a {
    color: #333;
    text-decoration: none;
}

#footer-menu ul li a:hover {
    text-decoration: underline;
}

.last-updated {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* Responsive Design */
@media only screen and (min-width: 960px) {
    body {
        background: url("../../images/bg_main.gif") repeat-y scroll center top rgba(0, 0, 0, 0);
    }

    .footer-artwork {
        background: url("../images/footer_top_bg.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
        height: 84px;
        margin: 0 auto;
        width: 1020px;
        clear: both;
    }

    .footer-wrapper {
        width: 1020px;
    }

    .right-side-bar {
        width: 220px !important;
        margin-left: 20px !important;
    }
}

@media only screen and (max-width: 959px) {
    .footer-artwork {
        height: 15px;
        margin: 0 auto;
        background-color: #666;
    }

    .container {
        width: 768px;
    }

    .container .column,
    .container .columns {
        margin-left: 10px;
        margin-right: 10px;
    }

    .column.alpha, .columns.alpha {
        margin-left: 0;
        margin-right: 10px;
    }

    .column.omega, .columns.omega {
        margin-right: 0;
        margin-left: 10px;
    }

    .alpha.omega {
        margin-left: 0;
        margin-right: 0;
    }

    .eight.columns, .four.columns {
        width: 100% !important;
        float: none;
        margin-right: 0;
    }
    #left-content {
        margin-right: 0;
    }
}

@media only screen and (max-width: 767px) {
    .container {
        width: 300px;
    }

    .container .columns,
    .container .column {
        margin: 0;
    }

    .container .one.column,
    .container .one.columns,
    .container .two.columns,
    .container .three.columns,
    .container .four.columns,
    .container .five.columns,
    .container .six.columns,
    .container .seven.columns,
    .container .eight.columns,
    .container .nine.columns,
    .container .ten.columns,
    .container .eleven.columns,
    .container .twelve.columns,
    .container .thirteen.columns,
    .container .fourteen.columns,
    .container .fifteen.columns,
    .container .sixteen.columns,
    .container .one-third.column,
    .container .two-thirds.column {
        width: 300px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    .container {
        width: 420px;
    }

    .container .columns,
    .container .column {
        margin: 0;
    }

    .container .one.column,
    .container .one.columns,
    .container .two.columns,
    .container .three.columns,
    .container .four.columns,
    .container .five.columns,
    .container .six.columns,
    .container .seven.columns,
    .container .eight.columns,
    .container .nine.columns,
    .container .ten.columns,
    .container .eleven.columns,
    .container .twelve.columns,
    .container .thirteen.columns,
    .container .fourteen.columns,
    .container .fifteen.columns,
    .container .sixteen.columns,
    .container .one-third.column,
    .container .two-thirds.column {
        width: 420px;
    }
}

/* Mobile specific adjustments */
@media only screen and (max-width: 768px) {
    .notices, .right-side-bar .block {
        margin-bottom: 15px;
    }

    .notices h6 {
        font-size: 14px;
        padding: 8px 8px;
    }

    .latest_icon ul li {
        font-size: 14px;
        padding-left: 25px;
    }

    .right-side-bar .block h6 {
        font-size: 12px;
        padding: 8px 8px;
    }

    .right-side-bar .block ul li a {
        font-size: 11px;
    }

    .right-side-bar .block img {
        height: 100px;
        width: 100px;
    }

    #header-site-info {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        padding: 10px;
    }

    #logo {
        width: auto;
        margin: 0 0 10px 0;
    }

    #site-name {
        font-size: 20px;
    }

    #slogan {
        font-size: 14px;
    }
}

/* Image Slider Styles */
.image-slider-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 220px;
    margin: 0 auto 0px;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(186, 186, 186, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgba(255,255,255,0.9);
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .image-slider-container {
        height: 180px;
        margin-bottom: 15px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .image-slider-container {
        height: 150px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Move 'সকল' button to the right */
.notice-btn {
    text-align: right;
    margin-top: 10px;
}

/* Ensure left and right content columns are floated and aligned */
#left-content, #right-content {
    float: left;
    min-height: 1px;
}

.row:after {
    content: '';
    display: table;
    clear: both;
}

/* Service Boxes Section */
.service-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
  justify-content: space-between;
}
.service-box {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 2px 2px 6px #eee;
  flex: 0 0 48%;
  max-width: 48%;
  min-width: 220px;
  padding: 18px 16px 12px 16px;
  box-sizing: border-box;
  margin-bottom: 0;
  transition: box-shadow 0.2s;
  /* border: 2px solid red;  // Uncomment for debug */
}
.service-box:hover {
  box-shadow: 2px 4px 16px #ccc;
}
.service-box h3 {
  background: #06402b;
  color: #fff;
  font-size: 2em;
  font-family: kalpurushregular, sans-serif;
  width: 100%;
  text-align: center;
  margin: 0 0 16px 0;
  padding: 16px 12px 12px 12px;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
  font-weight: bold;
  line-height: 1.2;
}
.service-box img {
  display: block;
  width: 90px;
  height: 90px;
  margin: 0 auto 12px auto;
}
.service-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-box ul li {
  font-size: 1.1em;
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}
.service-box ul li:before {
  content: "\25B6";
  color: #06402b;
  position: absolute;
  left: 0;
  font-size: 0.9em;
}
.service-box ul li a {
  color: #222;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}
.service-box ul li a:hover {
  color: #06402b;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .service-boxes {
    flex-direction: column;
    gap: 16px;
  }
  .service-box {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.service-box-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.service-box-img {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-box-img img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.service-box-content {
  flex: 1 1 0;
}
.service-box-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}
@media (max-width: 900px) {
  .service-box-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .service-box-img {
    margin-bottom: 10px;
  }
  .service-box-content {
    width: 100%;
  }
  .service-box h3 {
    margin-bottom: 10px;
  }
}

.photo-gallery {
  margin: 32px 0 0 0;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 2px 2px 6px #eee;
  padding: 20px;
  text-align: center;
}
.gallery-title {
  background: #06402b;
  color: #fff;
  font-size: 2em;
  font-family: kalpurushregular, sans-serif;
  width: 100%;
  text-align: center;
  margin: 0 0 16px 0;
  padding: 16px 12px 12px 12px;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
  font-weight: bold;
  line-height: 1.2;
}
.gallery-main {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  padding: 0;
}
.gallery-main img {
  width: 100%;
  height: 320px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  display: block;
  transition: opacity 0.3s ease;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(6, 64, 43, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: rgba(6, 64, 43, 1);
}
.gallery-btn.prev-btn {
  left: 10px;
}
.gallery-btn.next-btn {
  right: 10px;
}
.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.gallery-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: border 0.2s;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border: 2px solid #06402b;
}
@media (max-width: 900px) {
  .gallery-main img {
    height: 200px;
  }
  .gallery-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .gallery-main img {
    height: 120px;
  }
  .gallery-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .gallery-thumb {
    width: 50px;
    height: 35px;
  }
}

.top-header-bar {
  background: #06402b;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  font-size: 14px;
}
.top-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.top-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
}
.top-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-social-icon img {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  transition: opacity 0.2s;
}
.top-social-icon:hover img {
  opacity: 0.7;
}
.top-email {
  margin-right: 10px;
  color: #ffffff;
}
@media (max-width: 767px) {
  .top-header-content {
    flex-direction: column;
    height: auto;
    padding: 6px 0;
    gap: 4px;
  }
  .top-header-left, .top-header-right {
    gap: 8px;
  }
}

/* Remove margin-bottom for .gallery-title inside .photo-gallery to avoid double spacing */
.photo-gallery .gallery-title {
  margin-bottom: 0;
}

/* Notice Board Styles */
.notice-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.notice-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #06402b;
}

.notice-date {
    background: #06402b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.notice-title {
    color: #06402b;
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
    flex: 1;
    margin-left: 15px;
}

.notice-link {
    color: #06402b;
    text-decoration: none;
    transition: color 0.3s;
}

.notice-link:hover {
    color: #0a5a3a;
    text-decoration: underline;
}

.notice-content {
    padding: 10px 0;
}

.notice-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.notice-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.view-btn {
    background: #06402b;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.view-btn:hover {
    background: #0a5a3a;
    color: white;
    text-decoration: none;
}

.notice-attachment {
    text-align: right;
}

.attachment-btn {
    background: #06402b;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.attachment-btn:hover {
    background: #0a5a3a;
    color: white;
    text-decoration: none;
}

.attachment-icon {
    font-size: 1.1em;
}

.no-notices {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .notice-title {
        margin-left: 0;
        font-size: 1.1em;
    }
    
    .notice-date {
        align-self: flex-start;
    }
    
    .notice-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-btn, .attachment-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Home Page Notice Styles */
.home-notice-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.home-notice-item:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home-notice-item .notice-title {
    margin-bottom: 10px;
}

.home-notice-item .notice-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.home-notice-item .notice-title a:hover {
    color: #C40A2A;
    text-decoration: underline;
}

.home-notice-item .notice-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.view-btn-small, .attachment-btn-small {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-btn-small {
    background: #C40A2A;
    color: white;
    border: 1px solid #C40A2A;
}

.view-btn-small:hover {
    background: #a00822;
    color: white;
    text-decoration: none;
}

.attachment-btn-small {
    background: #098346;
    color: white;
    border: 1px solid #098346;
}

.attachment-btn-small:hover {
    background: #076a37;
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .home-notice-item {
        padding: 12px;
    }
    
    .home-notice-item .notice-title a {
        font-size: 13px;
    }
    
    .home-notice-item .notice-actions {
        gap: 6px;
    }
    
    .view-btn-small, .attachment-btn-small {
        padding: 3px 6px;
        font-size: 10px;
    }
}

.main-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 20px 10px 20px 10px;
    margin-bottom: 30px;
    display: flex;
}

.notice-board-header, .sidebar-header {
    background: #388e3c;
    color: #fff;
    padding: 10px 16px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
}

#left-content, #right-content {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 0;
}

#right-content {
    border-left: 1px solid #e0e0e0;
}

/* Boxed layout */
.boxed-layout {
    max-width: 95%;
    margin: 10px auto;
    background: #fff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 0;
}

/* Main content row */
.main-content-row {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background: #fafafa;
    width: 95%;
    margin: 0 auto;
}

/* Content and sidebar */
.content-area {
    flex: 0 0 75%;
    padding-right: 10px;
}
.sidebar-area {
    flex: 0 0 25%;
}

/* Responsive */
@media (max-width: 900px) {
    .main-content-row {
        flex-direction: column;
    }
    .content-area, .sidebar-area {
        flex: 0 0 100%;
        padding-right: 0;
    }
}

/* Sidebar area should fill its column */
.sidebar-area {
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar header and all direct children fill width */
.sidebar-area .sidebar-header,
.sidebar-area > * {
    width: 100%;
    box-sizing: border-box;
}

/* If using a main-box inside sidebar, ensure it fills width */
.sidebar-area .main-box {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 18px 14px 18px 14px;
    margin-bottom: 20px;
}

/* Sidebar header styling */
.sidebar-area .sidebar-header {
    background: #14532d;
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
    margin: -18px -14px 16px -14px;
    letter-spacing: 1px;
}

/* Sidebar text and links */
.sidebar-area {
    color: #222;
}
.sidebar-area a {
    color: #14532d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.sidebar-area a:hover {
    color: #0e3d1c;
    text-decoration: underline;
}

/* Sidebar block styling */
.sidebar-area .block {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
    margin-bottom: 22px;
    padding: 0 0 18px 0;
    overflow: hidden;
    text-align: center; /* Center all content */
}

/* Sidebar title styling */
.sidebar-area .bk-org.title {
    background: #14532d;
    color: #fff;
    font-weight: bold;
    font-size: 1.15em;
    padding: 12px 0;
    margin: 0 0 16px 0;
    border-radius: 10px 10px 0 0;
    letter-spacing: 1px;
    text-align: center;
}

/* Sidebar images */
.sidebar-area img {
    max-width: 90%;
    height: auto;
    border-radius: 6px;
    margin: 0 auto 10px auto;
    display: block;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

/* Sidebar list styling */
.sidebar-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-area ul li {
    margin-bottom: 8px;
} 