/* 
   Isha Paramedical & Educational Institute
   Theme: Formal, Academic, Trustworthy, Government-Style
*/

:root {
    --primary-color: #0B2C4D; /* Navy Blue - Trust, Integrity */
    --secondary-color: #FFFFFF; /* White - Cleanliness */
    --bg-light: #F5F7FA; /* Light Grey - Backgrounds */
    --text-main: #333333; /* Dark Grey - Readability */
    --text-light: #555555; /* Medium Grey */
    --border-color: #DDDDDD; /* Subtle Borders */
    
    --font-stack: 'Poppins', 'Roboto', 'Inter', sans-serif;
    
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 { font-size: 2.0rem; }
h2 { font-size: 1.8rem; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; margin-bottom: 25px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 15px; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout Utilities */
.container {
    max-width: 1140px; /* Standard Bootstrap width */
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding { padding: 60px 0; }
.bg-white { background-color: #ffffff; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Buttons - Solid Blue, Formal */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    border-radius: 4px; /* Slight roundness, not pill */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #07203a;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-green { /* Keeping as secondary action if needed, but styling distinct */
    background-color: #2E7D32; 
    border-color: #2E7D32;
}
.btn-green:hover { background-color: #1b5e20; }

/* Header - Top Bar */
.top-bar {
    background-color: #05192b; /* Very Dark Blue */
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left, .top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-top-news {
    background-color: #3b5998;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #fff;
}

.top-right a { color: #fff; font-weight: 500; }

.font-controls {
    display: flex;
    gap: 5px;
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
}
.font-controls span { cursor: pointer; font-size: 0.8rem; padding: 0 4px; }

.lang-select select {
    background: #fff;
    border: none;
    padding: 2px 5px;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
}

.social-mini { display: flex; gap: 10px; }
.social-mini a { color: #fff; opacity: 0.8; }
.social-mini a:hover { opacity: 1; }

.btn-pay {
    background-color: #28a745;
    padding: 4px 12px;
    border-radius: 3px;
    color: #fff !important;
    font-weight: 600;
}

/* Main Header Container */
.main-header {
    background-color: #ffffff;
    padding: 0;
    position: relative;
    box-shadow: none; /* Shadow moved to navbar */
}

/* Logo Bar (White Area) */
.logo-bar {
    padding: 10px 0;
    background: #fff;
}

.logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo { display: flex; align-items: center; gap: 15px; }
.main-logo img { height: 75px; width: auto; }
.logo-text h1 { font-size: 1.4rem; font-weight: 700; color: #000; margin: 0; line-height: 1.1; }
.logo-text p { font-size: 0.9rem; font-weight: 600; color: #555; margin: 0; text-transform: uppercase; }

.right-logos { display: flex; gap: 20px; align-items: center; }
.gov-logo img { height: 50px; width: auto; }

/* Navigation Bar (Dark Blue Area) */
.nav-bar-wrapper {
    background-color: var(--primary-color); /* Navy Blue */
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar { height: 55px; display: flex; align-items: center; }

.nav-menu {
    display: flex;
    height: 100%;
    align-items: center;
    list-style: none;
    width: 100%;
}

.nav-menu > li { height: 100%; display: flex; align-items: center; }

.nav-link {
    display: inline-block;
    color: #fff;
    padding: 0 20px;
    height: 55px;
    line-height: 55px; /* Vertically center */
    font-size: 0.95rem;
    font-weight: 500;
    border-right: 1px solid rgba(255,255,255,0.15); /* Pipe Separator */
    text-transform: capitalize;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: #07203a; /* Darker Blue on Hover */
    color: #fff;
    border-bottom: none; /* Remove old border style */
}

.nav-menu > li:last-child .nav-link { border-right: none; }

/* Dropdown */
.dropdown { position: relative; height: 100%; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 55px; /* Match new navbar height */
    left: 0;
    background: #fff;
    min-width: 220px;
    border-top: 3px solid var(--primary-color); /* Navy accent */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1050;
}

.dropdown:hover .dropdown-content { display: block; }

.nav-link i { transition: transform 0.3s ease; margin-left: 5px; }
.dropdown:hover .nav-link i { transform: rotate(180deg); }

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    text-transform: capitalize;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hamburger { display: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px; /* Reduced specific height */
    display: flex;
    align-items: center; /* Center Vertically */
    background-color: #0B2C4D;
}
.hero-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.4;
}
.hero-overlay { display: none; } /* Handled by opacity on image container bg */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}
.hero-content h1 {
    font-size: 2.8rem; letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: #fff; border: none; margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.2rem; color: #eee; margin-bottom: 30px; font-weight: 400;
}
.badge-banner {
    background: #fff; color: var(--primary-color);
    padding: 5px 15px; font-weight: 600; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 1px; display: inline-block; margin-bottom: 15px;
}

/* Content Sections - Clean Boxes */
.course-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.course-cat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.course-cat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cat-image { height: 180px; overflow: hidden; border-bottom: 1px solid #eee; width: 100%; flex-shrink: 0; }
.cat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.course-cat-card:hover img { transform: scale(1.02); }

.cat-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cat-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); border: none; padding: 0; }
.cat-content p { font-size: 0.9rem; color: #666; margin-bottom: 15px; }
.cat-list li {
    font-size: 0.9rem; margin-bottom: 5px; padding-left: 15px; position: relative; color: #555;
    border-bottom: 1px dashed #eee; padding-bottom: 5px;
}
 .cat-list li:last-child { border-bottom: none; }

/* Notices - List Style */
.notices-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid var(--primary-color);
}
.notice-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex; align-items: flex-start; gap: 15px;
}
.notice-list li:hover { background-color: #fcfcfc; }
.date-badge {
    background: var(--primary-color); color: #fff;
    padding: 5px 10px; text-align: center; border-radius: 3px; min-width: 60px;
}
.date-badge span { display: block; }

/* Footer - 3 Columns, Dark */
.main-footer {
    background-color: #0B2C4D;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo h2 { color: #fff; border: none; padding: 0; text-transform: uppercase; font-size: 1.4rem; }
.footer-col h3 {
    color: #fff; margin-bottom: 20px; font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; display: block; width: 100%;
}
.footer-col ul li { margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.social-icons a {
    width: 32px; height: 32px; font-size: 0.9rem;
    background: rgba(255,255,255,0.1); border-radius: 3px;
}

/* Table Style (Formal) */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.95rem; }
th { background: #eee; padding: 10px; text-align: left; font-weight: 600; border: 1px solid #ddd; }
td { padding: 10px; border: 1px solid #ddd; }

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .top-bar { display: none; } /* Hide top info bar on mobile for cleaner look, or stack it */
    
    .logo-wrapper { flex-direction: column; gap: 15px; text-align: center; }
    .main-logo { flex-direction: column; gap: 5px; }
    .right-logos { display: none; } /* Hide extra logos on mobile space */
    
    .nav-bar-wrapper { position: relative; }
    .navbar { height: auto; padding: 10px 0; justify-content: space-between; }
    
    .nav-menu {
        display: none; width: 100%; flex-direction: column; align-items: flex-start;
        position: absolute; top: 100%; left: 0; background: var(--primary-color);
        padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active { display: flex; }
    
    .nav-menu > li { width: 100%; display: block; height: auto; }
    
    .nav-link { 
        height: auto; line-height: 2.5; padding: 0 20px; width: 100%; 
        border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); 
    }
    
    .dropdown-content { 
        position: static; box-shadow: none; border: none; padding-left: 20px; 
        display: none; background: rgba(0,0,0,0.1); width: 100%;
    }
    .dropdown-content a { color: #eee; border-color: rgba(255,255,255,0.05); }
    
    .dropdown.active .dropdown-content { display: block; } /* Javascript toggle needed for mobile */
    .dropdown:hover .dropdown-content { display: none; } /* Disable hover on mobile, rely on click */
    .dropdown.active:hover .dropdown-content { display: block; }

    .hamburger { display: block; color: #fff; margin-left: auto; padding-right: 15px; }
    
    .hero-section { height: 400px; text-align: center; }
    .hero-content h1 { font-size: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; }
}

/* Admin Specific Overrides */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { background: #1a202c; }
.sidebar a { color: #cbd5e0; }
.sidebar a:hover { color: #fff; background: #2d3748; }
/* New Section Specific Styles */ .bg-primary { background-color: var(--primary-color); } .text-white { color: #fff; } .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 { color: #fff !important; border-color: #fff; } .section-padding-sm { padding: 40px 0; } .achievements-grid { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; gap: 30px; } .achievement-item { flex: 1; min-width: 200px; } .achievement-item i { font-size: 2.5rem; color: #fff; opacity: 0.8; margin-bottom: 10px; } .achievement-item h3 { font-size: 2.5rem; color: #fff; margin-bottom: 5px; border: none; } .achievement-item p { color: #ddd; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; } .feature-box { text-align: center; padding: 30px; border: 1px solid #eee; border-radius: 8px; transition: var(--transition); background: #fff; } .feature-box:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--primary-color); } .icon-box { width: 70px; height: 70px; background: var(--bg-light); border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary-color); transition: var(--transition); } .feature-box:hover .icon-box { background: var(--primary-color); color: #fff; } .feature-box h3 { font-size: 1.2rem; margin-bottom: 10px; } .facilities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .facility-item { position: relative; height: 250px; border-radius: 8px; overflow: hidden; } .facility-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; } .facility-item:hover img { transform: scale(1.1); } .facility-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 20px; color: #fff; } .facility-overlay h4 { color: #fff; margin: 0; font-size: 1.2rem; } .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .testimonial-card { background: rgba(255,255,255,0.1); padding: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); } .testimonial-card p { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; color: #eee; } .testimonial-card h4 { margin: 0; color: #fff; font-size: 1rem; text-align: right; } .event-card h3 { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 15px; } .event-card li { margin-bottom: 8px; border: none; padding: 0; }

/* Page Header Specific Override */
.page-header h1 { color: #fff !important; border: none; padding: 0; margin: 0; }
