/* Dstss Theme - Dhara Adarsha Degree College */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SolaimanLipi', 'Kalpurush', 'Nikosh', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('/idea/public/image/bgmain.gif') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Main content overlay for readability over background image */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Header styles */
.header-top {
    background: rgba(45, 95, 63, 0.95);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .contact-info span {
    margin-right: 20px;
}

.header-main {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section img {
    height: 80px;
    margin-right: 15px;
}

.college-name {
    color: #2d5f3f;
}

.college-name h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.college-name .subtitle {
    font-size: 14px;
    color: #666;
}

.principal-section {
    text-align: center;
}

.principal-section img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.principal-section .name {
    font-size: 14px;
    font-weight: bold;
    color: #2d5f3f;
}

.principal-section .title {
    font-size: 12px;
    color: #666;
}

/* Navigation */
.navigation {
    background: #2d5f3f;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: #1a3d2b;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2d5f3f;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #1a3d2b;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #1a3d2b;
}

/* Notice bar */
.notice-bar {
    background: #f0f8ff;
    padding: 10px 0;
    border-top: 2px solid #2d5f3f;
}

.notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-label {
    background: #2d5f3f;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.notice-text {
    flex: 1;
    margin-left: 20px;
    color: #333;
}

.notice-date {
    color: #666;
    font-size: 14px;
}

/* Hero slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: rgba(45, 95, 63, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slider-item {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 95, 63, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-content {
    text-align: center;
    color: #fff;
}

.slider-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.slider-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Notice board section */
.notice-section {
    background: #fff;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notice-header {
    background: #2d5f3f;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 18px;
    font-weight: bold;
}

.notice-list {
    padding: 20px;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-title {
    flex: 1;
    color: #333;
    text-decoration: none;
}

.notice-title:hover {
    color: #2d5f3f;
}

.notice-date-small {
    color: #666;
    font-size: 14px;
    margin-right: 15px;
}

.notice-link {
    background: #2d5f3f;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
}

.notice-link:hover {
    background: #1a3d2b;
}

/* Quick links grid */
.quick-links {
    margin: 30px 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-category {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #2d5f3f;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #e8f4f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 8px;
}

.link-list a {
    color: #333;
    text-decoration: none;
    padding-left: 15px;
    position: relative;
}

.link-list a:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #2d5f3f;
    font-size: 10px;
}

.link-list a:hover {
    color: #2d5f3f;
}

/* Sidebar */
.sidebar-section {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    background: #2d5f3f;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
}

.sidebar-content {
    padding: 20px;
}

/* Service cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #2d5f3f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 24px;
}

/* Footer */
footer {
    background: rgba(45, 95, 63, 0.95);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p, 
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #4a7c59;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-text {
        margin: 10px 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }

/* Additional animations */
.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* News and Course Pages Styles */
.news-item {
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.recent-news-item:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
}

.admission-info {
    border-left: 4px solid var(--primary-color);
}

.no-news {
    animation: fadeIn 1s ease-in-out;
}

/* Contact Form Styles */
.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 95, 63, 0.25);
    outline: none;
}

/* Pagination Styles */
.pagination-wrapper .pagination {
    justify-content: center;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Enhanced responsive styles */
@media (max-width: 768px) {
    .hero-slider h1 {
        font-size: 24px;
    }
    
    .hero-slider p {
        font-size: 14px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .course-card {
        margin-bottom: 30px;
    }
    
    .news-item .row .col-md-3,
    .news-item .row .col-md-9 {
        margin-bottom: 15px;
    }
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .college-name h1 {
        font-size: 20px;
    }
    
    .slider-content h2 {
        font-size: 24px;
    }
    
    .principal-section {
        margin-top: 20px;
    }
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2d5f3f;
    color: #fff;
}

.btn-primary:hover {
    background: #1a3d2b;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
}