/* style.css */

/* ===============================
   Variables & Base Styles
   =============================== */
:root {
    --primary-color: #1E3A8A;
    /* Indigo-800 */
    --secondary-color: #3B82F6;
    /* Blue-500 */
    --accent-color: #F59E0B;
    /* Amber-500 */
    --text-color: #1F2937;
    /* Gray-800 */
    --bg-light: #F9FAFB;
    /* Gray-50 */
    --bg-dark: #1E40AF;
    /* Indigo-900 */
    --white: #ffffff;
    --border-radius: 0.5rem;
    --transition-speed: 0.3s;
    --max-width: 1200px;
    --container-padding: 1rem;

    /* Dropdown height control */
    --dropdown-max-height: 300px;
    /* Adjust as needed */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Utility Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Headings */
h1,
h2,
h3,
h4 {
    color: var(--bg-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color var(--transition-speed);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    /* Gray-300 */
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-top: 0.5rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    /* Blue-500 @20% */
}

/* ===============================
     Header & Navigation
     =============================== */
.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    max-height: 50px;
}

.main-nav {
    position: relative;
}

/* Top-level nav list */
.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

/* Each nav-item needs to be position: relative so dropdowns align under it */
.nav-item {
    position: relative;
}

/* Top-level links */
.nav-item>a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem;
    display: inline-block;
    transition: color var(--transition-speed);
}

.nav-item>a:hover {
    color: var(--accent-color);
}

/* Dropdown container (hidden by default) */
.nav-item .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    list-style: none;
    max-height: var(--dropdown-max-height);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    z-index: 50;
}

/* Style scrollbar (optional, for WebKit browsers) */
.nav-item .dropdown::-webkit-scrollbar {
    width: 8px;
}

.nav-item .dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.nav-item .dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Dropdown items */
.nav-item .dropdown li {
    margin: 0;
}

.nav-item .dropdown li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.nav-item .dropdown li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Show dropdown on hover (desktop) */
.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Nav Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Active hamburger state */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* ===============================
     Sections
     =============================== */
.section {
    padding: 4rem 0;
}

/* About Section */
.about-section {
    background-color: var(--white);
    text-align: center;
}

/* Trades Section */
.trades-section {
    background-color: var(--bg-light);
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--bg-dark);
}

/* Faculty Section */
.faculty-section {
    background-color: var(--white);
}

.faculty-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.faculty-member {
    text-align: center;
}

.faculty-member img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

/* Facilities Section */
.facilities-section {
    background-color: var(--bg-light);
    text-align: center;
}

.facilities-list {
    list-style: disc inside;
    margin-top: 1.5rem;
}

/* Monitoring Section */
.monitoring-section {
    background-color: var(--white);
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Improved Footer Styles */
.site-footer {
    background: #000;
    color: #f3f4f6;
    margin-top: 4rem;
    padding: 3rem 0 1.2rem 0;
    font-size: 1rem;
    box-shadow: 0 -2px 16px 0 rgba(0, 0, 0, 0.12);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
}

.footer-col {
    flex: 1 1 220px;
    min-width: 200px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: #f3f4f6;
    opacity: 0.85;
    transition: color 0.2s, opacity 0.2s;
    font-size: 1rem;
    padding-left: 0.2rem;
}

.footer-col ul li a:hover {
    color: #f59e0b;
    opacity: 1;
    text-decoration: underline;
}

.footer-col address {
    font-style: normal;
    line-height: 1.7;
    color: #f3f4f6;
    opacity: 0.92;
    font-size: 1rem;
}

.footer-col address a {
    color: #3b82f6;
    text-decoration: none;
    opacity: 1;
    transition: color 0.2s;
}

.footer-col address a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.98rem;
    color: #bfc6d1;
    opacity: 0.85;
    letter-spacing: 0.2px;
}

@media (max-width: 900px) {
    .footer-columns {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        padding-bottom: 1.2rem;
    }

    .footer-col {
        min-width: 0;
        width: 100%;
    }
}

/* ===============================
     Slider (Hero) Styles (Image-Based)
     =============================== */
