/* ============================================
   LYCEUM OF APARRI - PORTAL CSS
   Enhanced with backdrop effects and reusable CSS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;

    background-color:white;
      
   
}


/* ============================================
   HEADER STYLES - Reusable
   ============================================ */

/* Top Bar - Maroon */
.main-header {
    width: 100%;
    position: relative;
}

.top-bar {
    background: maroon;
    padding: 2px 0;
}

.top-bar-container {
    width: 100%;
    padding: 0;
    display: flex;
}

.logo-section {
    display: flex;
    gap: 15px;
    width: 100%;
}

.lyceum-logo {
    width: 150px;
    height: 180px;
    padding-left: 25px;

}

.university-info {
    flex-direction: column;
    gap: 5px;
}

.university-type {
    font-size: 26px;
    font-weight: 600;
    color: #d3d3d3;
    letter-spacing: 0.5px;
    font-family: "Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Palatino Linotype", cursive;
    margin-top: 10px;
}

.university-name {
    font-size: 36px;
    font-weight: 700;
    color: #f7f1f1;
    letter-spacing: 0.5px;
    font-family: 'Aboreto', serif;
}

.university-quotes {
   
    display:flex;
    flex-direction:column;
    gap: 3px;
    margin-top:8px;
}

.university-quote {
    font-weight: 1000;
    color: #e6a422;
    letter-spacing: 0.3px;
    font-family: "Times New Roman", Times, serif;
    font-size: 26px;
}
.f-italic{
    font-style: italic;
}
.f-white{
    color: white;
}

.div-center{
   width:100vh;
    padding-bottom: 60px;
    padding-top: 50px;
    font-weight: 900;
  
    
    font-weight: 500;
   
    letter-spacing: 0.3px;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 40px;
   
}

.university-tagline {
    font-size: 16px;
    font-weight: 550;
    color: #d8d8d8;
   font-family: "Times New Roman", Times, serif;
font-style: italic;
font-size: 30px;
text-align: center;
}

/* ============================================
   NAVIGATION BAR WITH DROPDOWN
   ============================================ */

