/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; /* Adjust as needed */
    margin-right: 1rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #003366;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
}



/* Header right section styles */


.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.search-bar input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.header-right p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #333;
}

.user-buttons .button {
    background-color: #b5bfca;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.user-buttons .button:hover {
    background-color: #004494;
}

/* Navigation */
nav {
    background-color: #003366;
    margin-top: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li a {
    color: white;
    padding: 1rem 1rem;
    display: block;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    background-color: #ffffff;
}

/* Main Content */
.main-container {
    display: flex;
    padding: 2rem;
    gap: 2rem;
}

.left-panel {
    flex: 3;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider {
    background-color: #e9ecef;
    padding: 2rem;
    min-height: 250px;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    text-align: center;
    font-style: italic;
    color: #333;
}

/* Content Update Section */
.content-update {
    background-color: white;
    padding: 1rem;
    border: 1px solid #ddd;
}

.content-update h2 {
    margin-bottom: 1rem;
    color: #003366;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

.tabs .tablink {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: 0.3s;
    font-size: 1rem;
}

.tabs .tablink:hover {
    background-color: #ddd;
}

.tabcontent {
    display: none;
    padding: 1rem 0;
}

.update-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.update-item .date {
    background-color: #0056b3;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin-right: 1rem;
    text-align: center;
    font-weight: bold;
    min-width: 60px;
}

.update-item p {
    flex-grow: 1;
}

.read-more {
    background-color: #28a745;
    color: white;
    padding: 0.3rem 0.7rem;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 1rem;
}

/* Latest Events */
.latest-events {
    background-color: white;
    padding: 1rem;
    border: 1px solid #ddd;
}

.latest-events h2 {
    margin-bottom: 1rem;
    color: #003366;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 15px 5px;
    border-bottom: 1px solid #f0f0f0;
}

.event-date {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    padding: 8px;
    margin-right: 15px;
    min-width: 60px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.event-date .month {
    font-size: 0.9rem;
    color: #6c757d;
}

.event-details {
    font-family: verdana, sans-serif;
}

.event-details .card-title {
    font-size: 1rem;
    font-weight: 500;
}
.event-details .card-title:hover {
    text-decoration: underline;
}

.event-details .badge {
    vertical-align: middle;
    margin-left: 5px;
}

/* Quick Links */
.quick-links .link-box {
    display: block;
    background-color: #0056b3;
    color: white;
    padding: 1rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
}
.quick-links .link-box:nth-child(2) { background-color: #0069d9; }
.quick-links .link-box:nth-child(3) { background-color: #20c997; }
/* ... add more varied colors if needed */


/* Icon Links */
.icon-links {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    background-color: white;
    margin: 0 2rem;
    border: 1px solid #ddd;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.icon-box img {
    height: 50px; /* Adjust as needed */
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-links img {
    height: 40px; /* Adjust as needed */
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu a::after {
  transform: rotate(-90deg);
  position: absolute;
  right: 6px;
  top: .8em;
}
.dropdown-submenu .dropdown-menu {
    top: 0; left: 95%; margin-top: -1px;
}
@media (max-width: 992px)
{
    .dropdown-menu {
        padding: .5rem 0;
        margin: .125rem 0 0;
    }
    li > ul > li > ul > li > .dropdown-item {
        padding: .25rem 3rem;
    }
    li > ul > li > ul > li > .dropdown-item:before {
        content: '• ';
    }
}

/* Footer slider animation - right to left */
#basicSlider {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  margin: 20px 0;
}

#basicSlider .MS-content {
  display: flex;
  width: max-content;
  animation: scrollSlider 40s linear infinite;
}

#basicSlider .item {
  flex: 0 0 auto;
  width: 160px; /* Adjust as needed */
  margin: 0 10px;
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Moved from <style> tags in index.php */

/* Date box in notification window - POST BOX - date font box color */
#contentBox {
    background-color: #009900;
    width: 40px;
    height: 62px;
    text-align: center;
    color: white;
}

#top {
    float: top;
    height: 35px;
    font-size: 21px;
}

#down {
    height: 25px;
    background-color: #FFCC99;
}

td {
    padding: 7px;
}

#updatesMarquee {
    height:350px !important;
}

.square {
    display: inline-block;
    width: 45px;
    height: 50px;
    background-color: #4c9900;
    color: white;
    font-size: 12px;
    padding: 5px;
}

#mySidenav a {
    position: absolute;
    right: -40px;
    transition: 0.3s;
    padding: 20px;
    width: 130px;
    text-decoration: none;
    font-size: 13px;
    color: #001933;
    border-radius: 10px 0 0 10px;
}

#mySidenav a:hover {
    right: 0;
}

