:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --header-footer-bg: #007bff;
    --nav-link-color: white;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Update header, footer, nav-link to use variables */
.main-header,
.main-footer {
    background-color: var(--header-footer-bg);
}

.nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 0;
}

.nav-item {
    /* margin-left: 10px; */
    color: white;
}

.nav-item a {
    color: white;
    font-size: 18px;
}

.nav > .nav-item > .nav-link {
    color: white;
    font-size: 18px;
}

/* Fix dropdown menu visibility */
.dropdown-menu {
    /* display: none; */
    background-color: #ffffff; /* light background */
    color: #000000;            /* black text */
    border: 1px solid #ddd;
    z-index: 1050;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Fix submenu link styles */
.dropdown-item {
  color: #000000 !important;       /* Force black text */
  font-weight: 400;
  background-color: transparent !important;
}

.dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #007bff !important;
}

.dropdown-toggle::after {
    margin-left: 0.3em;
    vertical-align: 0.1em;
}

/* =============================
   Layout Reset & Base Structure
   ============================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* =============================
   Header Layout (Main Header)
   ============================= */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    height: 130px;
}

.main-header h1 {
    font-size: 3.0rem;
    margin: 0;
    font-weight: 700;
    color: white;
}

.header-left img {
    height: 120px;
}

.header-center {
    flex-grow: 1;
    text-align: center;
}

.header-center .header-slogan {
    font-size: 1.4rem;
    font-weight: bold;
}

.header-right .nav {
    gap: 10px;
}

/* =============================
   Main Content Area
   ============================= */
main {
    flex: 1 0 auto;
    padding: 20px;
    overflow-y: auto;
}


main .col-md-3 {
    width:15%
}

/* =============================
   Footer Layout (Main Footer)
   ============================= */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 20px 30px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.main-footer a {
    color: white;
    margin-left: 10px;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* =============================
   Typography & Elements
   ============================= */
h1, h2, h3 {
    color: #2c3e50;
}

p {
    margin: 0px;
    /* margin-bottom: 0px; */
}

.text-justify {
    text-align: justify;
}

/* =============================
   Images & Cards
   ============================= */
img {
    max-width: 100%;
    height: auto;
}

.card img {
    object-fit: cover;
}

.rounded-circle {
    border: 2px solid #ccc;
    padding: 3px;
}

/* =============================
   Buttons
   ============================= */
.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* =============================
   Mission Page Styles
   ============================= */


.mission-section {
    padding: 20px 20px;
}

.mission-section h2 {
    margin-top: 0px;
    font-size: 48px;
    color: #1937a5;
}

.mission-block {
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.mission-text {
    flex: 1 1 50%;
}

.mission-text h3 {
    font-size: 48px;
    color: #007bff;
}

.mission-text p {
    font-size: 24px;
}

.mission-image {
    flex: 1 1 40%;
    text-align: center;
}

.mission-block img {
    max-height: 280px;
    width: auto;
}

/* =============================
   Board Page Styles
   ============================= */

.board-section {
    padding: 20px 20px;
}

.board-section h2 {
    margin-top: 0px;
    margin-bottom: 15px;
    font-size: 48px;
    color: #1937a5;
}

.board-section p {
    font-size: 24px;
    line-height: 1.3;
}

.board-title {
    font-size: 48px;
    font-weight: bold;
    /* margin: 10px 0 10px; */
    color:#007bff;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    text-align: center;
}
.member-table {
    width: 60%;
    margin: auto;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.member-table td {
    padding: 20px;
    vertical-align: top;
    width: 33%;
}
.member-card {
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    padding: 5px;
    line-height: 1.2;
    height: 100%;
}
.member-card img {
    height: 200px;
    object-fit: cover;
    margin-bottom: 5px;
    border-radius: 6px;
}

.member-card h5 {
    padding: 0px;
    margin: 0px;
    font-size: 18px;
    color: brown;
}

.member-card .designation {
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
}

.member-card .mobile {
    margin-top: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: bold;
    color: #003366;
}

.member-card .address {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 10px;
}

/* =============================
   Photo, Press & Event Page Styles
   ============================= */

.photo-section {
    padding: 20px 20px;
}

.photo-section h2 {
    margin-top: 0px;
    margin-bottom: 15px;
    font-size: 48px;
    font-weight: bold;
    color: #1937a5;
}

.photo-title {
    font-size: 48px;
    font-weight: bold;
    /* margin: 10px 0 10px; */
    color:#007bff;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    text-align: center;
}
.photo-table {
    width: 100%;
    margin: auto;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.photo-table td {
    padding: 20px;
    vertical-align: top;
    width: 33%;
}
.photo-card {
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    padding: 5px;
    line-height: 1.2;
    height: 100%;
}
.photo-card img {
    height: 200px;
    object-fit: cover;
    margin-bottom: 5px;
    border-radius: 6px;
}

.photo-card .ptitle {
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.photo-card .pdesc {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 12px;
}
