/* ShreeNath College - Professional Website Styles - Sky Blue Theme */

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --accent-color: #38bdf8;
    --dark-color: #0c4a6e;
    --light-color: #f0f9ff;
    --white: #ffffff;
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-light: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Top Bar */
.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-left span i {
    color: var(--accent-color);
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.top-bar-right a {
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.top-bar-right a:hover {
    color: var(--white);
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background: var(--white);
    padding: 25px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

.logo img {
    max-height: 130px;
    width: auto;
    display: block;
}

.header-content {
    text-align: center;
    padding-left: 20px;
}

.college-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.college-tagline {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.header-accreditations {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.accreditation {
    background: var(--gradient);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Navigation */
.main-nav {
    background: var(--gradient);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-nav .navbar-nav {
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.main-nav .nav-link {
    color: var(--white);
    padding: 18px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.main-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
    margin-top: 15px;
    padding: 10px 0;
    min-width: 240px;
    background: var(--white);
}

.main-nav .dropdown-item {
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-color);
}

.main-nav .dropdown-item:last-child {
    border-bottom: none;
}

.main-nav .dropdown-item:hover {
    background: var(--gradient-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.main-nav .dropdown-toggle::after {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.main-nav .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Nested Dropdown Submenu */
.main-nav .dropdown-submenu {
    position: relative;
}

.main-nav .dropdown-submenu > .dropdown-menu {
    left: 100%;
    top: 0;
    margin-top: 0;
    margin-left: 0;
    display: none;
    border-radius: 0 8px 8px 0;
    min-width: 200px;
}

.main-nav .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.main-nav .dropdown-submenu > .dropdown-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-right: 35px;
}

.main-nav .dropdown-submenu > .dropdown-item:hover {
    background: var(--gradient-light);
}

.main-nav .dropdown-submenu > .dropdown-item .bi-chevron-right {
    font-size: 12px;
    margin-left: 10px;
    position: absolute;
    right: 15px;
}

.main-nav .navbar-toggler {
    border: none;
    padding: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.main-nav .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 550px;
}

.hero-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-slider .carousel-caption {
    background: transparent;
    padding: 50px;
    border-radius: 15px;
    bottom: 15%;
    backdrop-filter: none;
    box-shadow: none;
}

.hero-slider .carousel-caption h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-slider .carousel-caption p {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-slider .carousel-caption .btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Welcome Section */
.welcome-section {
    background: var(--white);
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.welcome-content .lead {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.8;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 35px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gradient-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    color: var(--white);
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.welcome-image img:hover {
    transform: scale(1.02);
}

.btn-custom {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(14, 165, 233, 0.3);
}

.btn-custom:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

/* Leadership Section */
.leadership-section {
    background: var(--gradient-light);
    padding: 80px 0;
}

.leadership-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.leadership-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.25);
    border-color: var(--accent-color);
}

.leadership-image {
    min-height: 280px;
    overflow: visible;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.leadership-card:hover .leadership-image img {
    transform: scale(1.1);
}

.leadership-info {
    padding: 30px;
    text-align: center;
}

.leadership-info h3 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.leadership-designation {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.leadership-message {
    font-style: italic;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    background: var(--gradient-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Activities Section */
.activities-section {
    background: var(--white);
    padding: 80px 0;
}

.activity-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.2);
    border-color: var(--accent-color);
}

.activity-content {
    padding: 25px;
}

.activity-content h4 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.activity-date {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.activity-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.activity-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.activity-btn:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: translateY(-2px);
}

.activity-content h4 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.activity-date {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.activity-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 25px;
}

.footer-about h3 {
    color: var(--accent-color);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 20px;
}

.footer-links h4 {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
    transform: translateX(5px);
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 15px;
    display: block;
}

.footer-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 575.98px) {
    .footer-map iframe {
        height: 240px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-map iframe {
        height: 260px;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-social a {
    color: var(--white);
    font-size: 22px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    color: var(--white);
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .college-name {
        font-size: 24px;
    }
    
    .college-tagline {
        font-size: 16px;
    }
    
    .header-accreditations {
        justify-content: center;
    }
    
    .main-nav .navbar-nav {
        background: var(--primary-color);
        padding: 15px 0;
    }
    
    .main-nav .nav-link {
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav .dropdown-menu {
        background: rgba(0, 0, 0, 0.1);
        border: none;
        padding-left: 20px;
    }
    
    .main-nav .dropdown-item {
        color: var(--white);
        padding: 12px 18px;
    }
    
    .main-nav .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .hero-slider .carousel-item {
        height: 450px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 32px;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    
    .main-header {
        padding: 20px 0;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .header-content {
        padding-left: 10px;
    }
    
    .college-name {
        font-size: 20px;
    }
    
    .college-tagline {
        font-size: 14px;
    }
    
    .header-accreditations {
        display: none;
    }
    
    .hero-slider .carousel-item {
        height: 350px;
    }
    
    .hero-slider .carousel-caption {
        padding: 30px;
        bottom: 10%;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 26px;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
    }
    
    .leadership-image {
        height: 220px;
    }
    
    .activity-card img {
        height: 180px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 22px;
    }
    
    .welcome-content .lead {
        font-size: 16px;
    }
    
    .leadership-info {
        padding: 20px;
    }
    
    .leadership-info h3 {
        font-size: 20px;
    }
    
    .activity-content {
        padding: 20px;
    }
    
    .activity-content h4 {
        font-size: 18px;
    }
    
    .main-header .row {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content {
        padding-left: 0;
        margin-top: 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent-color);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--gradient);
    color: var(--white);
    transform: translateX(5px);
}

.admin-content {
    background: var(--light-color);
    min-height: 100vh;
    padding: 30px;
}

.admin-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.admin-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--dark-color);
    color: var(--white);
}

.table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: var(--gradient);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: var(--gradient-light);
}