/*
    Theme Name: SAMS
    Theme URI: https://tekalsa.com/themes/sams
    Author: TekALSA
    Author URI: https://tekalsa.com
    Description: A basic theme for a university admission portal (SAMS).
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: basic, university, admissions, responsive-layout, one-column, custom-menu
    Text Domain: sams
*/

/* Basic Reset */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* Basic font */
}

body {
    line-height: 1.6;
    color: #222;
    background-color: #f0f4fa; /* Softer, professional background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px; /* Max width for content */
    margin: 0 auto; /* Center content */
    padding: 20px;
    flex: 1; /* Allows content to grow and push footer down */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 80, 158, 0.08);
}

/* Header Styling */
.site-header {
    background: linear-gradient(90deg, #0074d9 0%, #00b8d9 100%);
    color: #fff;
    padding: 10px 0; /* Reduced from 20px 0 to 10px 0 */
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 116, 217, 0.08);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.site-header .site-title a {
    color: #fff;
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 1px;
}

.site-header .site-description {
    font-size: 1em;
    margin-top: 5px;
}

.site-logo {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    min-width: 150px;
    min-height: 150px;
    max-width: 150px;
    max-height: 150px;
}
.site-logo img {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    padding: 4px;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title, .site-title a {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-decoration: none;
}

.site-description {
    font-size: 1em;
    color: #e6f7ff;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .site-branding-text {
        align-items: center;
    }
}

/* Navigation Menu */
.main-navigation {
    margin: 10px 0;
}

.main-navigation ul {
    list-style: none;
    text-align: center;
}

.main-navigation ul li {
    display: inline-block;
    margin: 0 15px;
}

.main-navigation ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    background-color: #00509e; /* Lighter blue on hover/active */
}

.primary-menu {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.primary-menu li {
    display: inline-block;
}
.primary-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 5px;
    background: linear-gradient(90deg, #00b8d9 0%, #0074d9 100%);
    box-shadow: 0 2px 6px rgba(0, 116, 217, 0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
}
.primary-menu a:hover, .primary-menu a:focus {
    background: linear-gradient(90deg, #0074d9 0%, #00b8d9 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.18);
}
.header-auth-area {
    position: absolute;
    right: 30px;
    top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.welcome-msg {
    color: #fff;
    font-size: 0.95em;
    margin-right: 8px;
}
.login-link, .register-link, .logout-link {
    color: #fff;
    background: linear-gradient(90deg, #00b8d9 0%, #0074d9 100%);
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.95em;
    transition: background 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 116, 217, 0.10);
    font-weight: 600;
    cursor: pointer;
    margin: 2px 0;
    outline: none;
    display: inline-block;
}
.login-link:hover, .register-link:hover, .logout-link:hover {
    background: linear-gradient(90deg, #0074d9 0%, #00b8d9 100%);
    box-shadow: 0 4px 16px rgba(0, 116, 217, 0.18);
    transform: translateY(-2px) scale(1.03);
}

/* Main Content Area */
.site-content {
    background-color: #fff; /* White background for content */
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.site-content h1, .site-content h2, .site-content h3 {
    color: #00509e; /* Theme blue for headings */
    margin-bottom: 15px;
}

.site-content p {
    margin-bottom: 15px;
}

.site-content a {
    color: #007bff; /* Standard link blue */
}
.site-content a:hover {
    text-decoration: underline;
}

/* Shortcode placeholder styling (optional) */
.shortcode-placeholder {
    border: 2px dashed #00509e;
    padding: 20px;
    text-align: center;
    background-color: #eef5ff;
    color: #003f7f;
    margin: 20px 0;
}

/* Footer Styling */
.site-footer {
    background: linear-gradient(90deg, #00b8d9 0%, #0074d9 100%);
    color: #fff;
    padding: 30px 0 10px 0;
    text-align: center;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 -2px 8px rgba(0, 116, 217, 0.08);
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #a0cfff;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Footer Widgets */
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}
.footer-widget {
    background: linear-gradient(90deg, #0074d9 0%, #00b8d9 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    min-width: 200px;
    max-width: 300px;
    flex: 1 1 200px;
    box-shadow: 0 2px 8px rgba(0, 116, 217, 0.10);
}
.footer-widget-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #fff;
}
@media (max-width: 800px) {
    .footer-widgets {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .container {
        padding: 10px;
    }
}

/* Basic Responsive */
@media (max-width: 768px) {
    .main-navigation ul li {
        display: block;
        margin: 10px 0;
    }
    .container {
        width: 95%;
    }
}

@media (max-width: 600px) {
    .main-navigation {
        margin: 5px 0;
    }
    .primary-menu {
        flex-direction: column;
        gap: 10px;
    }
    .header-auth-area {
        position: static;
        justify-content: center;
        margin-top: 10px;
    }
}

/* Screen reader text utility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

/* Buttons */
button, .login-link, .register-link, .logout-link, input[type="submit"], input[type="button"] {
    color: #fff;
    background: linear-gradient(90deg, #00b8d9 0%, #0074d9 100%);
    border: none;
    border-radius: 5px;
    padding: 8px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 116, 217, 0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    margin: 2px 0;
    outline: none;
    display: inline-block;
}
button:hover, .login-link:hover, .register-link:hover, .logout-link:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: linear-gradient(90deg, #0074d9 0%, #00b8d9 100%);
    box-shadow: 0 4px 16px rgba(0, 116, 217, 0.18);
    transform: translateY(-2px) scale(1.03);
}

/* Alternate row colors for tables and lists */
table tr:nth-child(even), .alternate-row:nth-child(even) {
    background-color: #e6f7ff;
}
table tr:nth-child(odd), .alternate-row:nth-child(odd) {
    background-color: #fff;
}

/* For lists or custom row containers */
.alternate-row {
    padding: 10px 0;
}