#FromTheBoard {
    top: 24px;
    background-color: #dded2b;
}

#ToTheBoard {
    top: 80px;
    background-color: #df09d8;
}

#tneb {
    top: 130px;
    background-color: #009900;
}

#tangedco {
    top: 180px;
    background-color: #2196F3;
}

#tantransco {
    top: 235px;
    background-color: #f44336;
}

#kalp {
    top: 290px;
    background-color: #99ff33;
}

#dffe {
    top: 340px;
    background-color: #d2691e;
}

#dfff {
    top: 390px;
    background-color: #ff3399;
}

/* --- Marquee Latest Events Box --- */
.card-header {
    font-family: verdana, sans-serif;
    font-weight: 600;
}

.marquee-container {
    height: 350px;
    overflow: hidden;
    padding: 10px;
}

/* === Announcement Card (Handwritten Style) === */
.announcement-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}
.announcement-text {
    font-family: 'Indie Flower', 'Caveat', cursive, sans-serif;
    font-size: 3.2rem;
    line-height: 1.15;
    color: #222;
}
.announcement-text .highlight-date {
    color: #00aaff;
    font-weight: bold;
}

/* === Events Sidebar === */
.events-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.2rem 1rem 1rem 1rem;
    margin-bottom: 1.5rem;
}
.events-sidebar .sidebar-title {
    font-size: 1.25rem;
    color: #1976d2;
    font-weight: bold;
    background: #f7f7f7;
    border-radius: 8px 8px 0 0;
    padding: 0.7rem 1rem;
    margin: -1.2rem -1rem 1rem -1rem;
    border-bottom: 1px solid #e0e0e0;
}
.event-listing {
    max-height: 350px;
    overflow-y: auto;
}
.event-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
}
.event-datebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    margin-right: 10px;
}
.event-datebox .event-day {
    background: #009900;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    width: 100%;
    text-align: center;
    padding: 2px 0;
}
.event-datebox .event-month {
    background: #FFCC99;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0 0 4px 4px;
    width: 100%;
    text-align: center;
    padding: 2px 0;
}
.event-info {
    flex: 1;
    min-width: 0;
}
.event-info a {
    color: #1976d2;
    font-weight: 500;
    font-size: 1.08rem;
    text-decoration: none;
    word-break: break-word;
}
.event-info a:hover {
    text-decoration: underline;
}
.event-info .badge {
    margin-left: 6px;
    font-size: 0.85rem;
    vertical-align: middle;
}

/* === Vertical Quick Links Tabs === */
.vertical-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1.5rem;
}
.vertical-tabs a {
    display: block;
    width: 170px;
    padding: 12px 30px 12px 10px;
    margin-bottom: 8px;
    border-radius: 10px 0 0 10px;
    color: #fff;
    font-weight: bold;
    text-align: right;
    text-decoration: none;
    font-size: 1.08rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: right 0.3s, background 0.2s;
    position: relative;
    right: 0;
}
.vertical-tabs a:hover {
    right: 10px;
    filter: brightness(1.1);
}
.vertical-tabs .tneb { background: #009900; }
.vertical-tabs .tangedco { background: #2196F3; }
.vertical-tabs .tantransco { background: #f44336; }
.vertical-tabs .teda { background: #b2ff59; color: #333; }
.vertical-tabs .tnerc { background: #ff9800; }
.vertical-tabs .tufidco { background: #e040fb; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .announcement-text { font-size: 2.1rem; }
    .vertical-tabs a { width: 100%; text-align: center; padding: 10px 0; }
}
@media (max-width: 767.98px) {
    .announcement-card { padding: 1.2rem 0.5rem; min-height: 200px; }
    .announcement-text { font-size: 1.3rem; }
}