/*
Theme Name: sunyattain
Theme URI: http://www.sunyattain.org
Author: Mark Porada
Author URI: http://www.sunyattain.org
Description: Custom WordPress theme for SUNY-ATTAIN
Version: 1.0
Text Domain: sunyattain
*/

/* Import Lato font */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

/* Global Styles */
body {
    font-family: "Lato", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f4f8;
}

/* Container Styles */
.container-custom,
.container-1000px {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    flex: 1;
}

/* Header Styles */
header {
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Content */
header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
}

/* Logo Section */
header .site-branding {
    margin-bottom: 10px;
    text-align: center;
}

header .site-branding img {
    max-height: 150px;
    width: auto;
}

/* Sticky Navigation Menu */
.navbar {
    position: relative; /* Initially below the logo */
    width: 100%;
    background: linear-gradient(90deg, #0056b3, #007bff);
    padding: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    z-index: 999;
}

/* Sticky Effect When Scrolling */
.sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 86, 179, 0.95);
    padding: 0.5rem 1rem;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Navbar Links */
.navbar .navbar-brand,
.navbar .navbar-nav .nav-link {
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 8px;
}

/* Highlight Current Menu Item */
.navbar .navbar-nav .current-menu-item > .nav-link,
.navbar .navbar-nav .current_page_item > .nav-link {
    color: #ffc107;
    font-weight: 700;
    background-color: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    border-radius: 5px;
}

/* Hover Effect */
.navbar .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #cce5ff;
    border-color: #cce5ff;
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
    background: #0056b3;
    border-radius: 5px;
    min-width: 180px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

/* Dropdown Menu Links */
.navbar-nav .dropdown-menu .dropdown-item {
    color: white;
    transition: all 0.3s ease-in-out;
    padding: 10px 15px;
}

/* Dropdown Hover Effect */
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background: #007bff;
    color: #ffc107;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        margin: 0;
        display: flex;
        align-items: center;
        height: 40px;
        margin-bottom: 8px;
    }

    /* Hamburger Icon */
    .navbar-toggler-icon {
        background: none;
        color: #fff;
        font-size: 25px;
        width: 25px;
        height: 25px;
        display: block;
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
    }

    .navbar-collapse {
        background: linear-gradient(180deg, #0056b3, #007bff);
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .navbar-nav {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0;
    }

    .navbar .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        margin: 5px 0;
        border-radius: 5px;
    }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        background: linear-gradient(180deg, #0056b3, #007bff);
        margin-top: 5px;
    }
}


/* Logo Styling */
header .site-branding img {
  max-height: 150px; /* Default size */
  width: auto;
  transition: all 0.3s ease-in-out; /* Smooth resizing effect */
}

/* Responsive Logo Resizing */
@media (max-width: 768px) {
  header .site-branding img {
      max-height: 100px; /* Smaller logo on tablets */
  }
}

@media (max-width: 480px) {
  header .site-branding img {
      max-height: 80px; /* Even smaller logo on phones */
  }
}


/* Accessibility */
.navbar a:focus {
    outline: none;
    text-decoration: underline;
}


/* Footer CSS */

.custom-footer {
  background: linear-gradient(45deg, #0047ab, #0077ff);
  color: white;
  padding: 30px 0;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1000px;
  /* Set the max width to 1000px */
  margin: 0 auto;
  padding: 0 20px;
  /* Adjust padding for spacing */
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  /* Allow sections to stack on smaller screens */
}

.col-md-4 {
  padding: 20px;
  width: 100%;
  /* Make sections full-width on mobile */
  box-sizing: border-box;
  /* Ensure padding does not affect width */
  white-space: nowrap;
  /* Prevent text from wrapping */
  flex-shrink: 0;
  /* Prevent shrinking of the sections */
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
  /* Slightly smaller font size for footer headings */
  font-weight: bold;
}

.footer-left p {
  margin: 5px 0;
  line-height: 1.6;
  font-size: 12px;
  /* Slightly smaller font for text in footer */
}

ul.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.social-links li {
  margin-bottom: 5px;
}

ul.social-links li a {
  text-decoration: none;
  color: white;
  font-size: 12px;
  /* Slightly smaller font size for social links */
  transition: color 0.3s ease;
}

ul.social-links li a:hover {
  color: #ffe600;
}

/* Mobile View */
@media (max-width: 768px) {
  .custom-footer {
    font-size: 12px;
    /* Reduce font size for mobile */
  }

  h3 {
    font-size: 14px;
    /* Smaller font size for headings on mobile */
  }

  .footer-left p {
    font-size: 12px;
    /* Smaller font size for paragraph text */
  }

  ul.social-links li a {
    font-size: 12px;
    /* Smaller font for social links on mobile */
  }

  .footer-container {
    padding: 0 20px;
  }

  .row {
    flex-direction: column;
    /* Stack sections vertically on mobile */
  }

  .col-md-4 {
    width: 100%;
    /* Make sections full-width on mobile */
    text-align: left;
    /* Keep content left-aligned */
    margin-bottom: 20px;
    /* Add space between sections */
  }
}

/* Desktop View - Ensure horizontal layout */
@media (min-width: 769px) {
  .row {
    flex-direction: row;
    /* Keep the sections horizontal on desktop */
  }

  .col-md-4 {
    width: 33.33%;
    /* Each section takes up 1/3 of the container */
  }
}


/* Custom Styles */

.iframe-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.iframe-container iframe {
  width: 70%;
  /* Adjust as needed */
  height: 1250px;
  /* Keep the original height */
  max-width: 100%;
}

a[href^="tel"] {
  color: white !important;
  text-decoration: none;
}

section[data-aos]:hover {
  transform: scale(1.02) !important;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

iframe#calendarFrame {
  min-height: 600px;
  /* Adjust if needed */
  transition: height 0.3s ease-out;
}

/* Footer Section */
.social-links {
  display: flex;
  align-items: center;
}

.social-tooltip {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

a[aria-label="Facebook"]:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
}

a[aria-label="Instagram"]:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
}

a[aria-label="TikTok"]:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
}

a[aria-label="YouTube"]:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
}

.contact-link {
  display: inline-block;
  background: #0073e6;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease-in-out;
}

.contact-link:hover {
  background: #005bb5;
}

/* Enroll Button */
.enroll-btn {
  position: relative;
  display: inline-block;
}

.enroll-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.enroll-btn:hover .enroll-tooltip {
  opacity: 1;
  visibility: visible;
}

/* This is for Tab on the main Page */
.custom-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tab-header {
  background: #72ccef;
  color: white;
  padding: 10px 20px;
  margin-bottom: 20px;
  font-weight: bold;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

card-body {
  padding: 20px;
}

/* More Flyers Button */
.btn-custom {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  font-weight: 700;
  border: 2px solid #ffc107;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  cursor: pointer;
}

.btn-custom:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #cce5ff;
  border-color: #cce5ff;
}