/* === Global Theme Settings === */
:root {
    --bg-light-sky: #E0F7FA;
    --text-deep-green: #00695C;
    --text-dark: #004D40;
    --accent-green: #26A69A;
    --font-primary: 'Montserrat', 'Segoe UI', sans-serif;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 105, 92, 0.1);
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light-sky);
    color: var(--text-dark);
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #151515;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #38bdf8; /* Light blue */
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
    outline: none;
}

/* Buttons */
button,
input[type="submit"],
.btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    border: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Primary button look */
.btn-primary {
    background-color: #0d6efd;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-success {
    background-color: #198754;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-info {
    background-color: #0dcaf0;
    color: #fff;
}

/* Small Badge */
.badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
    border-radius: 4px;
}

/* Table Enhancements */
table th, table td {
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Label and form spacing */
label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #555;
}

.form-group, .mb-3 {
    margin-bottom: 1rem;
}


ul{
    list-style-type: none;
}
a {
    text-decoration: none;
}

/* === Header === */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

/* === Navbar & Logo === */
.logo img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.navbar {
    flex-grow: 1;
    margin-left: 30px;
}

form.d-flex {
    margin-left: 20px;
}

@media (max-width: 992px) {
    .navbar, form.d-flex {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* === Nav Links & Dropdown === */
.navbar-nav .nav-link {
    padding: 8px 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-deep-green);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-green);
}

.navbar-nav .dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--white);
    border: 1px solid #ddd;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 9999;
}

.nav-item:hover .custom-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-deep-green);
    white-space: nowrap;
    transition: background 0.3s ease;
}

.custom-dropdown .dropdown-item:hover {
    background-color: #e8f5e9;
    color: var(--accent-green);
}

.custom-dropdown.columns-2 {
    width: 400px;
    column-count: 2;
    column-gap: 20px;
}
.custom-dropdown.columns-3 {
    width: 600px;
    column-count: 3;
    column-gap: 20px;
}

/* === Sticky Header === */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.sticky-active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #f9f9f9;
}

/* === Forms === */
input, textarea, select {
    width: 100%;
    padding: 10px 15px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 5px var(--accent-green);
}

/* === Buttons === */
.btn-green {
    background-color: var(--text-deep-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.btn-green:hover {
    background-color: var(--accent-green);
    transform: scale(1.05);
}

/* === Go To Top Button === */
#goTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--text-deep-green);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px 16px;
    font-size: 20px;
    display: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
#goTopBtn:hover {
    background-color: var(--accent-green);
    transform: scale(1.1);
}

#ui-to-top {
    display: none;
}

/* === Footer === */
footer {
    background-color: var(--white);
    border-top: 2px solid var(--accent-green);
    padding: 30px 0;
    font-size: 15px;
}
footer h5 {
    color: var(--text-deep-green);
    margin-bottom: 15px;
}
footer a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--accent-green);
}

/* === Cards === */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}

/* === Sections === */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    color: var(--text-deep-green);
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
}

/* === Slideshow === */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.slideshow-container .slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}
.slideshow-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slideshow-container .slide:first-child {
    display: block;
}
.slideshow-container .prev,
.slideshow-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 30px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* === Utilities === */
.text-deep-green { color: var(--text-deep-green) !important; }
.bg-sky { background-color: var(--bg-light-sky) !important; }
.rounded-xl { border-radius: 20px !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .sidebar-left, .sidebar-right {
        margin-top: 1rem;
    }
    .float-start {
        float: none !important;
        display: block;
        margin: 0 auto 1rem;
        max-width: 100% !important;
    }
}

/* === Animation Keyframes (Optional) === */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}


.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.fade-in.loaded {
    opacity: 1;
}

