/* Global Styles */
:root {
    --primary: #074359;
    --secondary: #376677;
    --accent: #ff6600;
    --light: #f8f9fa;
    --dark: #07526e;
    --white: #ffffff;
    --gray: #6c757d;
    --dark-gray: #495057;
}

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

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-md-6 { width: 50%; }
.col-lg-8 { width: 66.6667%; }
.col-lg-4 { width: 33.3333%; }
.col-md-3 { width: 25%; }
.col-lg-3 { width: 25%; }
.col-md-4 { width: 33.3333%; }

.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.me-2 { margin-right: 0.5rem; }
.me-1 { margin-right: 0.25rem; }
.ms-3 { margin-left: 1rem; }

.text-center { text-align: center; }
.text-md-end { text-align: right; }
.text-md-start { text-align: left; }

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

.top-bar .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* News Ticker Styles */
.news-ticker {
    flex-grow: 1;
    overflow: hidden;
    margin: 0 20px;
    position: relative;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.notification-label {
    font-weight: bold;
    color: rgb(63, 14, 14);
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-content span {
    margin-right: 40px;
    display: inline-block;
    /* color: #074359; */
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Navigation */
.navbar {
    background-color: rgba(119, 19, 19, 0.907);
    padding: 8px;
    margin-bottom: 30px;
}

.navbar-dark {
    color: var(--white);
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    padding: 10px 15px;
    display: block;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--white);
    background-color: rgba(255,255,255,0.1);
}

.login-btn {
    font-family: 'Times New Roman', Times, serif;
      background-color: white;
      color: brown;
      border: 2px solid brown;
      padding: 10px 20px;
      font-size: 16px;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s ease;
    }

    .login-btn:hover {
      background-color: brown;
      color: white;
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: 10px;
    min-width: 220px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    color: var(--dark);
    padding: 10px 15px;
    display: block;
    border-bottom: 1px solid #eee;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    content: "▾";
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

/* Logo Section */
.logo-container {
    background: linear-gradient(to right, #07384a 0%, #5da1ad 20%, #ffffff 50%, #5da1ad 80%, #043446 100%);
    padding: 10px 0;
}

.logo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-wrap: nowrap;
}

.logo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #074359;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0; 
    margin: 0 15px; 
}

.logo {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.text-center {
    flex: 1;
    padding: 0 20px;
    min-width: 200px; 
}

.text-center h1 {
    margin: 0;
    font-size: 23px;
    color: #042835;
}

.text-center h2 {
    font-size: 20px;
    color: #042835;
    margin-bottom: 10px;
}

.text-center p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #074359;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slider-item.active {
    opacity: 1;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 30px;
}

.slider-caption h3 {
    font-size: 24px;
    margin-bottom: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
}

.slider-btn {
    background-color: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Notice Board */
.notice-board {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 400px;
    overflow: hidden;
    position: relative;
}

.notice-title {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    font-size: 18px;
    margin: 0;
}

.notice-list {
    position: absolute;
    width: 100%;
    animation: scroll-up 15s linear infinite;
}

.notice-item {
    border-bottom: 1px solid #eee;
}

.notice-item a {
    display: block;
    padding: 12px 15px;
    color: brown;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-item a:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

@keyframes scroll-up {
    0% { top: 50%; }
    100% { top: -100%; }
}


/* Welcome Section */
.welcome-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section-title {
    background: linear-gradient(to bottom, #407284, #ffffff, #407284);
    color: var(--primary);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    width: 70%;
}

/* Principal Card */
.principal-card {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.principal-img {
    width: 90%;
    height: 200px;
    object-fit: cover;
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 50px;
}

.principal-info {
    padding: 20px;
}

.principal-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: rgba(135, 39, 39, 0.907);
    font-weight: 600;
}

/* Vision & Mission */
.vision-mission {
    margin-bottom: 30px;
}

.vision-box, .mission-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.vision-box {
    border-top: 5px solid var(--primary);
}

.mission-box {
    border-top: 5px solid rgba(129, 59, 59, 0.907);
}

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

.bullet-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.bullet-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent);
    font-size: 12px;
}

/* Footer */
.footer {
    background: #074359;
    color: var(--white);
    padding: 50px 0 0;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

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

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

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 30px;
    font-size: 14px;
    text-align: center;
    color: white;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .section-title {
        width: 85%;
    }
}

@media (max-width: 992px) {
    .col-lg-8, .col-lg-4, .col-lg-3 {
        width: 100%;
    }
    
    .text-md-end, .text-md-start {
        text-align: left;
    }
    
    .news-ticker {
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
    }
    
    .top-bar .col-md-6:first-child {
        width: 100%;
    }
    
    .top-bar .col-md-6:last-child {
        width: 100%;
        text-align: left;
    }
    
    .navbar-nav {
        flex-direction: column;
        display: none;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .section-title {
        width: 100%;
    }
    
    .principal-img {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .col-md-6, .col-md-3, .col-md-4 {
        width: 100%;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slider-caption h3 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .logo-content {
        flex-direction: column;
    }
    
    .logo-circle {
        margin: 10px auto;
    }
    
    .text-center h1 {
        font-size: 20px;
    }
    
    .text-center h2 {
        font-size: 18px;
    }
    
    .text-center p {
        font-size: 14px;
    }

     .footer-widget h4::after {
        left: 350px;
    }
}

@media (max-width: 576px) {
    .slider-caption {
        padding: 15px;
    }
    
    .slider-caption h3 {
        font-size: 16px;
    }
    
    .notice-board, .hero-slider {
        height: 300px;
    }
    
    .welcome-section, .vision-box, .mission-box {
        padding: 20px;
    }
    
    .footer-widget h4 {
        font-size: 16px;
    }

    .footer-widget h4::after {
        left: 150px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
}

/* Responsive Adjustments for Logo Container Only */
@media (max-width: 768px) {
    .logo-content {
        flex-direction: row; 
        overflow-x: auto; 
        padding-bottom: 10px; 
        justify-content: center; 
        flex-wrap: nowrap;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
        margin: 0 10px;
    }
    
    .text-center {
        padding: 0 10px;
        min-width: 150px;
    }
    
    .text-center h1 {
        font-size: 18px;
    }
    
    .text-center h2 {
        font-size: 16px;
    }
    
    .text-center p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        padding: 10px 0;
    }
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .text-center {
        min-width: 100px;
    }
    
    .text-center h1 {
        font-size: 10px;
    }
    
    .text-center h2 {
        font-size: 10px;
    }
    .text-center p {
        font-size: 5px;
    }
}