.slider-section {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    min-height: 10vh;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

/* Each slide is stacked; only .slide-active is visible */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-active {
    opacity: 1;
    z-index: 1;
}

/* Ensure slide <img> covers entire area */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
    /* Above slides */
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.dot-active {
    background-color: var(--accent-color);
}

/* ===============================
     Responsive Breakpoints
     =============================== */
@media (min-width: 768px) {

    /* Desktop layouts */
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .slider-container {
        height: 40vh;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.show {
        right: 0;
    }

    .nav-list {
        position: relative;
        top: 70px;
        right: 0;
        transform: none;
        background-color: transparent;
        padding: 1rem;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item>a {
        padding: 1rem;
        display: block;
        font-size: 1.1rem;
        color: var(--white);
        position: relative;
    }

    /* Add dropdown arrow for items with dropdowns */
    .nav-item.has-dropdown>a::after {
        content: '▼';
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .nav-item.dropdown-open>a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Mobile dropdown styles */
    .nav-item .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding: 0;
    }

    .nav-item.dropdown-open .dropdown {
        max-height: 800px;
        padding: 0.5rem 0;
    }

    .nav-item .dropdown li {
        margin: 0;
    }

    .nav-item .dropdown li a {
        padding: 0.75rem 2rem;
        color: var(--white);
        font-size: 1rem;
        display: block;
    }

    .nav-item .dropdown li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Vision/Mission Banner Section Styles */
.vision-banner-section {
    background: #f8fafc;
    padding: 2.5rem 0 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.vision-banner-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vision-banner-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.vision-banner-col {
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vision-banner-profile {
    max-width: 180px;
    text-align: center;
}

.vision-profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.7rem;
}

.vision-profile-caption {
    font-size: 1.08rem;
    color: #22223b;
    font-weight: 500;
}

.vision-banner-logos {
    align-items: flex-start;
    flex: 2 1 400px;
    min-width: 320px;
}

.vision-logos-row {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.vision-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    padding: 0.3rem 0.7rem;
}

.vision-banner-text {
    text-align: center;
}

.vision-title {
    color: #8d3c7a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.vision-quote {
    font-size: 1.18rem;
    color: #22223b;
    font-style: italic;
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.6;
}

.vision-banner-bannerimg {
    max-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-banner-img {
    width: 100%;
    max-width: 240px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .vision-banner-row {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .vision-banner-col {
        min-width: 0;
        width: 100%;
        align-items: center;
    }

    .vision-banner-logos {
        min-width: 0;
    }

    .vision-banner-bannerimg {
        max-width: 100%;
    }

    .vision-banner-img {
        max-width: 100%;
    }
}

/* Modern Home List Section Styles */
.home-list-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.home-list {
    display: flex;
    flex-direction: row;
    flex: 1 1 0;
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-list li {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.img-rounded {
    border-radius: 14px;
}

.heading-pink {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.1rem;
    color: #DC214C;
    border-bottom: 4px solid #DC214C;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.heading-lblue {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.1rem;
    color: #479099;
    border-bottom: 4px solid #479099;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.heading-green {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.1rem;
    color: #85C226;
    border-bottom: 4px solid #85C226;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.news {
    margin: 0;
    padding: 0;
    width: 100%;
}

.news li {
    border-bottom: 1px dotted #4D616D;
    display: block;
    width: 100%;
    padding: 0 !important;
    list-style: circle;
    font-size: 1rem;
}

.news li:last-child {
    border-bottom: none;
}

.news li a {
    display: block;
    padding: 0.7rem 0.2rem 0.7rem 0;
    color: #1E3A8A;
    text-decoration: none;
    transition: color 0.2s;
    border-radius: 6px;
}

.news li a:hover {
    color: #DC214C;
    background: #fbe9ef;
}

/* Responsive adjustments */
@media (max-width: 900px) {

    .home-list-row,
    .home-list {
        flex-direction: column;
        gap: 1.2rem;
        align-items: stretch;
    }

    .home-list li {
        width: 100%;
        min-width: 0;
    }
}