/* =========================================================
   CUChEAA Stylesheet
   =========================================================
   TABLE OF CONTENTS
   ---------------------------------------------------------
   01. Global Styles
   02. Header & Navbar
   03. Sections & Feature Boxes
   04. Social Buttons & Floating Icons
   05. Hero Section & Carousel
   06. Typography Responsive
   07. Topbar Responsive Alignment
   08. Footer
   09. Text Effects (Blink, Scroll)
   10. Recruiter Logos Scroll
   11. Dropdown Submenu
   12. News & Events Section
   13. Scroll Container
   14. Student Notice Section
   15. Illustrious Alumni Zoom Effect
   ========================================================= */


/* =========================================================
   01. GLOBAL STYLES
   ========================================================= */
body {
    background: linear-gradient(135deg, #0c2d48, #145374);
    font-family: 'Poppins', sans-serif;
    color: #222;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #222;
}

.container {
    max-width: 1140px !important;
}

/* Utility Colors */
.text-brown {
    color: rgb(165, 42, 42) !important;
}

.bg-brown {
    background-color: rgb(165, 42, 42) !important;
}

.border-brown {
    border-color: rgb(165, 42, 42) !important;
}

.text-orange {
    color: #EB984E !important;
}

.bg-orange {
    background-color: #EB984E !important;
}

.border-orange {
    border-color: #EB984E !important;
}

.text-green-light {
    color: #1FB26B !important;
}

.bg-green-light {
    background-color: #1FB26B !important;
}

.border-green-light {
    border-color: #1FB26B !important;
}


/* =========================================================
   02. HEADER & NAVBAR
   ========================================================= */
.header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
}

.elite-navbar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 10px;
    z-index: 999;
}

.nav-link {
    font-weight: 600;
    color: #333 !important;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* Hamburger toggler */
.toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.4s;
}

.custom-toggler.active .top-bar {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler.active .middle-bar {
    opacity: 0;
}

.custom-toggler.active .bottom-bar {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-toggler {
    margin-left: auto;
}

/* Dropdown styling */
.dropdown-menu {
    border-radius: 10px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
}

/* Mobile menu adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        text-align: center;
        background: white;
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .navbar-nav {
        align-items: center;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        padding: 12px;
    }

    .dropdown-menu {
        position: static !important;
        text-align: center;
    }
}


/* =========================================================
   03. SECTIONS & FEATURE BOXES
   ========================================================= */
.section-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.section-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-box {
    background: #d9d3c3;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    border-right: 1px solid #aaa;
}

.feature-box:last-child {
    border-right: none;
}

/* Responsive stacking on mobile */
@media (max-width: 768px) {
    .feature-box {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #aaa;
    }

    .feature-box:last-child {
        border-bottom: none;
    }
}

/* =========================================================
   04. SOCIAL BUTTONS & FLOATING ICONS
   ========================================================= */
.sf-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.sf-btn.facebook {
    background: #1877f2;
}

.sf-btn.x {
    background: #000;
}

.sf-btn.linkedin {
    background: #0a66c2;
}

.sf-btn.whatsapp {
    background: #25d366;
}

.sf-btn.copy {
    background: #6c757d;
}

.sf-btn:hover {
    transform: translateY(-4px);
}

.social-float {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

@media (max-width: 768px) {
    .social-float {
        right: 5px;
    }
}


/* =========================================================
   05. HERO SECTION & CAROUSEL
   ========================================================= */

.hero-section {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
}

/* Image zoom animation */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomHero 12s infinite alternate ease-in-out;
}

@keyframes zoomHero {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* Remove overlay completely */
.hero-overlay {
    display: none !important;
}

/* Caption styling */
.carousel-caption.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 700px;
    text-align: center;
    background: none !important;   /* no black box */
    text-shadow: none !important;  /* no shadow */
    padding: 0 !important;         /* remove Bootstrap padding */
}

/* Headline */
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    animation: fadeUp 1s ease;
}

/* Paragraph */
.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    color: #fff;
    animation: fadeUp 1.5s ease;
}

/* Buttons */
.hero-content .btn {
    border-radius: 30px;
    font-weight: 500;
}

/* Fade-up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }
}


/* =========================================================
   06. TYPOGRAPHY RESPONSIVE
   ========================================================= */
.association-title {
    font-size: 1.75rem;
}

@media (max-width: 576px) {
    .association-title {
        font-size: 1.2rem;
        text-align: center;
    }
}


/* =========================================================
   07. TOPBAR RESPONSIVE ALIGNMENT
   ========================================================= */
.topbar-container {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 576px) {
    .topbar-container {
        justify-content: center;
        text-align: center;
    }
}


/* =========================================================
   08. FOOTER
   ========================================================= */
.footer-box {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 12px;
}

/* =========================================================
   09. TEXT EFFECTS (Blink, Scroll)
   ========================================================= */
.blink {
    animation: blink-animation 2s steps(2, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.scroll-left {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 8s linear infinite;
}

.scroll-left:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(50%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.scroll-alternate {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-alternate 5s ease-in-out infinite alternate;
}

.scroll-alternate:hover {
    animation-play-state: paused;
}

@keyframes scroll-alternate {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-150%);
    }
}

.scroll-link {
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

.scroll-link.yellow {
    color: #faed26;
}

.scroll-link.cyan {
    color: #3feee6;
}

.scroll-link.green {
    color: limegreen;
}

.scroll-link.pink {
    color: #f0f;
}


/* =========================================================
   10. RECRUITER LOGOS SCROLL
   ========================================================= */
.recruiter-scroll {
    display: flex;
    gap: 20px;
    animation: scroll-logos 25s linear infinite;
}

.recruiter-scroll:hover {
    animation-play-state: paused;
}

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

.recruiter-logo {
    width: 144px;
    height: 144px;
    object-fit: contain;
}

.bg-cream {
    background-color: #d9d3c3;
}


/* =========================================================
   11. DROPDOWN SUBMENU
   ========================================================= */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}


/* =========================================================
   12. NEWS & EVENTS SECTION
   ========================================================= */
.section-box hr {
    margin: 0.25rem 0 !important;
}

.section-box .row {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-box .row:last-child {
    margin-bottom: 0 !important;
}

.text-justify {
    text-align: justify;
}

.bordered {
    margin-left: 0;
    margin-right: auto;
    width: 250px;
    height: 265px;
    padding: 5px;
    border: 3px solid yellowgreen;
}


/* =========================================================
   13. SCROLL CONTAINER
   ========================================================= */
.scroll-container {
    overflow: hidden;
    white-space: nowrap;
}

.scroll-content {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}


/* =========================================================
   14. STUDENT NOTICE SECTION
   ========================================================= */
.notice-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.notice-container ul {
    position: absolute;
    width: 100%;
    animation: scroll-up 10s linear infinite;
    margin: 0;
    padding: 0;
    list-style: none;
}

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


/* =========================================================
   15. ILLUSTRIOUS ALUMNI ZOOM EFFECT
   ========================================================= */
.zoomin img {
    height: 100px;
    width: 100px;
    transition: all 2s ease;
    display: inline-block;
    vertical-align: top;
}

.zoomin img:hover {
    width: 400px;
    height: 300px;
}


/* first executive committee overlay fixed */
.committee-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 223, 108, 0.85); /* semi-transparent yellow */
  max-width: 500px;
  width: 90%;
}

/* Mobile adjustment */
@media (max-width: 576px) {
  .committee-overlay {
    position: static;      /* no absolute positioning */
    transform: none;       /* reset translate */
    margin-top: 1rem;      /* spacing below image */
    width: 100%;           /* full width on mobile */
  }
}