.main-nav {
    background: linear-gradient(135deg, #680603 0%, #740404 50%, #850e06 100%);
    padding: 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: "Times New Roman", Times, serif;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-links li {
    position: relative;
}

.nav-links > li > a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 15px;
    font-size: 19px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-links > li > a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transform: translateX(-50%);
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.nav-links > li > a:hover::after {
    width: 80%;
}

.nav-links > li > a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-links > li > a.active::after {
    width: 80%;
}

/* Remove underline animation from dropdown arrows */
.nav-container > .nav-links .admission-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    background: none;
    box-shadow: none;
    transition: none;
}

.nav-container > .nav-links .admission-dropdown > a:hover::after {
    width: 0;
}

/* ============================================
   ADMISSION DROPDOWN STYLES (Desktop)
   ============================================ */

/* Dropdown for Admission */
.admission-dropdown {
    position: relative;
}

.admission-dropdown-content {
    display: none;
    position: absolute;
    box-sizing: border-box;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #2e65a5 0%, #2363ac 100%);
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 1001;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admission-dropdown:hover .admission-dropdown-content {
    display: block;
}

.admission-dropdown-content a {
    display: block;
    color: #ffffff;
    padding: 10px;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.admission-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #FFD700;
    padding-left: 25px;
}

/* Arrow indicator for dropdown */
.nav-container > .nav-links .admission-dropdown > a {
    position: relative;
}

.nav-container > .nav-links .admission-dropdown > a::before {
    content: '▼';
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-container > .nav-links .admission-dropdown:hover > a::before {
    transform: rotate(180deg);
}

/* ============================================
   MOBILE NAVIGATION STYLES
   ============================================ */

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;
    z-index: 1002;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Mobile Dropdown Navigation */
.dropdown-nav {
    display: none;
    position: absolute;
    outline:3px solid red;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #2e65a5 0%, #2363ac 100%);
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 280px;
    z-index: 1000;
}

.dropdown-nav.active {
    display: block;
    max-height: 900px;
    opacity: 1;
}

.dropdown-nav ul {
    padding: 2px 0;
    list-style: none;
    margin: 0;
}

.dropdown-nav li {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-nav.active li {
    transform: translateX(0);
    opacity: 1;
}

.dropdown-nav.active li:nth-child(1) { transition-delay: 0.1s; }
.dropdown-nav.active li:nth-child(2) { transition-delay: 0.15s; }
.dropdown-nav.active li:nth-child(3) { transition-delay: 0.2s; }
.dropdown-nav.active li:nth-child(4) { transition-delay: 0.25s; }
.dropdown-nav.active li:nth-child(5) { transition-delay: 0.3s; }
.dropdown-nav.active li:nth-child(6) { transition-delay: 0.35s; }
.dropdown-nav.active li:nth-child(7) { transition-delay: 0.4s; }

.dropdown-nav > ul > li > a {
    display: flex;
    align-items: center;
    padding: 5px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 18px;
}

.dropdown-nav > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
    padding-left: 40px;
}

/* Mobile Admission Submenu */
.mobile-admission-submenu {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-admission-submenu.active {
    display: block;
}

.mobile-admission-submenu a {
    display: block;
    padding: 12px 30px 12px 50px;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-admission-submenu a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #FFD700;
    padding-left: 55px;
}

/* Arrow for mobile dropdowns */
.dropdown-nav .admission-dropdown > a::after {
    content: '▼';
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown-nav .admission-dropdown.active > a::after {
    transform: rotate(180deg);
}



  

/* ============================================
   CARDS SECTION WITH BACKDROP
   ============================================ */



.fix-position{
    position: fixed;
    z-index: 10;
}
.text-center{
    text-align: center;
}

.programs-container{
     display:flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding:20px;
    min-height: 600px;
    
}

.fade-in {
  opacity: 0;
  transform: translateX(-50px) scale(0.95);
  animation: fadeInAnimation .5s forwards; /* 0.5s duration */
}

@keyframes fadeInAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.card-content {
    padding: 5px;
    display: flex;
    flex:1;
    flex-direction: column;
    z-index: 1;

}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 5px;
    font-family:'Times New Roman', Times, serif;
    position: relative;
    padding-bottom: 5px;
}



.card-title-date {
    font-size: 18px;
    color: #8B0000;
    margin-bottom: 5px;
    font-family:'Times New Roman', Times, serif;
    position: relative;
    padding-bottom: 5px;
}
.card-description {
    width: 100%;
    font-size: 18px;
    color: #0a0101;
    margin-bottom: 15px;
    padding-top: 15px;
    flex: 1;
    margin-left: 0px;
    text-align: justify;
}

.about-title {
    font-size: 30px;
    font-weight: bold;
    color: #9b0505;
    margin-bottom: 15px;
    padding-top: 15px;
    flex: 1;
    margin-left: 0px;
   
}

.about-title-center {
    font-size: 28px;
    font-weight: bold;
    color: #9b0505;
    margin-bottom: 15px;
    padding-top: 15px;
    flex: 1;
    margin-left: 0px;
    text-align: center;
    
}


.btn-align-center
{
    display: flex;
    justify-content: flex-end;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.card-button:hover::before {
    width: 300px;
    height: 300px;
}

.card-button:hover {
    background: linear-gradient(135deg, #B22222 0%, #DC143C 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.6);
}

.show-more-container {
    text-align: center;

}
.collection-grid{
    display: grid;
    grid-template-columns: 35% 65%;
    padding:10px;
}
.collection-grid-reversed{
    display: grid;
    grid-template-columns: 65% 35%;
    padding:10px;
}
.collection-col{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding:10px;
}
.display-grid{
    display: grid;
    padding:10px;
    gap:5px;
}
.grid-count-2{
    grid-template-columns: repeat(2,1fr);
}
.full-sized{
    width: 100%;
}

html{
    scroll-behavior: smooth;
}

.campus-tour-title {
    text-align: center;
    font-size: 52px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 20px;
    font-family: 'Aboreto', serif;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
    margin-top: 80px;
}


.campus-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.campus-tour-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}





.campus-tour-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 20px;
    font-family:'Times New Roman', Times, serif;
    position: relative;
    padding-bottom: 15px;
}

.campus-tour-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #8B0000, #0f3460);
    transition: width 0.3s ease;
}

.campus-tour-card:hover .campus-tour-card-title::after {
    width: 100%;
}

.campus-tour-card-description {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    flex: 1;
}
.programs-title {
    font-size: 40px;
    font-weight: 700;
    color: maroon;
    margin-bottom: 20px;
    font-family:'Times New Roman', Times, serif;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    text-align: center;
    padding:25px;
    align-items: center;
    justify-content: center;
    
}


.main-footer {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #DC143C 100%);
    color: #ffffff;
    padding: 40px 0 30px;
    margin-top: auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Top Section - Logo and Info Side by Side */
.footer-top-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.footer-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-lyceum-logo {
    width: 130px;
    height: auto;
    max-height: 150px;
}

.footer-info-wrapper {
    text-align: left;
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 8px;
    font-family:'Times New Roman', Times, serif;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.footer-address-line {
    font-size: 18px;
    color: #f7f1f1;
    line-height: 1.6;
    font-weight: 500;
}

/* Bottom Section - Social Icons Centered with Follow Us */
.footer-bottom-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.follow-us-text {
    font-size: 22px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 15px;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    
}

.footer-social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.footer-social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.footer-social-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}

.footer-social-icon.linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
}



/*-----------------------------------------------------FROM DJ--------------------------------*/
.row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding:20px;
}
.row1 {
    display: grid;
    grid-template-columns: 30% 70%;
    width: 100%;
    gap: 5px;
    padding:20px;
}

.core-rows{
        display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap:10px;
  
}
.bs-2{
    border:2px solid maroon;
}
.logo-description {
    display:flex;
    flex-direction: column;
    width: 100%;
    font-size: 20px;
    color: #0a0101;
    margin-bottom: 5px;
    flex: 1;
    margin:0 auto;
    text-align: center;
}
.s-desc {
    display:flex;
    flex-direction: column;
    width: 100%;
    font-size: 20px;
    color: #0a0101;
    margin-bottom: 5px;
    padding-left: 50px;
    flex: 1;
}
.logo-description1 {
    display:flex;
    flex-direction: column;
    width: 100%;
    font-size: 25px;
    color: #0a0101;
    margin-bottom: 5px;
    flex: 1;
    margin-left: 20px;
    text-align: justify;
}

.tier-list li {
width: 100%;
  padding: 10px;
  background-color: #f9fafb;
  margin-left: 150px;
  border-left: 4px solid #d1d5db;
  padding-left: 15px;
}
.top-margin-adjust{
    margin-top: 500px;
}
/* this is for corousel*/
.carousel-picture {
    position: relative;
    width: 100%;
    
    height:auto;
    overflow: hidden;
}
.picture-slides {
    
   display:flex;
    width: 100%;
    height: auto;
    transition: transform 0.8s ease-in-out;
   
    
    
}

.slide {
   
    width: 100%;
    
    height: 100%;
    max-height: 900px;
    
    object-fit: contain;
    flex-shrink: 0;
   
}
 

.navi {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    color: #fff;
    outline:none;
    border: none;
   
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
}

.container {
    position: relative;
    display: grid;
    grid-template-columns: 70% 30%;
   height: auto;
   
}
.container-no-max-height{
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 700px;
   
   
}



.right-box{
    display: flex;
    position:relative;
    color: black;
    align-items: center;
   flex-direction: column;
}
.inside-box{
 
    
    padding: 5px;
    background-color: maroon;
    align-items: center;
    justify-content: center;

   
 
}
.message{
    padding: .5em;
    width:100%;
    color: black;
    font-size: 20px;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    max-height: 900px;
    overflow-y: auto;
   
 
}

.message-picture{
    display: flex;
   width:100%;
    margin: 0 auto;
    height: auto;
}
.p-name{
    
    text-align: center;
    padding: 5px;
}
.larger{
    font-size: 24px;
    font-weight: bolder;
}
.smaller{
    font-size: 20px;
    font-weight: lighter;
    padding: 5px;
}
.brag{
    position: absolute;
    top: 30%;
    left:50%;
    transform: translateY(-50%);
    transform: translateX(-50%);
    background: none !important;
    color: #fff;
    outline:none;
    border: none;
    
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
}
.brag-center{
    text-align: center;
    font-size: 60px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 20px;
    font-family:'Times New Roman', Times, serif;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7);
}
.previous {
    left: 10px;
}
.next {
    right: 10px;
}
.picture-row{
        /*display: grid;
    grid-template-columns: repeat(5, 1fr);*/
    display: flex;
    gap:10px;
     background: rgba(255, 255, 255, 0.98);
    padding:10px;
    width: 100%;
   height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

}
.org-pics{
        display: flex;
        flex-wrap: wrap;
    gap:50px;
    width: 100%;
    align-items: center;
    justify-content: center;   
}
.logo-wrapper{
    display:flex;
    flex-direction: column;
    width:100%;
    max-width: 300px;
    height: auto;
 
}
.items-center{
   align-items: center;
    justify-content: center;
}
.logo-wrapper1{
    display:flex;
    flex-direction: column;
    flex:0 0 auto;
    width:100%;
    max-width: 400px;
    height: auto;
    padding: 2px;
    border-radius: 5px;
}
.logo-wrapper1:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.6);
    cursor: pointer;
}

