/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;600;700&display=swap');

:root {
    --primary-color: #0047ab;
    /* Deep Blue */
    --secondary-color: #e65100;
    /* Saffron */
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mukta', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout */
.container {
    width: 100%;
    margin: 0;
    background: var(--card-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 15px;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-switcher a:hover {
    color: #fff;
}

.lang-switcher a.active {
    color: #ffeb3b;
    border-bottom: 2px solid #ffeb3b;
}

.header-main {
    padding: 10px 0 0 0;
}

.header-text-center {
    text-align: center;
    padding: 15px 0;
    margin: 0 0 20px 0;
    background-color: var(--secondary-color);
}

.header-top-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.header-mid-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.panel-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.symbol-box,
.photo-box {
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.symbol-box p,
.photo-box p {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 2;
}

.symbol-box span,
.photo-box span {
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.main-panel-title {
    font-size: 2.2rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    margin: 0 20px;
    border-radius: var(--radius);
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    box-shadow: var(--shadow);
}

/* Navigation */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    background: var(--primary-color);
}

.main-nav a {
    flex: 1;
    text-align: center;
    padding: 15px 5px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-nav a:last-child {
    border-right: none;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--secondary-color);
}

.nav-subline {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

/* Grid Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: 25px;
    padding: 25px 20px;
    flex: 1;
}

/* Sidebars */
.sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    align-self: start;
    width: 100%;
}

.sidebar-title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.award-box {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    background: var(--bg-color);
    transition: var(--transition);
    font-size: 1rem;
}

.award-box:hover {
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.slogan-scroll {
    overflow: hidden;
    height: 180px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff3e0;
    position: relative;
    margin-top: 20px;
}

.slogan-inner {
    position: absolute;
    width: 100%;
    animation: scrollUp 15s linear infinite;
}

.slogan-inner p {
    text-align: center;
    padding: 15px 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    border-bottom: 1px dashed #ffd54f;
}

@keyframes scrollUp {
    0% {
        top: 100%;
    }

    100% {
        top: -100%;
    }
}

.slogan-scroll:hover .slogan-inner {
    animation-play-state: paused;
}

.main-banner-area {
    border: 2px dashed #ccc;
    background: #fafafa;
    min-height: 400px;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}

.main-banner-area p {
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.upload-ph {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.upload-ph:hover {
    background: var(--secondary-color);
}

/* Main Content Area */
.main-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.content-body p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.pdf-placeholder {
    width: 100%;
    height: 500px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    border-radius: var(--radius);
}

.pdf-container {
    overflow-y: auto;
}

.pdf-container embed {
    height: 600px;
    width: 100%;
}

/* Photo Gallery Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.candidate-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
}

.candidate-photo {
    width: 100%;
    height: 150px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.candidate-name {
    padding: 10px;
    font-weight: 600;
    color: var(--primary-color);
    background: #f9f9f9;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.blog-item {
    display: flex;
    gap: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
}

.blog-item-full {
    flex-direction: column;
}

.blog-item-image {
    width: 300px;
    min-width: 300px;
    height: 200px;
    overflow: hidden;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-item-content {
    padding: 20px;
    flex: 1;
}

.blog-item-content .blog-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.blog-item-content .blog-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-item-content .blog-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
    }

    .blog-item-image {
        width: 100%;
        min-width: unset;
        height: 200px;
    }
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 25px;
    border-top: 4px solid var(--secondary-color);
}

.main-footer p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive Styles */
/* Responsive Styles Overhaul */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

    .sidebar-right {
        grid-column: 1 / -1;
        /* Move right sidebar to bottom */
        order: 10;
        display: none;
        /* Optionally hide on tablet if too crowded */
    }
}

/* Sidebar Navigation for Tablet and Mobile */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 90px;
    }

    .container {
        padding-left: var(--sidebar-width);
    }

    .main-nav {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--sidebar-width);
        height: 100vh;
        flex-direction: column;
        flex-wrap: nowrap;
        z-index: 10000;
        background: var(--primary-color);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .main-nav a {
        flex: 0 0 auto;
        padding: 20px 5px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .nav-subline {
        display: none;
        /* Hide sublines in narrow sidebar */
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }

    .sidebar-left,
    .sidebar-right {
        order: 2;
    }

    .main-content {
        order: 1;
        padding: 10px;
    }

    .header-main {
        padding: 5px 0 0 0;
    }

    .header-text-center {
        padding: 8px 10px;
        margin-bottom: 10px;
    }

    .header-top-text {
        font-size: 1.2rem;
    }

    .header-mid-text {
        font-size: 0.95rem;
    }

    .main-panel-title {
        font-size: 1.1rem;
        margin: 0 5px;
        padding: 8px 5px;
        flex: 1;
        min-width: 0;
    }

    .panel-title-container {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
        align-items: center;
        padding: 0 10px;
    }

    .symbol-box,
    .photo-box {
        width: 70px;
        height: 70px;
        min-width: 70px;
        padding: 5px;
        border-width: 1px;
    }

    .symbol-box img,
    .photo-box img {
        max-height: 50px !important;
        margin: 0;
    }

    .symbol-box p,
    .photo-box p {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-top-text {
        font-size: 1.1rem;
    }

    .main-panel-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --sidebar-width: 75px;
    }

    .main-nav a {
        font-size: 0.75rem;
        padding: 15px 2px;
    }

    .header-top-text {
        font-size: 0.95rem;
    }

    .header-mid-text {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .top-bar {
        flex-direction: column;
        gap: 3px;
        text-align: center;
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .main-panel-title {
        font-size: 0.9rem;
        padding: 5px 2px;
        margin: 0 2px;
    }

    .symbol-box,
    .photo-box {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .symbol-box img,
    .photo-box img {
        max-height: 40px !important;
    }
}

/* Accordion Styles */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: var(--card-bg);
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--bg-color);
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #e8f5e9;
}

.accordion-content.open {
    max-height: 2000px;
}

.accordion-content p {
    padding: 15px 20px;
    margin: 0;
    line-height: 1.8;
}