/* AMC College Website Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SolaimanLipi', 'Kalpurush', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    background: url("../../bg_main.gif") repeat-y scroll center top rgba(0, 0, 0, 0);
}



/* Container and Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header-section {
    background: linear-gradient(135deg, #1e74a7, #2141bb);
    padding: 10px 0;
}

.college-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.college-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.college-title {
    color: white;
    font-size: 0px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44,85,48,0.7) 0%, rgba(74,124,89,0.5) 100%);
}

/* Navigation Menu */
.navigation-menu {
    background: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 10px;
}

.nav-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-tab:hover::before {
    left: 100%;
}

.nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Navigation Tab Colors */
.nav-tab.campus-tab { border-bottom: 3px solid #f06292; color: #333; }
.nav-tab.admission-tab { border-bottom: 3px solid #ffb74d; color: #333;}
.nav-tab.departments-tab { border-bottom: 3px solid #ba68c8; color: #333;}
.nav-tab.administration-tab { border-bottom: 3px solid #4dd0e1; color: #333;}
.nav-tab.academic-tab { border-bottom: 3px solid #7986cb; color: #333;}
.nav-tab.students-tab { border-bottom: 3px solid #81c784; color: #333;}
.nav-tab.results-tab { border-bottom: 3px solid #ff8a65; color: #333;}
.nav-tab.resources-tab { border-bottom: 3px solid #a1887f; color: #333;}
.nav-tab.gallery-tab { border-bottom: 3px solid #90a4ae; color: #333;}
.nav-tab.notice-tab { border-bottom: 3px solid #ffd54f; color: #333;}
.nav-tab.journal-tab { border-bottom: 3px solid #9575cd; color: #333;}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-image-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.main-event-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-event-image:hover {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Slider Styles */
.home-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-item {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeEffect 1.5s;
}

.slider-item.active {
    display: flex;
}

@keyframes fadeEffect {
  from {opacity: .4}
  to {opacity: 1}
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slider-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-content p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Slider Control Styles */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 20px;
    text-align: center;
}

.slider-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-control.prev {
    left: 15px;
}

.slider-control.next {
    right: 15px;
}

/* Notice Section */
.notice-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50, #81c784);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.notice-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c5530;
}

.notice-list {
    list-style: none;
}

.notice-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.notice-item:hover {
    background-color: #f0f8f0;
    padding-left: 10px;
}

.notice-link {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-link::before {
    content: '';
    font-size: 16px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sidebar-header {
    background: linear-gradient(135deg, #1e74a7, #2141bb);
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.sidebar-content {
    padding: 20px;
}

/* Principal Section */
.principal-photo {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.principal-info {
    text-align: center;
    line-height: 1.8;
}

.principal-name {
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 5px;
}

.principal-title {
    color: #666;
    font-size: 14px;
}

/* Golden Jubilee Section */
.jubilee-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.jubilee-text {
    text-align: center;
    color: #2c5530;
    font-weight: bold;
}

/* Important Links */
.links-list {
    list-style: none;
}

.links-item {
    margin-bottom: 10px;
}

.links-item a {
    background: url("bg_block_list.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.links-item a:hover {
    background: #f0f8f0;
    color: #2c5530;
    transform: translateX(5px);
}

.links-item a::before {
    content: '';
    background: url("bg_block_list.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
    font-size: 14px;
}

.links-item ul li {
background: url("bg_block_list.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
    background-position-x: 0px;
    background-position-y: 0px;
  font-size: 120%;
  height: auto;
  list-style-type: none;
  margin-bottom: 5px;
  padding-left: 32px;
  padding-top: 0px;
  padding-bottom: 8px;
  background-position: left;
}


/* Audio Player */
.audio-player {
    width: 100%;
    margin: 10px 0;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    height:220px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e91e63, #ff9800, #9c27b0, #00bcd4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c5530;
}

.service-links {
    list-style: none;
}

.service-links li {
    margin-bottom: 0px;
    list-style-image: url("bullet_arrow.png");
}

.service-links a {
    text-decoration: none;
    color: #555;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.service-links a:hover {
    background: #f0f8f0;
    color: #2c5530;
    padding-left: 15px;
}

/* Service Card Colors */
.campus-card .service-icon { background: linear-gradient(135deg, #e91e63, #f06292); }
.admission-card .service-icon { background: linear-gradient(135deg, #ff9800, #ffb74d); }
.administration-card .service-icon { background: linear-gradient(135deg, #f44336, #ef5350); }
.academic-card .service-icon { background: linear-gradient(135deg, #3f51b5, #7986cb); }
.students-card .service-icon { background: linear-gradient(135deg, #4caf50, #81c784); }
.results-card .service-icon { background: linear-gradient(135deg, #00bcd4, #4dd0e1); }
.resources-card .service-icon { background: linear-gradient(135deg, #795548, #a1887f); }
.gallery-card .service-icon { background: linear-gradient(135deg, #607d8b, #90a4ae); }
.notice-card .service-icon { background: linear-gradient(135deg, #ff5722, #ff8a65); }
.departments-card .service-icon { background: linear-gradient(135deg, #9c27b0, #ba68c8); }

/* Video Section */
.video-section {
    margin: 30px 0;
}

.video-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.video-iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #1e74a7, #2141bb);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.college-info {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #4a7c59;
    padding-top: 20px;
    font-size: 14px;
    color: #ccc;
}


/* Responsive wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Basic table style */
.table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: #fff;
  font-family: "Noto Sans Bengali", sans-serif;
}

/* Table borders */
.table th,
.table td {
  padding: 0.75rem;
  vertical-align: middle;
  border: 1px solid #dee2e6;
  text-align: center;
}

/* Table header background (thead-light) */
.thead-light th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: bold;
  font-size: 1rem;
}

/* Zebra row hover */
.table tbody tr:hover {
  background-color: #f1f1f1;
}

/* Secondary total row */
.table-secondary td {
  background-color: #e9ecef;
  font-weight: bold;
}

/* Primary total row */
.table-primary td {
  background-color: #cce5ff;
  font-weight: bold;
}

/* Center the empty state */
.text-center {
  text-align: center;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.text-muted {
  color: #6c757d;
}

/* Font Awesome icon styling (optional) */
.text-muted i {
  color: #adb5bd;
}

/* Responsive font size */
@media (max-width: 768px) {
  .table th, .table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}



/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
     .slider-item {
        height: 190px !important;
    }
    
     .slider-content h3 {
        font-size: 1.5rem;
    }
    
    .slider-content p {
        font-size: 1rem;
    }
    
    .nav-tab {
        width: 90%;
        text-align: center;
    }
    
    .college-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
}


@media (max-width: 576px) {
    
     .slider-item {
        height: 250px;
    }
    
    .slider-content {
        padding: 1rem;
    }
    
    .slider-content h3 {
        font-size: 1.2rem;
    }
    
}
/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5530;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Row – use flexbox to line up columns */
.mb-3 {
  margin-bottom: 1rem !important;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  box-sizing: border-box;
}

/* Base column styles */
[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

/* For medium screens and up (≥768px) */
@media (min-width: 768px) {
  .col-md-2 {
    flex: 0 0 16.66666667%;
    max-width: 16.66666667%;
  }
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
}