.logopic{
    width:250px;
    max-height: 220px;
    object-fit: contain;
    
}
.program-pic{
    width:100%;
    max-height: 300px;
    object-fit: cover;
    
}
.resize-pic{
    max-width: 200px;
    max-height: 250px;
    border-radius: 25px;
}
.deptlogo{
    width: 100%;
    height: auto;
    object-fit: cover;
}
.pic-round{
    
    border-radius: 150px;
}
.one-line{
    white-space: nowrap;
}
.pf-cover{
    object-fit: cover;
}
.pf-size{
    width: 100%;
    height: auto;
}
.h-500{
    height: 900px;
}
.f-24{
    font-size: 24px;
}
.f-22{
    font-size: 22px;
}
.f-20{
    font-size: 20px;
}
.f-16{
    font-size: 16px;
}
.f-60{
    font-size: 60px;
}
.f-28{
    font-size: 28px
}
.f-36{
    font-size: 36px;
}
.scroll-x{
    overflow-x: auto;
    overflow-y: hidden;
}
.wrap-line{
    white-space: normal;
}
.left-figure{
    position: absolute;
    font-weight: bolder;
    width: 20%;
    color: white;
    left:10%;
    bottom: 5%;
    z-index: 11;
}
.center-figure{
    position: absolute;
    font-weight: bolder;
    width: 20%;
    color: white;
    left:40%;
    bottom:5%;
    z-index: 555;
}
.right-figure{
    position: absolute;
    font-weight: bolder;
    width: 20%;
    color: white;
    left: 72%;
    bottom: 5%;
    z-index: 11;
}
.card-content-ellipse{
    width: 100%;
    padding: 2px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s ease;
}
.card-content-ellipse.expanded{
    border-radius: 16px;     /* becomes rectangle */
  aspect-ratio: auto;

}
.text {
  overflow: hidden;
  max-height: 4.5em;       /* controls preview text */
  transition: max-height 0.4s ease;
}



.read-more {
  margin-top: auto;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-weight: bold;
  padding:1em;
}

.read-more:hover{
    background-color: #575757;
  border-radius: 4px;
  padding-left: 5px;
}


 .ad-body { background:url("../images/gate.PNG") no-repeat center center fixed; background-size:cover; min-height:100vh; }

.ad-container { max-width:1200px; margin:auto; padding:50px 20px; }

 .ad-section {
        display:flex;
        gap:30px;
        margin-bottom:50px;
        flex-wrap:wrap;
    }
    .ad-box {
        background-color: rgba(255,255,255,0.95);
        padding:30px;
        border-radius:12px;
        box-shadow:0 8px 20px rgba(0,0,0,0.3);
        flex:1;
        min-width:280px;
    }

    .ad-box { 
        color: #4B0000; 
        margin-bottom:15px; 
        border-bottom:2px solid #4B0000; 
        padding-bottom:5px; 
    }

    ul { list-style: disc inside; line-height:1.8; color:#333; }
    .guide-step { display:flex; align-items:flex-start; margin-bottom:15px; }
    .guide-step-number {
        background-color: #4B0000; 
        color:white;
        font-weight:bold;
        width:35px;
        height:35px;
        display:flex;
        justify-content:center;
        align-items:center;
        border-radius:50%;
        margin-right:15px;
        flex-shrink:0;
    }
    .guide-step-content { margin-bottom:5px; color:#4B0000; font-size:1rem; font-weight:700; }
    .guide-step-content { color:#555; line-height:1.6; font-size:0.95rem; }


.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  overflow-y:auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
  background: white;
  color:black;
  width: 100%;
  padding: 20px;
  border-radius: 15px;
}

.modal-body {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 20px;
}

/* Left Image */
.modal-left img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Right Text */
.modal-right {
  padding:10px;
  overflow-y: auto;
}

.modal-right h2 {
  margin-bottom: 10px;
}



.close {
  float: right;
  font-size: 30px;
  cursor: pointer;
}
.title{
    font-size: 22px;
}
.btn-light{
    width:150px;
    background: rgb(105, 2, 2);
    color:rgb(245, 243, 243);
    border-radius: 5px;
    font-size: 22px;
    cursor: pointer;
    padding:5px;
    top:2em;
    align-self: center;

}
.btn-light:hover{
    background: linear-gradient(135deg, #041574 0%, #4f65e2 100%);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.6);
}

.cards-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    
    
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.video-container{
    position: relative;
   display: flex;

}
.videos{
    border: 3px solid #999;
    width: 90%;
    height: auto;
    
}
.videos.inactive{
    border: 3px solid #999;
    filter: grayscale(100%) brightness(0.7);
    background: #000;
}
.videos.playing{
    filter:none;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}
.sidebar {
    position:absolute;
   width: 100%;
   max-width: 20%;
   height: auto;
  background-color: maroon;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  justify-self: right;
  right: .5%;
  top:5%;
  
}

.sidebar a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 5px 0;
}

.sidebar a:hover {
  background-color: #575757;
  border-radius: 4px;
  padding-left: 5px;
}
.border-bottom{
    border-top: 2px solid white;
    padding:4px
}
.height-min-500{
    min-height: 500px;
}

/* ============================================
TABLET (≤ 1400px)
============================================ */
@media (max-width:1400px){
    .container{
        grid-template-columns: 1fr;
        margin-top: 1%;
    }
    .right-box{
        height: auto;
    }
    .inside-box{
        height: auto;
    }
    .message{
        height: auto;
    }
}
/* ============================================
TABLET (≤ 1200px)
============================================ */
@media (max-width:1200px){
    .container{
        grid-template-columns: 1fr;
        margin-top: 1%;
    }
    .right-box{
        max-height: 900px;
    }
    .inside-box{
        height: 100%;
    }
}

/* ============================================
TABLET (≤ 992px)
============================================ */
@media (max-width: 992px) {


/* HEADER */



.lyceum-logo {
width: 120px;
height: auto;
}


/* NAV */
.nav-links {
display: flex;
}


.menu-toggle {
display: none;
}


/* LAYOUT */
.container {
grid-template-columns: 1fr;
margin-top: -10%;
}

.row,
.row1 {
grid-template-columns: 1fr;
}

/* CARDS */
.cards-grid {
grid-template-columns: repeat(2, 1fr);
}


.card-content {
padding: 20px;
}


/* TEXT SCALE */
.card-description,
.logo-description,
.logo-description1 {
font-size: 20px;
margin-left: 0;
}
}

/* ============================================
MOBILE (≤ 576px)
============================================ */
@media (max-width: 576px) {


/* HEADER TEXT */
.university-type {
font-size: 20px;
}


.university-name {
font-size: 22px;
}


.university-quote {
font-size: 14px;
}


/* NAV MOBILE */
.dropdown-nav {
right: 10px;
left: 10px;
width: auto;
overflow: visible;
}
.admission-dropdown-content li{
    padding:5px;
}
.nav-links{
    display: none;
}
.menu-toggle{
    display:flex;
    margin-right: 2%;
    margin-top: -10%;
}

.container{
    grid-template-columns: 1fr;
    margin-top:-9%;
}

.left-figure,
.center-figure,
.right-figure{
    font-size: 28px;
}
.card-description{
    padding:10px;
}
/* CARDS */
.cards-grid {
grid-template-columns: 1fr;
}

.message-picture{
    width: 100%;

}
.card-title {
font-size: 20px;
}

.card-description {
font-size: 14px;
}


/* IMAGES */
img {
max-width: 100%;
height: auto;
}


/* PADDING REDUCTION */
.cards-section,
.cards-section1,
.cards-section2,
.cards-section3 {
padding: 25px 15px;
}


/* FOOTER */
.footer-top-section {
flex-direction: column;
text-align: center;
}


.footer-info-wrapper {
text-align: center;
}

}

